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 12 matches
Smarty Forum Index
Author Message
  Topic: Creating your own smarty tag like {section}
Domino

Replies: 16
Views: 35885

PostForum: Plugins   Posted: Mon Oct 08, 2012 9:16 am   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 di ...
  Topic: Creating your own smarty tag like {section}
Domino

Replies: 16
Views: 35885

PostForum: Plugins   Posted: Sun Sep 30, 2012 9:40 pm   Subject: Creating your own smarty tag like {section}
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/modul ...
  Topic: need assistance in paging
Domino

Replies: 2
Views: 10155

PostForum: Plugins   Posted: Wed Jul 18, 2012 12:55 pm   Subject: Reply
Hey,
I don't see in documentation any pagination plug-in. You must write it yourself.
I did found something like this http://www.phpinsider.com/php/code/SmartyPaginate/
  Topic: Creating your own smarty tag like {section}
Domino

Replies: 16
Views: 35885

PostForum: Plugins   Posted: Wed Jul 18, 2012 9:29 am   Subject: Reply

The following code does assign template variable only when template is already assigned (by fetch) and in this template is my tag.
Template variable is assigned on forced compile of template when t ...
  Topic: Creating your own smarty tag like {section}
Domino

Replies: 16
Views: 35885

PostForum: Plugins   Posted: Tue Jul 17, 2012 8:52 pm   Subject: Reply
To be sure that we will understand each other I will answer that way Very Happy

The following code does assign template variable only when template is already assigned (by fetch) and in this template is my ...
  Topic: Creating your own smarty tag like {section}
Domino

Replies: 16
Views: 35885

PostForum: Plugins   Posted: Tue Jul 17, 2012 2:03 pm   Subject: Reply
I am pin down. I did create my own tag and assign array in compiler function ( you can find it in code after comment "here is the assign for loop"). Smarty see that array but tag don't. I th ...
  Topic: Creating your own smarty tag like {section}
Domino

Replies: 16
Views: 35885

PostForum: Plugins   Posted: Wed Jul 04, 2012 8:20 am   Subject: Reply
What I wanted to change was:
- name of the tag
- name of index in smarty tag array to {$smarty.dgc_model.test_name.index} instead of {$smarty.section.test_name.index} ( if this is big problem I will ...
  Topic: Creating your own smarty tag like {section}
Domino

Replies: 16
Views: 35885

PostForum: Plugins   Posted: Tue Jul 03, 2012 9:11 pm   Subject: Reply
{my_tag} loop array will be generated inside tag script after looking other tag arguments. So...

{my_tag name=x table=sql_table where="visible='1'" order='date DESC'}

It will ...
  Topic: Creating your own smarty tag like {section}
Domino

Replies: 16
Views: 35885

PostForum: Plugins   Posted: Tue Jul 03, 2012 8:38 pm   Subject: Reply
I want to create my tag that will work like {section} tag. The same functionality.

Example of tag:

{my_tag name=aaa other_argument=bbb}
{$name[aaa].title}
...
  Topic: Creating your own smarty tag like {section}
Domino

Replies: 16
Views: 35885

PostForum: Plugins   Posted: Tue Jul 03, 2012 12:38 pm   Subject: Reply
Ok so I will change a little philosophy of names.

Are there any contraindications that I can add my own array to loop argument in this file instead of using argument in smarty tag?
  Topic: Creating your own smarty tag like {section}
Domino

Replies: 16
Views: 35885

PostForum: Plugins   Posted: Mon Jul 02, 2012 11:55 am   Subject: Creating your own smarty tag like {section}
Hey,

I want to implement smarty into my cms (based on CodeIgniter) as a template engine. But I want to make my cms also for people that know only html/css (maybe a little of js) and for that I need ...
  Topic: Smarty plugin creation - questions
Domino

Replies: 0
Views: 6304

PostForum: Plugins   Posted: Wed Jun 27, 2012 11:53 am   Subject: Smarty plugin creation - questions
Hello,

I want to create smarty block function, but I don't know if I did understand everything that I did read in documentation.
My questions:
1. If I use in smarty this code:

{func aaa=' ...
 
Page 1 of 1
All times are GMT
Jump to:  


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