Author Topic: Link to top page ?  (Read 1149 times)

Offline Tinke

  • Posts: 32
Link to top page ?
« on: October 30, 2009, 08:25:25 AM »
Hello  :-D
I have a little problem.
I should get a "go back link" to my layout, but I can think of no idea how to do this.

WebsiteBaker menu is like this:
Home
Products
 - books
   - comics
      - Donald Duck
      - Mickey Mouse
      - Goofy
   - novels
 - videos
 - other
Map
Contact

The question now is how I get on a link that will always link to a higher level.
if I'm Donald Duck page shows a link to comics page, if I'm Goofy page shows a link to comics page, if I'm videos page show link to Products page.
If I am the top-level link is not displayed.

This code does not work correctly.
echo '<a href="'.$_SERVER["HTTP_REFERER"].'"><strong>&laquo; Go Back</strong></a>';

I'm not very good at English. I hope you understand.  :-D :-D

Regards,
Tinke

Offline Tinke

  • Posts: 32
Re: Link to top page ?
« Reply #1 on: October 30, 2009, 09:36:31 AM »
WOOW !
Just installed my WB 2.8 and droplets are good!

Thank you for developers Bakery Website!

 

postern-length