|
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 |
heohni Smarty Regular
Joined: 20 Sep 2006 Posts: 40
|
Posted: Wed Aug 04, 2010 8:05 am Post subject: Edit static templates |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Aug 04, 2010 4:50 pm Post subject: |
|
|
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 |
|
bimal Smarty Elite
Joined: 19 Apr 2007 Posts: 423
|
Posted: Thu Aug 05, 2010 4:26 pm Post subject: {include} service |
|
|
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 |
|
daveDeMello Smarty n00b
Joined: 03 Aug 2010 Posts: 3 Location: Miami
|
Posted: Thu Aug 05, 2010 11:02 pm Post subject: |
|
|
I second mohrt, use an FTP client and text editor.
C you around! |
|
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
|