Re: [SMARTY] Path for resources on templates! (graphics related) and a javascript question.
| From: | Bertrand DUNOGIER | Date: | Thu, 07 Nov 2002 21:04:17 +0000 |
| Subject: | Re: [SMARTY] Path for resources on templates! (graphics related) and a javascript question. | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6363@lists.php.net to get a copy of this message | ||
NPM> I´m having some trouble convincing graphic designers to work with
NPM> templates. The main reason being that their wysiwyg editors don´t
NPM> display the images they are working with because smarty uses path
NPM> relatives to the file that called the image not the template
NPM> file
Can anyone tell me how can I change this behavior and still
NPM> use compiled templates??
1. You can check on Smarty's WIKI, there is a FAQ about this:
http://smarty.incutio.com/?page=SmartyFrequentlyAskedQuestions
2. My personnal answer: if your webserver is a linux / unix one, you
can set a symbolic link from the document root to the templates path
and the WYSIWYG crap will not see the difference :)
(i just noticed that i've added this answer to the wiki)
NPM> Another issue Im having is with images roll-overs, since I have
NPM> to preload images separate for each page, so I will have to
NPM> manually edit some constants to specified witch to load depending
NPM> on the current page. It will be great to be able to do it from
NPM> dreamweaver or golive, and still being able to separate parts of
NPM> the page ie. Header.tpl body.tpl footer.tpl,
Hmmm... maybe it's possible to make something using prefilters, but
i'm too tired to think deeper about it this evening :)
Bertrand / Katana