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

Plugin in plugin

 
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
Eza
Smarty Rookie


Joined: 12 Oct 2010
Posts: 9
Location: Liege, Belgium

PostPosted: Tue Oct 12, 2010 1:23 pm    Post subject: Plugin in plugin Reply with quote

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
View user's profile Send private message MSN Messenger
elpmis
Smarty Elite


Joined: 07 Jun 2007
Posts: 321

PostPosted: Wed Oct 13, 2010 9:03 am    Post subject: Reply with quote

It seams you use a CMS, right?! Which one?
Back to top
View user's profile Send private message
Eza
Smarty Rookie


Joined: 12 Oct 2010
Posts: 9
Location: Liege, Belgium

PostPosted: Thu Oct 14, 2010 10:02 am    Post subject: Hi Reply with quote

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
View user's profile Send private message MSN Messenger
elpmis
Smarty Elite


Joined: 07 Jun 2007
Posts: 321

PostPosted: Thu Oct 14, 2010 10:12 am    Post subject: Reply with quote

Ä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 Wink.

This work is done by a lot of classes in the background (folder /lib and /lib/classes).
Back to top
View user's profile Send private message
Eza
Smarty Rookie


Joined: 12 Oct 2010
Posts: 9
Location: Liege, Belgium

PostPosted: Fri Oct 15, 2010 8:13 am    Post subject: Reply with quote

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 Smile.

So we don't have direct fonction in smarty for reparse in plugin? They have many line of code in cms ms Razz

Thanks for your help,
Ludovic
Back to top
View user's profile Send private message MSN Messenger
elpmis
Smarty Elite


Joined: 07 Jun 2007
Posts: 321

PostPosted: Fri Oct 15, 2010 8:43 am    Post subject: Reply with quote

Yea, please send me a link it it is ready.

Maybe "eval" can help

http://www.smarty.net/manual/en/language.function.eval.php
Back to top
View user's profile Send private message
Eza
Smarty Rookie


Joined: 12 Oct 2010
Posts: 9
Location: Liege, Belgium

PostPosted: Fri Oct 15, 2010 9:08 am    Post subject: Reply with quote

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 Smile

It's verry simple to use and readeable Smile

Thaks!

Ludovic
Back to top
View user's profile Send private message MSN Messenger
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
Page 1 of 1

 
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