Skip to main content
Known Participant
July 14, 2010
Answered

Spry menu in an include

  • July 14, 2010
  • 1 reply
  • 651 views

Using DW CS5 I created a spry menu in a blank page and placed it in an include file "ZzipMenuBar.inc.php"

Created a template and put <?php include ('/ZzipMenuBar.inc.php'); ?> in the template.

Created a new doc and selected no to remove code.

Everything works at the root level

http://www.zzipper.com/index.php

Everything works at branch 1

http://www.zzipper.com/Gallery/index.php

Branch 2 I get a menu in live view but not on the web page

http://www.zzipper.com/Gallery/Coyote/index.htm

If I save the file and return live view doesn't show the menu.

Any comments? It's got to be simple and operator error. Need to get this up quickly.

Herman

This topic has been closed for replies.
Correct answer BenPleysier

cycler wrote:

Using DW CS5 I created a spry menu in a blank page and placed it in an include file "ZzipMenuBar.inc.php"

Created a template and put <?php include ('/ZzipMenuBar.inc.php'); ?> in the template.

Created a new doc and selected no to remove code.

Everything works at the root level

http://www.zzipper.com/index.php

Everything works at branch 1

http://www.zzipper.com/Gallery/index.php

Branch 2 I get a menu in live view but not on the web page

http://www.zzipper.com/Gallery/Coyote/index.htm

If I save the file and return live view doesn't show the menu.

Any comments? It's got to be simple and operator error. Need to get this up quickly.

Herman

Because you are using PHP code within your document, your document must have a PHP extension. At the moment this is HTM.

I hope this helps.

Ben

1 reply

BenPleysier
Community Expert
BenPleysierCommunity ExpertCorrect answer
Community Expert
July 14, 2010

cycler wrote:

Using DW CS5 I created a spry menu in a blank page and placed it in an include file "ZzipMenuBar.inc.php"

Created a template and put <?php include ('/ZzipMenuBar.inc.php'); ?> in the template.

Created a new doc and selected no to remove code.

Everything works at the root level

http://www.zzipper.com/index.php

Everything works at branch 1

http://www.zzipper.com/Gallery/index.php

Branch 2 I get a menu in live view but not on the web page

http://www.zzipper.com/Gallery/Coyote/index.htm

If I save the file and return live view doesn't show the menu.

Any comments? It's got to be simple and operator error. Need to get this up quickly.

Herman

Because you are using PHP code within your document, your document must have a PHP extension. At the moment this is HTM.

I hope this helps.

Ben

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
cyclerAuthor
Known Participant
July 14, 2010

I knew I was going to make myself feel stupid. . Thanks!

Could blame it on watching the Tour while doing the upgrades but in truth must have been a senior moment.

Have to create a coupe new pages. Will turn off the TV first.

Herman