[pmwiki-users] Attach query string to all internal links

Brian Tibbels brian.tibbels at clickmarlow.co.uk
Mon Mar 28 08:11:15 CDT 2011


Hi Clemens
If it needs to be attached to every link then surely "action=moodle" all the
time. If it concerns a particular page then you can use PageTextVariables

(:moodle:true:)

You can then test for PageTextVar($pagename,'$:moodle') in the config.
You may need to use PageVar($pagename,'$:moodle') as I haven't worked out
the difference yet.

Rgds
Brian






On 28 March 2011 12:59, Clemens Gruber <cgruber at uni-osnabrueck.de> wrote:

> Hi list, how can I attach a special static query string to all internal
> links, e.g. now a internal link via [[Group.Page]] is
>
> http://example.com/Group/Page
> but I need
> http://example.com/Group/Page?action=moodle
>
> this should also work if a query parameter is already attached, e.g.
>
> http://example.com/Group.Page?setskin=AB
>
> But I think even if this is not standard conform it will work also with two
> questionmarks instead of questionmark and ampersand
>
> http://example.com/Group.Page?setskin=LG?action=moodle vs.
> http://example.com/Group.Page?setskin=LG&action=moodle
>
> Thanks for your help!
> Clemens
>
>
> --
> Clemens Gruber (Dipl.-Psychologe)
>  Zentrum fuer Informationsmanagement
>  und virtuelle Lehre der Universitaet Osnabrueck (virtUOS)
>
> Heger-Tor-Wall 12, Raum 42/209, D-49074 Osnabrueck
>
> E-Mail:  cgruber at uni-osnabrueck.de
> URL:     http://www.virtuos.uni-osnabrueck.de
>
> Telefon: (05 41) 969-6505 oder
>         (05 41) 969-6501 (Sekretariat)
> Fax:     (05 41) 969-16505
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>



-- 
Brian Tibbels
IT support for small business and the individual
http://clickmarlow.co.uk/
m: 07804 109906
t: 01628 477640
skype: brian.tibbels
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20110328/a57c201d/attachment.html>


More information about the pmwiki-users mailing list