URL's for Image buttons

Permalink
Hi All
I am converting a site to C5 and have come across a problem. I am not using Auto Nav but instead to keep the look of the old site am trying to use the old gif's from that site. I am putting the buttons in as images (2 of them for rollover) but when I try and use the buttons they are going to a 404. I think I must be using a wrong method either for entering the url in the Image Links to URL box or using this approach at all. Can anyone tell me what should I use in the URL box? (home, /home, or the full domain/home or even home.php)
Any tips or help greatly appreciated.

 
alehut replied on at Permalink Reply
I cant believe there is no solution to this. Anyone know where is the CSS style for the Auto Nav, maybe I can work it from there?
Remo replied on at Permalink Reply
Remo
When you use a template the urls which are generated are just fine.

If you completely replaced the template it's hard to say what's wrong.

Can you post a link to your site?
And publish the autonav template as well please.
ryan replied on at Permalink Reply
ryan
your links should look something like this:

<a href="<?=View::url('/')?>">
  <img src="<?=$this->getThemePath()?>images/home.png"/>
</a>
<a href="<?=View::url('/about')?>">
.... next img... etc


The View::url() function takes a site path and turns it into a link that concrete will recognize. and the $this->getThemePath function gets the path to your theme so you can keep all of your images inside the theme.

Hope that helps.
alehut replied on at Permalink Reply
A ray of godly light has just struck me and it came from Remo.
Many thanks my friend exactly what I needed.