|
PmWiki /
PageDirectivesPmWiki uses a number of directives to specify page titles, descriptions, page keywords, and control the display of various components. Keywords are not case sensitive.
Shows a list of attachments of the current group or page, depending on whether attachments are organised per group or per page. The attachlist is displayed at the foot of the uploads page form.
The parameter to (:attachlist:) always resolves to a pagename. The directive then displays all of the attachments currently available for that page.
(:attachlist ext=xxx:) specifies an extension for filtering by type of file.
(:attachlist *:) shows the uploads directory and permits browsing of all uploaded files by directory (will not work if $EnableDirectDownload is set to 0).
Note that the placement of newlines is very important for this markup. If you are using the [=...=] option then the opening [= MUST occur on the same line as the (:markup:). If you are using the full (:markup:) ... (:markupend:) form then your markup code must appear AFTER a newline after the initial (:markup:). Peter Bowers February 14, 2008, at 01:33 AM
Note that placing a markup within this structure changes the order that the markup is processed. If the order of your markup processing is significant then make sure that they are all in this markup mode or none in this markup mode. Peter Bowers
Enables/disables automatic spacing of WikiWords in text.
Can I get Use Is there any way to prevent the "redirected from" message from showing at the top of the target page when I use There are several possibilities. If you want to suppress the message in all cases
If you want to suppress the message based on the destination/target of the redirect
If you want to suppress the message based on the origin/source of the redirect
if (@$_GET['from']) {
$group = PageVar($_GET['from'], '$Group');
if ($group == 'SomeGroup') $PageRedirectFmt = '';
}
(In the above code example, you might replace SomeGroup with Profiles.)
An alternative is the include the other page rather than redirect. There are two cookbook recipes that may assist
Is there any method for redirecting to the equivalent page in a different group, i.e. from BadGroup/thispage => GoodGroup/thispage using similar markup to (:redirect Goodgroup.{Name}:)? (:redirect Goodgroup.{$Name}:) works if you want to put it in one page.
If you want it to work for the entire group, put (:redirect Goodgroup.{*$Name}:) into Badgroup.GroupHeader - however, that only works with pages that really exist in Goodgroup; if you visit a page in Badgroup without a corresponding page of the same name in Goodgroup, instead of being redirected to a nonexistant page, you get the redirect Directive at the top of the page.
With (:if exists Goodgroup.{*$Name}:)(:redirect Goodgroup.{*$Name}:)(:ifend:) in Badgroup.GroupHeader you get redirected to Goodgroup.Name if it exists, otherwise you get Badgroup.Name without the bit of code displayed.
|