PDA

View Full Version : Page URL in footer template?


Lea Verou
12-30-2005, 10:49 PM
Which variable can I use if I want to place the url of the page in the footer template? I want this to replace the style chooser and have a link instead (eg "View classic theme")

Thanks in advance :)

wolfstream
12-30-2005, 10:53 PM
Maybe I'm misunderstanding the question, but wouldn't editing footer be what you need to do, changing :

<if condition="$show['quickchooser']">
<td class="tfoot">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
</td>
</if>

in there?
Like I said, maybe I'm misunderstanding what you were after, though.

Lea Verou
12-30-2005, 10:55 PM
Yes, I have already removed the stylechooser but I want to provide my users something else to allow them to change the style.
Currently I have a link at the footer with the other style (I have only 2 styles) and when clicked it transfers the user to the home page with the other style. I want it to transfer them to the page they were but with the other style, so I need to know which variable stores that (if there is any) so that I can add the styleid on the end of it...

wolfstream
12-30-2005, 11:12 PM
AHHH, ok.
Well, looking @ the code, I'm not sure that there is a way to do this, though there probably is somehow.
From what I can see, the way it's done @ default (using the form) utilizes the javascript switch_id function to redirect to the appropriate link , not sure how that would be implemented without using the form itself.

Lea Verou
12-30-2005, 11:14 PM
Ι hope there is another way cause I suck @ javascript :(