Thanks all of you, now it works with
## custom skin for moodle
$ActionSkin['moodle'] = 'skin-moodle';
## attach ?action=moodle for internal link in moodle
if ($_REQUEST['action'] == 'moodle') {
$LinkPageExistsFmt = "href='\$LinkUrl?action=moodle'>\$LinkText";
}
Regards
Clemens
Clemens Gru
--- On Mon, 3/28/11, Clemens Gruber wrote:
> Thanks for this idea, but I must use this wiki also in a
> variant without action=moodle, meens that I can not "hard
> code" it in a group header. Cookie is a solution but if a
> user uses the wiki in the moodle version and in the normal
> version the c
Hans wrote:
no idea what this action=moodle is or why you want this action in all
links, but there you go!
Thanks a lot Hans, especial for answers to questions where it's unclear
why they appear, that's real generosity! ;-) Hope my reply to Brian
makes it a bit more clearly!
Also thanks
CSGA_KPX wrote:
I think cookie better than query string for this.
for action=moodle, set a PTV in groupheader might be more simple.
Thanks for this idea, but I must use this wiki also in a variant without
action=moodle, meens that I can not "hard code" it in a group header.
Cookie is a s
Monday, March 28, 2011, 12:59:00 PM, Clemens Gruber 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
set in config.ph
Hi Brian,
thanks for your replay. A comment for clarification: I have a standalone
wiki that works "as is", meens without any additional query strings like
"action=moodle". But I'm using setskin=AB / setskin=CD and so on for
different variants with if conditions in the wiki code (meens that n
Hi Clemens,
?setskin=AB
I think cookie better than query string for this.
for action=moodle, set a PTV in groupheader might be more simple.
Hope this helps,
KPX
2011/3/28, Clemens Gruber :
> Hi list, how can I attach a special static query string to all internal
> links, e.g. now a internal lin
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'
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