I recently purchased a script that I’m trying to change the CSS to pimp it up 🙂
However since I’m fairly new to CSS/PHP (I’ve done ASP before), I’m trying to use the “Live view” feature Dreamweaver 5.5 to edit the tpl.php files. I have setup the site as instructed in DW and it’s working with basic PHP files, however when I try to open a tpl.php file it doesnt seem to handle all the includes or something, so essentially it doesnt know how to retrieve all the related CSS etc in order to show me what the site looks like.
It has the following code structure:
- http://www.xyz.com -> this calls the index.php
- Within index.php, it calls
include_once ('global_mainpage.php'); - Within global_mainpage.php it then calls
$template_output .= $template->process('mainpage.tpl.php'); - mainpage.tpl.php is the file that I need to change the layouts/CSS class reference etc.
My ideal way to work with the site is:
- Say if I want to change something on index.php
- I just click on one of the elements in live view
- It would automatically launch the tpl.php file being used
- I can then examine the CSS used and make a change to it
- hit save and be able to view the change I just made
If this is not possible, do I have no choice but to use Aptana? I’ve used it before editing PHP code, but not tpl.php – I was hoping to have a WYSIWYG editor for tpl.php…
Many thanks for your help gurus! 🙂
Why don’t you use FireBug on Firefox and hook it up with cssUpdater?