MashPayne.de

URL-GET variables accessible?

Vote 0 Votes

Hi everyone,

Ich have a Javascript dropDown menu where I show Archives by year. If the user clicks on a specific year, the menu will expand via javascript and all Entries for this year will be listet.

If the user clicks on a listed entry he will be send to the Entry and the same DropDown menu shows up again too.

Now, every year-item, that was expanded before is now folded again. of course...

I now want to have the menu on the new page to be expanded exactly like the one on the page before. So I thought I add a URL-Get variable to the link for the entry like "foobar.html?expand=xyz".

Is there a way to access these Get-variables via MT-tags or in a other way?

Thank you!
Michael

Reported on Movable Type 5

1 Reply

| Add a Reply
  • Hi Michael,

    There is no way to access that/those Get variable(s) via MT tags.

    You could however access them using PHP.

    If your blog pages are ending in .html, then you could configure your server to interpret .html pages as PHP, so that any php coding available inside them could be properly handled.

    Otherwise, if your blog pages are ending .php, then you could implement the php coding for reading and using that/those Get variable(s).

    Kind Regards,
    Mihai Bocsaru

    ----------------------------------
    Daily Movable Type Consultant

    Web Development
    Movable Type Consulting
    Six Apart Partner

    http://www.pro-it-service.com/
    ----------------------------------

    Movable Type Demo
    http://www.movabletypedemo.org/
    ----------------------------------

    Open Melody Demo
    http://www.openmelodydemo.org/

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012