Is there any way I can create a page named menu.php that has the wayfinder menu for my modx site embedded in it so I can use a php include in an html page to include the menu on that page?
Why do you want to include a php-file? Just put your WayFinder call into a Chunk (say named WFcall), then insert {{WFcall}} in your templates whereever you want to see the menu.
Quote from: tradelog at Oct 08, 2009, 08:30 PM
Is there any way I can create a page named menu.php that has the wayfinder menu for my modx site embedded in it so I can use a php include in an html page to include the menu on that page?
MODx won’t run PHP for a page unless it’s contained in a snippet. This is *much* more secure than embedding PHP in a page, or using "include."
The standard method is to create a Template and put the Wayfinder call in the Template. That way it will appear on any page that uses that Template.
The site in my sig might be helpful.