Jump to content

template mods Rate Topic   - - - - -

 
  • stanf
  • Junior Member
  • Members
  • Join Date: 18-Oct 09
  • 12 posts

Posted 20 June 2012 - 10:01 PM #1

I am a novice , so please forgive the redundant ?s,
i need to put a php include that will be shown on all pages, it will be the main point of surfer navigation,what file do I edit?

 
  • solesurvivor
  • Senior Member
  • Members
  • Join Date: 05-Aug 11
  • 744 posts

Posted 21 June 2012 - 12:37 AM #2

You want to create a custom menu? You can't include php files in your templates. you can include files using the standard include syntax such as:


{include file="common_templates/styles.tpl"}


 
  • stanf
  • Junior Member
  • Members
  • Join Date: 18-Oct 09
  • 12 posts

Posted 21 June 2012 - 01:20 AM #3

thank you but which file is the wrapper for all pages?

 
  • solesurvivor
  • Senior Member
  • Members
  • Join Date: 05-Aug 11
  • 744 posts

Posted 21 June 2012 - 01:49 AM #4

Check customer/index.tpl I think.

 
  • brandonvd
  • is Super Awesome
  • Members
  • Join Date: 19-Dec 06
  • 2,451 posts

Posted 21 June 2012 - 05:43 AM #5

Depending on what you are trying to do, there might be an easier way.

Also, while I'm not sure exactly how, but you can have PHP in your templates. Just be sure to go into your config.local.php file and change:

'allow_php_in_templates' => false, // Allow to use {php} tags in templates

To:

'allow_php_in_templates' => true, // Allow to use {php} tags in templates

It would probably be worth searching around the forums to see how it is done though. I know this type of thing has been asked before.

Also, if you could elaborate on what you are trying to do, we might be able to help you more.

Thanks,

Brandon

 
  • stanf
  • Junior Member
  • Members
  • Join Date: 18-Oct 09
  • 12 posts

Posted 25 June 2012 - 02:19 PM #6

what i need to do is put in some code for site navigation it would sit at the very top of all pages, it would allow people to surf between other sections of my site like my mp3 search area,my social engine section ,and so on