Post by wroughtec » Sat May 19, 2012 7:35 pm

Trying to work out where I would find the names for the pages for example if I wanted to add a script to say the account page but call it from the footer would it be something like:

Code: Select all

<?php if $account { ?>
<script>some crap here</script
<? }  ?>
and if so is there an easy way to work out what each page name would be. is it a case of looking at the controller file or is there an easier way. I know the above does not work which is why I am trying to find the solution, i could do something similar in oscommerce and gave me a simple way of adding inline scripts on certain pages below the library so to speak (which I should point out is in the footer and no I do not want to move to the header)

Please don't tell me to just insert into the account.tpl file I have a specific idea i want to try and this will help me acheive this thanks

New member

Posts

Joined
Sat Feb 18, 2012 7:45 am

Post by wroughtec » Sat May 19, 2012 8:00 pm

think I have solved:

Code: Select all

<?php if (isset($this->request->get['route']) && $this->request->get['route'] == 'account/account) { ?>

New member

Posts

Joined
Sat Feb 18, 2012 7:45 am
Who is online

Users browsing this forum: Rainforest and 17 guests