Author |
Message |
Topic: check if template is cached (clipcache) |
krreks
Replies: 7
Views: 8412
|
Forum: General Posted: Tue Aug 19, 2008 10:50 pm Subject: check if template is cached (clipcache) |
Yes, but you must query your db and assign variable when the content is not in cache.
Ambarrasing... Thats just so obvious that I wish I could say I was drunk or wery tired...
Thanks anyway |
Topic: check if template is cached (clipcache) |
krreks
Replies: 7
Views: 8412
|
Forum: General Posted: Tue Aug 19, 2008 10:29 pm Subject: check if template is cached (clipcache) |
I am just wondering that you assign the variable timestamp when the included files is cached? How could you ever get output when you are not assigning it when it is not cached?
Hence the fact that ... |
Topic: check if template is cached (clipcache) |
krreks
Replies: 7
Views: 8412
|
Forum: General Posted: Tue Aug 19, 2008 2:55 pm Subject: check if template is cached (clipcache) |
A follow up...
What I'm trying to do is to only run the queries when the clipcache cache file is generated. My code in the index.php is now:
if($smarty->is_cached('../templates_2/t ... |
Topic: check if template is cached (clipcache) |
krreks
Replies: 7
Views: 8412
|
Forum: General Posted: Tue Aug 19, 2008 2:46 pm Subject: check if template is cached (clipcache) |
You should check on your included template unsing the full path.
$smarty->is_cached('../templates_2/test.tpl','cache');
Fantastic! I guess that's the only combination I did not try
Tha ... |
Topic: check if template is cached (clipcache) |
krreks
Replies: 7
Views: 8412
|
Forum: General Posted: Tue Aug 19, 2008 2:30 pm Subject: check if template is cached (clipcache) |
I'm working on caching our CMS, and have built a skeleton to test it before I start implementing it (which is a lot more work)...
I have one question, how can I check if a included file has been ca ... |
Topic: smartypaginate: open on last page from url |
krreks
Replies: 0
Views: 4782
|
Forum: Plugins Posted: Sun Sep 02, 2007 9:57 pm Subject: smartypaginate: open on last page from url |
I'm building a forum using smarty and smartypaginate. It works great, but there are one thing I can't work out. This is the case:
List of forums containing the different forums and a link to the th ... |
Topic: print out all assigned smarty variables |
krreks
Replies: 0
Views: 2974
|
Forum: General Posted: Sun Jul 22, 2007 2:02 am Subject: print out all assigned smarty variables |
I'm currently working on my CMS to make it possible to offer my customers a fully dynamical web site in both flash and HTML administrated from the same backend. However, there are a number of obstacle ... |
Topic: output filter to replace certain charachters |
krreks
Replies: 2
Views: 4341
|
Forum: General Posted: Mon Apr 23, 2007 10:15 pm Subject: output filter to replace certain charachters |
I'm from Norway, and we happend to have a lot of charachters not being displayed properly when just writing æ,ø and å. Is there a simple and (most important) fast way to do this through an output filt ... |
Topic: Language tags inside {paginate} tag |
krreks
Replies: 3
Views: 7339
|
Forum: General Posted: Sun Apr 22, 2007 4:57 am Subject: .. |
Now I hav tried almost every single way to do it, I think....
{trans id='whatchamacallit' assign='next'}
...
{paginate_next text=$next}
Did not work because of the trans function returning the v ... |
Topic: Language tags inside {paginate} tag |
krreks
Replies: 3
Views: 7339
|
Forum: General Posted: Sat Apr 21, 2007 2:20 pm Subject: Language tags inside {paginate} tag |
We are using the custom function trans to translage tags into different languages. You call the function "trans" and supply is with the "id" which is the tag to be translated. The ... |
Topic: Several variables in a smartyblock tag |
krreks
Replies: 5
Views: 10244
|
Forum: General Posted: Thu Apr 19, 2007 9:30 pm Subject: worked like a charm without the dobl |
Hmm. Another suggestion: use {foreach} instead of {section} since it produces less complicated array access syntax.
I looked at it, but it seems that looping tha array and beeing able to catch data f ... |
Topic: instalation ok -> template ok ->but white page !!! |
krreks
Replies: 13
Views: 13725
|
Forum: General Posted: Thu Apr 19, 2007 8:36 am Subject: had the same problem... |
I had the same problem when I started my current smarty project. The solution for me was to go back one version. The problem seems to be the latest version not working on servers with the lack of mysq ... |
Topic: Several variables in a smartyblock tag |
krreks
Replies: 5
Views: 10244
|
Forum: General Posted: Thu Apr 19, 2007 8:26 am Subject: Several variables in a smartyblock tag |
You can use the cat modifier to concatenate or you can put all of your text in double quotes -- just surround the various template var references with backticks.
http://smarty.php.net/manual/en/lan ... |
Topic: Several variables in a smartyblock tag |
krreks
Replies: 5
Views: 10244
|
Forum: General Posted: Wed Apr 18, 2007 10:37 pm Subject: Several variables in a smartyblock tag |
I'm really starting to love smarty now, and coding templates and modules for my new system is a breeze. I encountered an error that I can't find a clever solution to. I'm storing all my language tags ... |
Topic: My templates does not show up |
krreks
Replies: 2
Views: 5379
|
Forum: General Posted: Mon Apr 09, 2007 9:04 pm Subject: My templates does not show up |
Hi, Hielke. First of all, thanks for reading through my post, I know it was a long (and probably poorly formed post).
- Try setting error messaging to E_ALL.
Done before posting the question, thou ... |
|