Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 20 matches
Smarty Forum Index
Author Message
  Topic: Is it possible to disable cache for included templates?
orao

Replies: 2
Views: 9083

PostForum: Smarty 3   Posted: Fri Dec 31, 2021 3:03 pm   Subject: Is it possible to disable cache for included templates?
No I didn't mean compile_id. Now I understand that passing cache_id explicitly enables caching and there is no way to go around it.

thank you
  Topic: Is it possible to disable cache for included templates?
orao

Replies: 2
Views: 9083

PostForum: Smarty 3   Posted: Thu Dec 23, 2021 9:56 am   Subject: Is it possible to disable cache for included templates?
Hello,
i have a situation where templates are included with cache_id parameter.
{include file="subtemplate.tpl" cache_id="uid123"}

When I set globally $smarty->ca ...
  Topic: Is it possible to get cache mtime?
orao

Replies: 3
Views: 4514

PostForum: General   Posted: Fri Apr 03, 2015 3:29 pm   Subject: Is it possible to get cache mtime?
Thank you, U.Tews
  Topic: Is it possible to get cache mtime?
orao

Replies: 3
Views: 4514

PostForum: General   Posted: Wed Feb 11, 2015 4:06 pm   Subject: Is it possible to get cache mtime?
Hi,
Is it possible to get file_mtime of cached template?

example:
I need to find out know when the cache file for "index.tpl" with cache_id "123" was created?

Thanks
  Topic: How to add CSS from included template to parent template?
orao

Replies: 11
Views: 31170

PostForum: Smarty 3   Posted: Mon Oct 10, 2011 9:17 pm   Subject: How to add CSS from included template to parent template?
$smarty->display('extends:layout.tpl|main.tpl|right_slideshow.tpl|right_tabs.tpl');
This is actually the answer to my question I opened this topic for - thanks Smile

I find it very hard to descri ...
  Topic: How to add CSS from included template to parent template?
orao

Replies: 11
Views: 31170

PostForum: Smarty 3   Posted: Mon Oct 10, 2011 4:48 pm   Subject: How to add CSS from included template to parent template?
Thanks, that looks interesting. I will change my code and give it a try.

The only problem I see here is this child template can be in different blocks in different pages and even many times on the ...
  Topic: How to add CSS from included template to parent template?
orao

Replies: 11
Views: 31170

PostForum: Smarty 3   Posted: Mon Oct 10, 2011 2:40 pm   Subject: How to add CSS from included template to parent template?
In my case I have more than 1 template included. And each one of them has the code that I would like to put to <head>.
All the included templates are on the same level, they're all 1st level ...
  Topic: How to add CSS from included template to parent template?
orao

Replies: 11
Views: 31170

PostForum: Smarty 3   Posted: Mon Oct 10, 2011 8:00 am   Subject: How to add CSS from included template to parent template?
Please suggest something. I know it is a very basic question.
please Embarassed
  Topic: How to add CSS from included template to parent template?
orao

Replies: 11
Views: 31170

PostForum: Smarty 3   Posted: Thu Oct 06, 2011 3:19 pm   Subject: How to add CSS from included template to parent template?
Hello,

simple example:

I have main template "index.tpl" in which I included more templates.
index.tpl looks like this:

<html>
<head>
<!--here be css-->
< ...
  Topic: Lastest SVN 3508 {block} not working anymore?
orao

Replies: 4
Views: 6885

PostForum: Smarty 3   Posted: Sun Feb 28, 2010 6:22 pm   Subject: Lastest SVN 3508 {block} not working anymore?
Thanks, you have a beer on me!
  Topic: Lastest SVN 3508 {block} not working anymore?
orao

Replies: 4
Views: 6885

PostForum: Smarty 3   Posted: Sun Feb 28, 2010 11:57 am   Subject: Lastest SVN 3508 {block} not working anymore?
I already found out....

from the svn log
- allow block tags inside double quoted string

Looks like only single quotes for block names are allowed.

cheers Smile
  Topic: Lastest SVN 3508 {block} not working anymore?
orao

Replies: 4
Views: 6885

PostForum: Smarty 3   Posted: Sun Feb 28, 2010 11:31 am   Subject: Lastest SVN 3508 {block} not working anymore?
It is working in version 3488 but not in 3508 Sad

parent.tpl
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
< ...
  Topic: function call 'register_function' is unknown or deprecated
orao

Replies: 3
Views: 26711

PostForum: Smarty 3   Posted: Tue Feb 09, 2010 11:48 am   Subject: function call 'register_function' is unknown or deprecated
I got it, I didn't check it before.

http://www.smarty.net/forums/viewtopic.php?t=16807&sid=8b48230d97c007df6548d7a90a81925f
  Topic: function call 'register_function' is unknown or deprecated
orao

Replies: 3
Views: 26711

PostForum: Smarty 3   Posted: Tue Feb 09, 2010 8:15 am   Subject: function call 'register_function' is unknown or deprecated
Notice: function call 'register_function' is unknown or deprecated. in \libs\sysplugins\smarty_internal_wrapper.php on line 58

Old smarty2 functions in my template class still work, but i get many ...
  Topic: Smarty is replacing single quotes with double
orao

Replies: 3
Views: 8119

PostForum: Smarty 3   Posted: Thu Dec 24, 2009 1:37 pm   Subject: Smarty is replacing single quotes with double
mr. U.Tews, thank you very very much Smile
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP