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

Edit static templates

 
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 -> General
View previous topic :: View next topic  
Author Message
heohni
Smarty Regular


Joined: 20 Sep 2006
Posts: 40

PostPosted: Wed Aug 04, 2010 8:05 am    Post subject: Edit static templates Reply with quote

Hi,

my client has a small static smarty template web project.
No he is asking me to edit certain content parts.

Is there a simple way to have for example tinymce editor who can access selected templates, allowing to edit (not the whole template) a certain part within the template? This "certain" could be marked with a comment for example?

I guess it means that I have to overwrite the template files, or?
Or should I work with a database better?

What do you guys recommend?
I really do not want to spend too much time on it... and I am looking for a smart and simple way.

Thanks
Heidi
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Aug 04, 2010 4:50 pm    Post subject: Reply with quote

sounds like a pain. why not use FTP client and text/html editor? For the "certain part" editing, just break that out to a separate template file, and just edit that file.
Back to top
View user's profile Send private message Visit poster's website
bimal
Smarty Elite


Joined: 19 Apr 2007
Posts: 423

PostPosted: Thu Aug 05, 2010 4:26 pm    Post subject: {include} service Reply with quote

Pain again - You can break your template's header/footers (the really reused contents) into different files. Then, you can have a single file which is NOT a part of your template, but you can edit the WHOLE content with your favirite editor like TinyMCE. This seems a fairly good solution if you have several static files. On the parent template/controller do something like:

Code:
{include file="header.php"}
{include file=$static_file} <!-- break it here -->
{include file="footer.php"}


However, if you have few files only, why not to consider editing the file manually?
Back to top
View user's profile Send private message Visit poster's website
daveDeMello
Smarty n00b


Joined: 03 Aug 2010
Posts: 3
Location: Miami

PostPosted: Thu Aug 05, 2010 11:02 pm    Post subject: Reply with quote

I second mohrt, use an FTP client and text editor.

C you around!
Back to top
View user's profile Send private message Visit poster's website
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 -> General 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