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

Creating your own smarty tag like {section}
Goto page Previous  1, 2
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
Domino
Smarty Rookie


Joined: 27 Jun 2012
Posts: 12

PostPosted: Sun Sep 30, 2012 9:40 pm    Post subject: Reply with quote

Sorry for that long respond. I have problem with my back and I was on long rehabilitation.

I want to create something like you can see under this link.
http://expressionengine.com/user_guide/modules/channel/channel_entries.html

Do you now understand what I want to do?
Back to top
View user's profile Send private message
Domino
Smarty Rookie


Joined: 27 Jun 2012
Posts: 12

PostPosted: Mon Oct 08, 2012 9:16 am    Post subject: Finally made it!!! Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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
Protected by Anti-Spam ACP