Re: [SMARTY] SMARTY not for WYSIWYG designers?

From: Date: Wed, 26 Feb 2003 17:13:41 +0000
Subject: Re: [SMARTY] SMARTY not for WYSIWYG designers?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8227@lists.php.net to get a copy of this message
At 08:59 AM 2/26/2003 +0530, Dr Tarique Sani wrote:
Going thru the docs I noticed most examples follow the include header.tpl and include footer.tpl way.
If the templates are to be edited in WYSIWYG editor then having a combined header and footer which gives the designer a closer representation of the final page is the way to go... ...
I did find a example in the wiki BUT my question : "Is SMARTY templates not meant/aimed for designers?"
Cheers Tarique ---------------------------------------
Tarique, I think I understand what you're saying, and I had similar thoughts myself. I just include the header and footer in each html file, so that they can be edited in WYSIWYG editors. It's fine this way, the examples just show it with included headers and footers to save time for those coding by hand, so that they don't have to keep typing <html><body> .... </body></html> etc. I had posted a question some time ago about this and came to the conclusion that the only reason the examples were set up this way was because it would save time/effort for html coding and if someone is using smarty, they're concerned about the time and effort. As far as I know, you can safely leave all the html in the .tpl file and not include any header or footer files, and all will be fine. This is the way I'm using smarty to allow me to edit the pages properly in a display view in Dreamweaver. I know I could code by hand, but sometimes we need to see the design view in the WYSIWYG editor. Everything seems to be working fine for me. I hope that helps. ;) -Desiree

« previous php.smarty.general (#8227) next »