web-archive-net.com » NET » U » ULI-ALTO.NET

Total: 397

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Uli-Alto PmWiki/Page Text Variables
    or footer see usage from other pages below Special references also apply to page variables and page list templates Usage from other pages If you want to pull the data from another page use the Group PageName Var format Example Suburb Khandallah Lake Taupo Mountain Mt Ruapehu PmWiki PageTextVariables Suburb FullName Lake PmWiki PageTextVariables Mountain Suburb Khandallah Mountain Mt Ruapehu Khandallah Taupo Mt Ruapehu Usage from included pages Page text variables are never included from their source page See Usage from other pages above to refer to a page text variable on another page Usage with pagelists Page lists can also access the page text variables Example pagelist group PmWiki order Summary count 6 fmt singleline WikiSandbox WikiFarmTerminology WikiAdministrator SpecialCharacters PmWiki PatrickMichaud And to create pagelist formats such as those documented at Site Page List Templates Page Lists Page List Templates Page Variables Store custom pagelists at Site Local Templates Page lists can also use page text variables to select pages Example pagelist group PmWiki City Paris count 8 fmt singleline order name lists pages having City set to Paris Example multiple selections with spaces pagelist group PmWiki City Addis Ababa Paris order Version count 8 fmt singleline quotes must surround all the selections When using page text variables for selection or ordering don t put the curly braces around the variable name The curly forms do a replacement before the pagelist command is evaluated Link markup within the contents of a hidden page text variable directive as opposed to other ways of specifying PTVs will not be cached as a link on the page and thus won t be seen by pagelist s link option If you want the link to be found by link you need to specify the PTV using non directive markup or else put the

    Original URL path: http://uli-alto.net/Wiki/pmwiki.php?n=PmWiki.PageTextVariables (2016-05-01)
    Open archived version from archive

  • Uli-Alto PmWiki/Markup Expressions
    e b when next week May 01 2016 at 01 57 AM 2016 05 01 01 57 2016 01 57 37 May 02 2016 at 12 00 AM 2016 04 30 2016 05 08 06 01 16 Mon 9 May The fmt parameter is whatever is given by fmt the first parameter containing a or else the site s default The formatting codes are described at http php net strftime In addition to those F produces ISO 8601 dates and s produces Unix timestamps Some common formatting strings F ISO 8601 dates 2016 05 01 s Unix timestamp 1462064257 H M S time as hh mm ss 01 57 37 m d Y date as mm dd yyyy 05 01 2016 A B d Y in words Sunday May 01 2016 The when parameter understands many different date formats The when parameter is whatever is given by when or whatever parameter remains after determining the format parameter Some examples 2007 04 11 ISO 8601 dates 20070411 dates without hyphens slashes or dots 2007 03 months 1176304315 Unix timestamps seconds since 1 Jan 1970 00 00 UTC now the current time today today 00 00 00 yesterday yesterday 00 00 00 next Monday relative dates last Thursday relative dates 3 days three days ago 2 weeks two weeks from now Note If you want to convert a Unix timestamp you must prefix with the Thus ftime A B d Y 1231116927 The when parameter uses PHP s strtotime function to convert date strings according to the GNU date input formats as of this writing it only understands English phrases in date specifications The variable FTimeFmt can be used to override the default date format used by the ftime function The default FTimeFmt is TimeFmt strlen The strlen expression returns the length of a string The first argument is the string to be measured strlen Summary 32 rand The rand expression returns a random integer The first argument is the minimum number to be returned and the second argument is the maximum number to be returned If called without the optional min max arguments rand returns a pseudo random integer between 0 and RAND MAX If you want a random number between 5 and 15 inclusive for example use rand 5 15 rand rand 1 99 2129260696 93 mod The advanced mod expression returns the modulo remainder of the division of two numbers It may be used in advanced PageList templates together with PageCount to insert markup every modulo entries for example to create alternate styled zebra table rows or to insert a line row break See also PageLists WikiStyles and ConditionalMarkup comment define bg1 item bgcolor f88 define bg2 item bgcolor ff8 define bg0 item bgcolor 8f8 altrows bg mod PageCount 3 Name PageCount altrowsend pagelist fmt altrows group PmWiki count 10 Name PageCount AccessKeys 1 Audiences 2 AuthUser 3 AvailableActions 4 BackupAndRestore 5 BasicEditing 6 BasicVariables 7 Blocklist 8 BlockMarkup 9 Categories 10 toupper tolower The toupper and tolower expressions

    Original URL path: http://uli-alto.net/Wiki/pmwiki.php?n=PmWiki.MarkupExpressions (2016-05-01)
    Open archived version from archive

  • Uli-Alto PmWiki/Forms
    name value label checked checked input select name value label input default default name default value input submit name value input textarea name value rows n cols n input reset name label input file name label input image name src alt Where name and value are in the HTML syntax name addr value 808 W Franklin For most controls the markup has the form input type name value parameter value where type is the type of input element described below name is the name of the control value is its initial value and parameters are used to specify additional attributes to the control If value contains spaces enclose it in quotes if it contains newlines for textarea and hidden elements enclose it in For example the following creates a text input control with a size of 30 characters input text authorid Jane Doe size 30 For convenience an author can also specify name and value arguments directly using name and value attributes same as HTML input text name authorid value Jane Doe size 30 For the textarea control a value can be set from PmWiki 2 2 0beta45 onwards Enclose the value in if it contains spaces or new lines The submit control will more often be written as input submit value label Here s a more complete example e g for a login prompt input form http www example com input hidden action login Name input text username Password input password password input checkbox terms yes Accept Terms input submit value Log In input end Name Password Accept Terms General form field attributes input focus 1 Setting focus 1 causes that field to receive the initial focus when the form is first opened The following advanced HTML attributes are supported name value id class rows cols size maxlength action

    Original URL path: http://uli-alto.net/Wiki/pmwiki.php?n=PmWiki.Forms (2016-05-01)
    Open archived version from archive

  • Uli-Alto PmWiki/Simultaneous Edits
    detects when this occurs and instead of saving Alice s edits PmWiki presents Alice with a message that someone else changed the page while she was editing it Furthermore Bob s changes are merged into Alice s copy of the page with any conflicts highlighted by and Alice can then fix things as appropriate and save the updated page or if Alice is lazy she can just hit save a second time and leave it to someone else to fix The simultaneous edits feature is also invoked whenever someone requests a page preview thus if a page changes while previewing a page the author gets notification and can see the merged results How can I test experiment with this feature Open up two browser windows and select the same page to be edited in each window e g try WikiSandbox action edit In one browser window make some changes to the page and then save those changes In the second browser window make some different changes to the same page and hit save Since the page changed after the edit form was loaded into the second window there s a potential edit conflict and you ll receive the edit conflict

    Original URL path: http://uli-alto.net/Wiki/pmwiki.php?n=PmWiki.SimultaneousEdits (2016-05-01)
    Open archived version from archive

  • Uli-Alto PmWiki/Wiki Structure
    links to other points in the wiki with or without wiki words is the primary means of navigating a wiki Wiki Page A page with text and images where the text can contain for instance WikiWords that automatically becomes a link to another WikiPage Wiki Group PmWiki requires every page to be a member of a group A group is like a wiki within a wiki it can have its own presentation look security controls and navigation aids With default configuration WikiWords are only searched inside the current group and you use either OtherGroup MyWikiWord or OtherGroup MyWikiWord to refer to pages in other groups see Links Wiki Trails A collection of pages either in the same group or across multiple groups can be designated as a trail A visitor can move from stop to stop by clicking on next and previous links Categories Individual wiki pages can also be grouped by having tags and links to a common category page we say that any pages that link to a common page are in a category defined by that page PmWiki uses the category markup as a shorthand to place a page into a category with other pages containing the same markup The shortcoming of categories is that categories do not distinguish between the declaration of a category structure and the link to a category Category Structure Page text variables A newer and more powerful concept than Categories pages can use one of more page text variables to store page attributes These can the be used in page lists Page lists Page lists provide a powerful means of presenting lists of relevant pages or selection of data from within a page Lists are template based and are highly customizable Include other pages The capability to include parts of other pages

    Original URL path: http://uli-alto.net/Wiki/pmwiki.php?n=PmWiki.WikiStructure (2016-05-01)
    Open archived version from archive

  • Uli-Alto PmWiki/GroupHeaders and GroupFooters
    individual page such as a group s HomePage by using the nogroupheader and nogroupfooter markups on that page If a generic GroupHeader is used in one wikigroup say the Site wikigroup then the code can be easily duplicated in the GroupHeader of any other group by using include Site GroupHeader See IncludeOtherPages If you want a header or footer to appear when you print a page action print simply create a page called YourGroup GroupPrintHeader or YourGroup GroupPrintFooter and fill it with your markup You can also set the variable GroupPrintHeaderFmt and GroupPrintFooterFmt in the same way as GroupHeaderFmt and GroupFooterFmt in order to change the header used when action print See also Cookbook All group header Cookbook Wiki footer How do I set the same header or footer for all pages groups The header and footer for each page are controlled by the variables GroupHeaderFmt and GroupFooterFmt If your site wide header and footer pages are Site SiteHeader and Site SiteFooter you can add this in config php If you use Site SiteHeader and Group GroupHeader GroupHeaderFmt include SiteGroup SiteHeader basepage FullName nl GroupHeaderFmt If you use Site SiteHeader instead of Group GroupHeader GroupHeaderFmt include SiteGroup SiteHeader basepage FullName

    Original URL path: http://uli-alto.net/Wiki/pmwiki.php?n=PmWiki.GroupHeaders (2016-05-01)
    Open archived version from archive

  • Uli-Alto PmWiki/Page History
    changes to the wiki markup This is done by adding source n to action diff You can show changes to markup the default behavior from 2 2 13 with source y You can set both by using action diff source y minor y In the default mode Show changes to markup you can disable word level highlighting of differences by adding to config php such a line EnableDiffInline 0 A page s history is kept for the number of days given by the DiffKeepDays and DiffKeepNum variables set by the site s wiki administrator When a page is edited any page history information older than both these values is automatically discarded Note that a specific page revision isn t removed from the page until the first edit after the time specified by DiffKeepDays has elapsed Thus it s still possible for some pages to have revisions older than DiffKeepDays such revisions will be removed the next time those pages are edited See also Cookbook ExpireDiff Cookbook LimitDiffsPerPage Cookbook ViewDiff Cookbook TrackChanges Is there a way to remove page history from page files 1 Administrators can clean page histories using the Cookbook ExpireDiff recipe 2 Administrators with FTP file access can download individual pages from the wiki d directory open them in a text editor manually remove history and re upload the files to wiki d directory Care must be exercised when manually editing a page file to preserve the minimum required elements of the page and avoid corrupting its contents See PageFileFormat creating 3 Edit the page Select all the contents of the edit text area and cut them to the clipboard Enter delete into the text area and click on the save and edit button Select all the contents of the edit text area and paste the contents of

    Original URL path: http://uli-alto.net/Wiki/pmwiki.php?n=PmWiki.PageHistory (2016-05-01)
    Open archived version from archive

  • Uli-Alto PmWiki/Categories
    also link to a category list without adding the linking page to the category by using Category Subject PageUrl Subject This will create a link that looks like Subject without adding the linking page to the category listing Recap So by adding the link Subject to a page a link to that page will automatically appear on the page Category Subject as long as Category GroupFooter has been tweaked appropriately Thus you can create a page that automatically creates an alphabetized list of all movies discussed on your wiki by creating links to Movies on each film s page the resulting automatic list would be on the page Category Movies authors advanced Category nesting Categories have the potential for even greater usefulness because Category pages can themselves be placed into categories To follow an excellent example from John Rankin let s suppose we have the following film pages in the categories listed to the right Film ShaunOfTheDead Horror Comedy 2003 Film InMyFathersDen Drama 2004 Film TheCorporation Documentary 2003 Now then we can create Category Horror Category Comedy Category Drama and Category Documentary and in each one of those pages we put Genre In Category 2003 and Category 2004 we put Year So what happens when we display Category Genre We see links to Comedy Drama Documentary and Horror because they re in the Genre category When we click on one of those links we see all of the films listed in one of those categories Similarly if we click on Category Year we see links to 2003 and 2004 each of which in turn displays the list of films for that year Finally in Category Genre and Category Year we can put Category which makes them top level categories reachable from the Category Category page Voila we now have an instant hierarchy Category Category Category Genre Category Comedy Film ShaunOfTheDead Category Drama Film InMyFathersDen Category Documentary Film TheCorporation Category Horror Film ShaunOfTheDead Category Year Category 2003 Film ShaunOfTheDead Film TheCorporation Category 2004 Film InMyFathersDen Note however that this isn t a strict hierarchy i e any page or category can appear simultaneously in multiple categories For example Category Documentary could be a member of both the Genre and top level category listings Each category page can have content text before the generated list e g to give a generic description of things in the category Or it can be empty which works fine It can also contain associations to related categories see also references For example in a tourism wiki the bed and breakfast category might contain a see also reference to the self catering category administrators intermediate The guts of the category markup As mentioned all of the necessary markup features for Categories are enabled by default in current releases of PmWiki 2 0 but here s how they work for those who are interested The use of the Category group as the repository for all categories is determined by setting the CategoryGroup variable and the special Subject markup

    Original URL path: http://uli-alto.net/Wiki/pmwiki.php?n=PmWiki.Categories (2016-05-01)
    Open archived version from archive