<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Pm's CategoryList page variable seems very handy. Unfortunately it didn't display anything for me.<div><br class="webkit-block-placeholder"></div><div>My page simply contains:</div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 13px; white-space: pre-wrap; ">Category: [[!Tag1]], [[!Tag2]]
(:markup:)
Categories found on this page: {$CategoryList}
(:markupend:)</span></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre-wrap;"><br class="webkit-block-placeholder"></span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre-wrap;">and in config.php I have:</span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre-wrap;"> $FmtPV['$CategoryList'] = 'CategoryList($pagename, $page)';
function CategoryList($pagename, $page) {
preg_match_all('/(?:^|,)Category\.([^,]+)/', $page['targets'], $x);
$out = '';
foreach ($x[1] as $n) {
$out .= "[[!$n]] ";
}
return $out;
}</span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre-wrap;"><br class="webkit-block-placeholder"></span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre-wrap;">Has it worked for anyone else?</span></font></div><div><div><div><br class="webkit-block-placeholder"></div><div>Randy</div><div><br><div><div>On Feb 28, 2008, at 2:30 PM, Patrick R. Michaud wrote:</div><blockquote type="cite"><blockquote type="cite"><br></blockquote><blockquote type="cite">Is there a way to get a list of which categories a partuclar page belongs <br></blockquote><blockquote type="cite">to?<br></blockquote><br>I suggest making a page variable for this:<br></blockquote></div><br></div></div></div></body></html>