Recent Changes
Recent Changes · Search:

TipOfTheWeek.00043 History

Hide minor edits - Show changes to output

16 August 2008 at 05:17 PM by John Rankin - Search
Changed line 3 from:
:Summary:Turn search results into a print form
to:
:Summary:Turn search results into a printed report
31 July 2008 at 09:32 PM by John Rankin - Search
Changed lines 5-6 from:
:Status:Logged
to:
:Status:Published
Changed lines 19-21 from:
This feature makes use of PmWiki's now-deprecated transitional "fplbygroup" function, rather than the preferred template-based approach described in PmWiki/PageLists. This is because the code pre-dates the template feature and we haven't yet worked out how to:
to:
The `PDF version is currently formatted using the "report" template, which produces a fair bit of nice looking, but uninteresting, front matter before the actual content. A good case can be made that printed search results would be more useful if presented using the "article" template, which omits the cover pages and cuts straight to the chase. Perhaps this could become a configuration option in a future release.

The form feature uses PmWiki's now-deprecated transitional "fplbygroup" function, rather than the preferred template and markup
-based approach described in PmWiki/PageLists. This is because the code pre-dates the template feature and we haven't yet worked out how to:
31 July 2008 at 07:41 PM by John Rankin - Search
Changed lines 9-10 from:
:Solution:PmWiki's pagelist directive is a powerful and flexible search system. One of the things we sometimes want to do is let a reader turn selected search results into a typeset report. Wikipublisher includes a special format option to do this.
to:
:Solution:PmWiki's pagelist directive is a powerful and flexible search system. One of the things we sometimes want to do is let a reader turn selected search results into a typeset report. Wikipublisher includes a special format option to do this, shown in Div(customPagelists).
Changed lines 17-28 from:
The first part of the directive is standard pagelist options: look for "citation" on pages in the current group, omitting the usual suspects like the RecentChanges page. The final option, ''fmt=custom'', tells pagelist to use the special "custom" format included with Wikipublisher. This turns the output into a form, with a checkbox against each page found that meets the search criteria.
to:
The first part of the directive is standard pagelist options: look for "citation" on pages in the current group, omitting the usual suspects like the RecentChanges page. The final option, ''fmt=custom'', tells pagelist to use the special "custom" format included with Wikipublisher. This turns the output into a form, with a checkbox against each page found that meets the search criteria. In the `PDF view of the page, in place of the form the results list reverts to the default definition list format.

This feature makes use of PmWiki's now-deprecated transitional "fplbygroup" function, rather than the preferred template-based approach described in PmWiki/PageLists. This is because the code pre-dates the template feature and we haven't yet worked out how to:

# set up a template to produce a suitable `HTML form as output

# use a different template when producing a `PDF or

# translate PmWiki's form markup into a `PDF form

This is left as an exercise for the interested reader.
31 July 2008 at 07:05 PM by John Rankin - Search
Changed lines 9-18 from:
:Solution:PmWiki's pagelist directive is a powerful and flexible search system.
to:
:Solution:PmWiki's pagelist directive is a powerful and flexible search system. One of the things we sometimes want to do is let a reader turn selected search results into a typeset report. Wikipublisher includes a special format option to do this.

(:div id=customPagelists"Publish selected search results":)
(:markup:)
(:pagelist citation group={$Group} list=normal fmt=custom :)
(:markupend:)
(:divend:)

The first part of the directive is standard pagelist options: look for "citation" on pages in the current group, omitting the usual suspects like the RecentChanges page. The final option, ''fmt=custom'', tells pagelist to use the special "custom" format included with Wikipublisher. This turns the output into a form, with a checkbox against each page found that meets the search criteria.
18 July 2008 at 03:09 PM by John Rankin - Search
Added lines 1-15:
:Subject:Search

:Summary:Turn search results into a print form

:Status:Logged

:Need:How can we use pagelist directives to create a flexible typeset-on-demand service?

:Solution:PmWiki's pagelist directive is a powerful and flexible search system.

:Picture:Attach:8th-and-9th-century.jpg

:Caption:Calligraphy from the 8'^th^' and 9'^th^' century

:Category:[[!navigation aid]]
Page last modified on 16 August 2008 at 05:17 PM