Skip to main content
Inspiring
September 18, 2006
Answered

include current page name in link address

  • September 18, 2006
  • 13 replies
  • 1383 views
is there a piece of code I can use to include the current page name in a link to another folde rwhich contains and mirror image of the site structure but in a different language?

something like this:

<a href="../english/current-page.php">

That way whenever someone clicks on the link they will go to the right (same-name) page in whichever language they want. If it's possible I can simply add this lineto the template that governs each language an dmy job is done. If it's not possible, I have a long slog ahead of me, typing in each one individually.


Can anyone help?

Cheers


Dave

This topic has been closed for replies.
Correct answer davecheet
I owe you an apolgy David,

I couldn't get to the bottom of what was going wrong, so I reconstructed the templates very carefully and included the echo basename($_SERVER['SCRIPT_NAME']) bit that you suggested. It works absolutely perfectly now.

Thanks very much for your help.


Dave

13 replies

Inspiring
September 18, 2006
You mean as opposed to the standard boring issues they have with the
webforum? 8)

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"digitalus media" <webforumsuser@macromedia.com> wrote in message
news:eempjh$p50$1@forums.macromedia.com...
> sorry about the 8 duplicate posts. adobe is having some issues right now.


September 18, 2006
sorry about the 8 duplicate posts. adobe is having some issues right now.
Inspiring
September 18, 2006
Don't bother. You cannot remove them.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"forumnotifier" <webforumsuser@macromedia.com> wrote in message
news:eemkdi$ive$1@forums.macromedia.com...
> sorry about all those links. the forum is under maintainance, and i will
> remove the duplicates as soon as i can get in.


Participating Frequently
September 18, 2006
sorry about all those links. the forum is under maintainance, and i will remove the duplicates as soon as i can get in.
September 18, 2006
I put a tutorial on my PHP site , PHP-Newbie.com, about how to do this:

Dynamic Link Tutorial
September 18, 2006
I put a tutorial on my PHP site , PHP-Newbie.com, about how to do this:

Dynamic Link Tutorial
September 18, 2006
I put a tutorial on my PHP site , PHP-Newbie.com, about how to do this:

Dynamic Link Tutorial
September 18, 2006
I put a tutorial on my PHP site , PHP-Newbie.com, about how to do this:

Dynamic Link Tutorial
September 18, 2006
I put a tutorial on my PHP site about how to do this:

Dynamic Link Tutorial
September 18, 2006
I put a tutorial on my PHP site about how to do this:

http://www.php-newbie.com/index.php?option=com_content&task=view&id=17&Itemid=26