Post by fealeit » Thu Jul 05, 2007 6:17 am

I've been playing around with the template, but I've run into a problem.

It seems I only put the home/login/account links (using the

Code: Select all

<a href="<?php echo $home; ?>"><?php echo $text_home; ?></a>
code) into header.tpl? Can't I move it to, say, layout.tpl in order to locate it in the bar div or in the left hand menu?

Is there any way round this?

Newbie

Posts

Joined
Thu Jul 05, 2007 6:12 am

Post by Daniel » Sat Jul 07, 2007 6:40 am

Hi,

If you want to move anything to the layout.tpl it has to be declared out in the index.php

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by fealeit » Sat Jul 07, 2007 6:29 pm

Ok, so as I have only the barest grasp of php, that's a no then :)

Newbie

Posts

Joined
Thu Jul 05, 2007 6:12 am

Post by Daniel » Sat Jul 07, 2007 7:26 pm

Its not good to have all variables available in all templetes.

It would be useful though!

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by fealeit » Sat Jul 07, 2007 7:39 pm

It's fine. I'll just have to rethink my site design a bit.

Newbie

Posts

Joined
Thu Jul 05, 2007 6:12 am
Who is online

Users browsing this forum: No registered users and 4 guests