Copy link to clipboard
Copied
Anyone know how to setup Dreamweaver CS4 to view Magento templates in design view?
I have enabled Dreamweaver to open .phtml files but still get yellow PHP block (an example of the code for one of these is <?php echo $this->getChildHtml('global_notices') ?>)
By default,
Dreamweaver cannot read PHTML files. You can add the file type to the āOpen in Code Viewā section of the preferences if you wish to have fast access, however you cannot view the file in design view if you do that. So if you use
Dreamweaver (versions 4, MX, MX2004, 8, or 9, aka CS3,CS4) to design your sites, and you wish to open
Magentoās Template files (they have .phtml extensions) in Dreamweaver, you can follow these steps to add support for .phtml and make Dreamweaver render PHP code ...Copy link to clipboard
Copied
Thread moved to the Dreamweaver Application Development forum, which deals with PHP and other server-side languages.
I haven't used Magento, but I assume that it works in a similar way to WordPress, Drupal, Joomla, etc. The current version of Dreamweaver does not support this type of complex PHP application in Design view. You need to test the pages in a browser. Alternatively, view the page in a browser, save a static HTML version of the page, and work on that in Dreamweaver. Not ideal, but it's the only way at the moment.
Copy link to clipboard
Copied
Thanks for such a quick answer David.
I had just come to the same conclusion abpout the static pages and, having read your message, realised that this actually helps me learn more about coding and css so its not so bad after all!
Copy link to clipboard
Copied
Hi David,
Sorry for making a mess of your forum but I clicked on 'correct answer' for the wrong reply - yours message was the correct one, can you edit this if possible though I imagine it is of little consequence to other users.
Copy link to clipboard
Copied
It's not my forum, but Adobe's. Unfortunately, there's no way to undo the "correct answer" button once it has been clicked. As one of the forum moderators, I could edit a reply that has been incorrectly marked as the "correct answer" if it's clearly wrong. However, in this case, Ken's answer does provide useful information to others, so there's no point in doing anything. The important thing is that you got the help that you were looking for.
Copy link to clipboard
Copied
By default,
Dreamweaver cannot read PHTML files. You can add the file type to the āOpen in Code Viewā section of the preferences if you wish to have fast access, however you cannot view the file in design view if you do that. So if you use
Dreamweaver (versions 4, MX, MX2004, 8, or 9, aka CS3,CS4) to design your sites, and you wish to open
Magentoās Template files (they have .phtml extensions) in Dreamweaver, you can follow these steps to add support for .phtml and make Dreamweaver render PHP code (with coloring, hinting, et al) as well as allow you to see the design in code view if desired.http://www.magentocommerce.com/wiki/general/opening_phtml_files_in_dreamweaver