|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Domino Smarty Rookie
Joined: 27 Jun 2012 Posts: 12
|
|
Back to top |
|
Domino Smarty Rookie
Joined: 27 Jun 2012 Posts: 12
|
Posted: Mon Oct 08, 2012 9:16 am Post subject: Finally made it!!! |
|
|
I did read this topic, read it again, and again... And finally I did understand my mistakes. All I wanted to do is my own tag with smarty functionality extended with my own CMS functionality. And I did this thanks to you and your posts.
Code: |
{dgc_model name='page' model='text_pages' order='order desc' test=$www}
<h3>{$page[page].title}</h3>
{dgc_model name='page2' model='text_pages' order='order desc' id=$page[page].id}
<h4>>>> {$page2[page2].title}</h4>
{/dgc_model}
{dgc_model_else}
{* Something in else tag *}
{/dgc_model}
|
I did had the most problem with assign to smarty variables, accessing already assigned variables values in attributes. But I did change that. Thanks a lot man! |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|