[pmwiki-users] Pagelist problems (pretty advanced)
Patrick R. Michaud
pmichaud at pobox.com
Mon Oct 16 12:19:11 CDT 2006
On Sat, Oct 14, 2006 at 11:44:32AM -0400, Crisses wrote:
> Another problem --
> When a field has a period in it, and I need to make the data part of a
> pagename... (this MAY be related to the problem I originally posted).
> [@
> [[#othercatlist]]
> (:if expr ( ! equal "{Data-{=$BaseName}$:Year}"
> "{Data-{<$BaseName}$:Year}" ) || ( ! equal "{Data-{=$BaseName}$:Work}"
> "{Data-{<$BaseName}$:Work}" ) || ( ! equal "{Data-{=$BaseName}$:WAuthor}"
> "{Data-{<$BaseName}$:WAuthor}" ) :)
> * [[ Category/Title-{Data-{=$BaseName}$:Work} |
> {Data-{=$BaseName}$:Work} ]] -
> [[Category/Author-{Data-{=$BaseName}$:WAuthor} |
> {Data-{=$BaseName}$:WAuthor} ]] - [[
> Category/Year-{Data-{=$BaseName}$:Year} | {Data-{=$BaseName}$:Year} ]]
> (:ifend:)
> [[#othercatlistend]]
> @]
> Long story short, the WAuthor field sometimes has a period (or two) in
> it. This obviously won't work to create the Category/Author-Name link.
> Category/Author-{Data-{=$BaseName}$:WAuthor}
> For example: if $:WAuthor contains a Jr. in the name, an initial like C.S.
> Lewis, etc.
> I had to strip .'s out when creating category links when I had the pages
> written -- is there any way to process the variables and strip out the
> periods?
There's not a built-in way to do this, no. It may require a custom
page variable.
Pm
More information about the pmwiki-users
mailing list