Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
0

Magento templates & Design View

Community Beginner ,
Dec 18, 2009 Dec 18, 2009

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') ?>)

TOPICS
Server side applications

Views

4.5K
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Dec 18, 2009 Dec 18, 2009

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 ...

Votes

Translate
LEGEND ,
Dec 18, 2009 Dec 18, 2009

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 23, 2009 Dec 23, 2009

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!

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 23, 2009 Dec 23, 2009

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 23, 2009 Dec 23, 2009

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 18, 2009 Dec 18, 2009

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines