|
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 |
Eza Smarty Rookie
Joined: 12 Oct 2010 Posts: 9 Location: Liege, Belgium
|
Posted: Tue Oct 12, 2010 1:23 pm Post subject: Plugin in plugin |
|
|
Hello, I work on projet and want use smarty for that.
First I have primary template with in {content} tag. This tag was editable by administration... I want can add other tag like {form id='1'} or {news}...
So i have made php file in "plugin/function.content.php" but don't know how I could make for use "smarty" in "smarty".
It's possible to call magic function or other?
Thanks for your help.
Ludovic |
|
Back to top |
|
elpmis Smarty Elite
Joined: 07 Jun 2007 Posts: 321
|
Posted: Wed Oct 13, 2010 9:03 am Post subject: |
|
|
It seams you use a CMS, right?! Which one? |
|
Back to top |
|
Eza Smarty Rookie
Joined: 12 Oct 2010 Posts: 9 Location: Liege, Belgium
|
Posted: Thu Oct 14, 2010 10:02 am Post subject: Hi |
|
|
Thanks for you anwser.
It's mine new cms currently on dev.
I would like do work like cms ms. I read this code but it's verry hard to find how it's work...
Thanks you,
Ludovic |
|
Back to top |
|
elpmis Smarty Elite
Joined: 07 Jun 2007 Posts: 321
|
Posted: Thu Oct 14, 2010 10:12 am Post subject: |
|
|
Ähmm, do you are using CMSms or an own fork?
As you said {content} stands for a placeholder which could be edited in admin section. CMSms is configured to parse the output of {content} once again so Smarty tags inside the content running too .
This work is done by a lot of classes in the background (folder /lib and /lib/classes). |
|
Back to top |
|
Eza Smarty Rookie
Joined: 12 Oct 2010 Posts: 9 Location: Liege, Belgium
|
Posted: Fri Oct 15, 2010 8:13 am Post subject: |
|
|
Hi,
I made new cms but i like the structure for edition of cms ms. If you want i could give the link when is done .
So we don't have direct fonction in smarty for reparse in plugin? They have many line of code in cms ms
Thanks for your help,
Ludovic |
|
Back to top |
|
elpmis Smarty Elite
Joined: 07 Jun 2007 Posts: 321
|
|
Back to top |
|
Eza Smarty Rookie
Joined: 12 Oct 2010 Posts: 9 Location: Liege, Belgium
|
Posted: Fri Oct 15, 2010 9:08 am Post subject: |
|
|
Thanks for your help i will read this.
Next hour I search after how make template directly it's could be arrange me too.
YEah great it's works
It's verry simple to use and readeable
Thaks!
Ludovic |
|
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
|