include current page name in link address
is there piece of code can use include current page name in link folde rwhich contains , mirror image of site structure in different language?
something this:
<a href="../english/current-page.php">
that way whenever clicks on link go right (same-name) page in whichever language want. if it's possible can add lineto template governs each language dmy job done. if it's not possible, have long slog ahead of me, typing in each 1 individually.
can help?
cheers
dave
something this:
<a href="../english/current-page.php">
that way whenever clicks on link go right (same-name) page in whichever language want. if it's possible can add lineto template governs each language dmy job done. if it's not possible, have long slog ahead of me, typing in each 1 individually.
can help?
cheers
dave
you write javascript function returns stripped-down name of page being viewed, , embed in value attribute of href tag. location property of window object in javascipt contains name of current page. can parse out of string split() function, using \ , . delimiters.
or, there variables in cgi scope php or whatever languages using. parse page name out of string using string manipulation functions in particular language.
or, there variables in cgi scope php or whatever languages using. parse page name out of string using string manipulation functions in particular language.
More discussions in Develop server-side applications in Dreamweaver
adobe
Comments
Post a Comment