https://bugzilla.wikimedia.org/show_bug.cgi?id=32883

--- Comment #2 from [email protected] 2011-12-08 23:54:38 UTC ---
It's quite simple. In SF 2.2.1 {{FULLPAGENAME}} when creating a page would
produce nothing, but when editing a page, it would produce the name of the page
being edited.

I could use ParserFunctions to determine if the form was editing a file page,
something like this:

<!-- will return "File" on any file page. Works on SF 2.2.1 but not 2.3.1
https://bugzilla.wikimedia.org/show_bug.cgi?id=32883
https://bugzilla.wikimedia.org/show_bug.cgi?id=32423 -->
{{#vardefine: isfilepage |
 {{#explode: {{FULLPAGENAME}} | : | 0}}
}}

But, in SF 2.3.1 {{FULLPAGENAME}} and {{PAGENAME}} produce no output. I have no
idea why. If you want to hop on IRC with me, I can show you both versions in
action on one of my forms by switching from version 2.2.1 and 2.3.1, so you can
observe the results. If you want to see that, I'll make some quick tweaks to
the form to show the output explicitly.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to