<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"></span> </div><div>okay, so after a little further thought, and after looking at pagelist.php and powertools, i realize that basically what i need is a version of pagelist that can iterate through fmt=#mycustomfmt (which is declared on the LocalTemplates page) just as it normally would, but without adding a linebreak to each entry... with this linebreak, no matter what i do, a template like this:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>[[#testFmt]]</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:template each:)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>{=$Name}\</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>[[#testFmtend]]</div><div><br></div><div>always spits out a vertical list like this:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>page1</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>page2</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>page3</div><div><br></div><div>rather than:      page1page2page3</div><div>(i can add commas to the template later)</div><div><br></div><div>my problem now is that i can't find where in pagelist.php (i'm assuming in FPLTemplate()) that this newline is being inserted. if i could locate it, i presume i could copy the main FPLTemplate function, minus the newline, into a custom template declaration, and i'll have a nice and accurate list of pages to feed pagecount.</div><div><br></div><div>... but i don't see the newline anywhere ...</div><div>any hints?</div><div><br></div><div>thanks,</div><div>adam</div><div><br></div><div><br></div><br><div><div>On 13 Sep 2008, at 5:31 AM, Hans wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Saturday, September 13, 2008, 1:08:56 PM, adam overton wrote:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">so again, is it/can it/will it be possible to run {(pagelist)} thru a</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">custom fmt and have it still spit out as a csv?</div> </blockquote><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; ">this seems to be a contradiction in itself.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">If you want a custom formatted output, you won't have a</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">comma-separated output.</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; ">On the other hand, have a look at powertools.php.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">You could give a different value with fmt=mycustomfmt</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">but you need to define what it should be similar to</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">$FPLFormatOpt['csv'] = array('fn' =><span class="Apple-converted-space">  </span>'FPLSimpleText');</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">function FPLSimpleText($pagename, &amp;$matches, $opt) {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space"> </span>.....</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; ">in powertools.php. I.e you could define</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; ">$FPLFormatOpt['mycustomfmt'] = array('fn' =><span class="Apple-converted-space">  </span>'FPLMyCustomFmt');</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">function FPLMyCustomFmt($pagename, &amp;$matches, $opt) {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space"> </span>.....</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; "><span class="Apple-converted-space">  </span>~Hans</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </blockquote></div><br></body></html>