<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Another problem --<DIV><BR class="khtml-block-placeholder"></DIV><DIV>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).</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[@</DIV><DIV>[[#othercatlist]]</DIV><DIV>(:if expr ( ! equal "{Data-{=$BaseName}$:Year}" "{Data-{<$BaseName}$:Year}" ) || ( ! equal "{Data-{=$BaseName}$:Work}" "{Data-{<$BaseName}$:Work}" ) || ( ! equal "{Data-{=$BaseName}$:WAuthor}" "{Data-{<$BaseName}$:WAuthor}" ) :)</DIV><DIV>* [[ Category/Title-{Data-{=$BaseName}$:Work} | {Data-{=$BaseName}$:Work} ]] - [[Category/Author-{Data-{=$BaseName}$:WAuthor} | {Data-{=$BaseName}$:WAuthor} ]] - [[ Category/Year-{Data-{=$BaseName}$:Year} | {Data-{=$BaseName}$:Year} ]] </DIV><DIV>(:ifend:)</DIV><DIV>[[#othercatlistend]]</DIV><DIV>@]</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>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.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Category/Author-{Data-{=$BaseName}$:WAuthor}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>For example: if $:WAuthor contains a Jr. in the name, an initial like C.S. Lewis, etc.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>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? i.e. I can make custom markup to create the category links... it would save a LOT of typo errors.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thoughts?</DIV><DIV><BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">Crisses</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><BR class="khtml-block-placeholder"></P> </DIV><BR><DIV><DIV>On Oct 14, 2006, at 11:15 AM, Crisses wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I've defined the following pagelist:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">!!!fmt=#periodcatlist</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">For the Period category pages.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">[@</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">[[#periodcatlist]]</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(:if expr ( ! equal "{Data-{=$BaseName}$:Year}" "{Data-{<$BaseName}<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">$:Year}" ) ||<SPAN class="Apple-converted-space"> </SPAN>( ! equal "{Data-{=$BaseName}$:Work}" "{Data-{<<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">$BaseName}$:Work}" ) ||<SPAN class="Apple-converted-space"> </SPAN>( ! equal "{Data-{=$BaseName}$:WAuthor}" <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">"{Data-{<$BaseName}$:WAuthor}" ) :)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">* <SPAN class="Apple-converted-space"> </SPAN>[[ Category/Year-{Data-{=$BaseName}$:Year} | {Data-{=$BaseName}<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">$:Year} ]] - [[ Category/Title-{Data-{=$BaseName}$:Work} | {Data-{=<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">$BaseName}$:Work} ]] - [[ Category/Author-{Data-{=$BaseName}<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">$:WAuthor} | {Data-{=$BaseName}$:WAuthor} ]]</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(:ifend:)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">[[#periodcatlistend]]</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">@]</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">in other words:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space"> </SPAN>If the year changes, OR the title of the "work" (book) changes, OR <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">the Author's name changes:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">spit out another header of category links to specific pages</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The problem is probably in the "order".<SPAN class="Apple-converted-space"> </SPAN>This pagelist format is <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">called from Category/GroupFooter with:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(:if name Category.Period-* :)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(:pagelist link=Category.{$Name} group=Simile fmt=#periodcatlist <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">list=normal order=$:Year,$:Work,$:WAuthor :)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(:ifend:)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Something's wrong with the sort order:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://similepedia.com/index.php/Category/Period-20thCentury">http://similepedia.com/index.php/Category/Period-20thCentury</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">yields:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1939 - The Grapes of Wrath - Steinbeck, John</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1937 - Of Mice and Men - Steinbeck, John</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1939 - The Grapes of Wrath - Steinbeck, John</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1930 - As I Lay Dying - Faulkner, William</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1939 - The Grapes of Wrath - Steinbeck, John</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1930 - As I Lay Dying - Faulkner, William</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1939 - The Grapes of Wrath - Steinbeck, John</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1930 - As I Lay Dying - Faulkner, William</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">When I would be expecting:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1930 - As I Lay Dying - Faulkner, William</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1937 - Of Mice and Men - Steinbeck, John</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1939 - The Grapes of Wrath - Steinbeck, John</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Anyone know what I did wrong this time?<SPAN class="Apple-converted-space"> </SPAN>Does the pagelist sort <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">handle alphaNUMERIC sort?<SPAN class="Apple-converted-space"> </SPAN>Years, I expect, will always be 4 digits, <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">so I don't need a sophisticated numeric sort...</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Crisses</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">pmwiki-users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>