Author |
Message |
Topic: HELP -- Variable Extends no longer working! |
tacman1123
Replies: 3
Views: 6544
|
Forum: General Posted: Mon Apr 25, 2011 1:46 pm Subject: HELP -- Variable Extends no longer working! |
Would you consider introducing the idea of a Smarty Constant that could be used? So instead of
$smarty->assign('theme', 'admin');
$smarty->view('mychildpage.tpl');
I c ... |
Topic: HELP -- Variable Extends no longer working! |
tacman1123
Replies: 3
Views: 6544
|
Forum: General Posted: Mon Apr 25, 2011 1:01 pm Subject: HELP -- Variable Extends no longer working! |
I just upgraded to the latest version, and now a critical feature is no longer working.
I share templates among different sites, the top line of each template is
{extends "{$theme}/base.tp ... |
Topic: Translate a Smarty Template Using Google |
tacman1123
Replies: 0
Views: 8231
|
Forum: Feature Requests Posted: Fri Apr 08, 2011 9:52 am Subject: Translate a Smarty Template Using Google |
The Google Translate API is a great tool to provide basic translations dynamically. It would be nice to also use it to do a rough translation of a Smarty template, which could then later be cleaned u ... |
Topic: allowing dot(.) to access object properties OR arrays |
tacman1123
Replies: 10
Views: 48060
|
Forum: Feature Requests Posted: Fri Apr 08, 2011 9:44 am Subject: allowing dot(.) to access object properties OR arrays |
I often pass structured data into Smarty, sometimes as an array, sometimes as an object, depending on if it's coming from a cache, YAML, a MySQL database, a SQLite database, etc. Often I'm dependent ... |
Topic: too many shorthand attributes with {block ... append} |
tacman1123
Replies: 11
Views: 33135
|
Forum: Feature Requests Posted: Wed Feb 23, 2011 8:16 pm Subject: too many shorthand attributes with {block ... append} |
Is it possible, then, to replace a block defined earlier in the template?
I want to put the css at the top of the page, but the layout doesn't know what css files are going to be needed. I have a ... |
Topic: too many shorthand attributes with {block ... append} |
tacman1123
Replies: 11
Views: 33135
|
Forum: Feature Requests Posted: Wed Feb 23, 2011 12:22 pm Subject: too many shorthand attributes with {block ... append} |
I have a fairly template template where I'm trying to append some additional css to an earlier block, but keep getting this error message
{block name='css_head'}
<!--[if IE ... |
Topic: Processing Templates from a Database instead of a file |
tacman1123
Replies: 2
Views: 5525
|
Forum: General Posted: Fri Mar 12, 2004 6:06 pm Subject: template_c |
Perfect, exactly what I was looking for. I particularly appreciate that it supports passing a class or object, since I hate having global functions floating all over the place.
Smarty is now givin ... |
Topic: Processing Templates from a Database instead of a file |
tacman1123
Replies: 2
Views: 5525
|
Forum: General Posted: Thu Mar 11, 2004 12:32 pm Subject: Processing Templates from a Database instead of a file |
I need to process a snippet of smarty code that's in a database (so that it can be easily modified without giving someone FTP access). I'm trying to figure out the approach, I'm thinking I should cre ... |
|