doesn’t wayfinder have placeholder available for the currently processed item ID in rowTpl’s?
Nice workaround for the time being! Thanks alot!
Quote from: doze at Aug 25, 2006, 02:12 PM
doesn’t wayfinder have placeholder available for the currently processed item ID in rowTpl’s?
I call Wayfinder with the parameter: &titleOfLinks=`id`
Then in the row template I use [+wf.title+] wherever I need that row’s doc ID to appear.
Typically, I use this placeholder in a call to the GetField snippet, which lets me get any field I want from the row’s doc.
--HTH
Yes, I made some examples from cssplay menus.. here’s instructions how to setup that menu:
I saw that you made some examples from cssplay like the flyoutmenu now Stu has made a new version of that menu that needs less css could you make a template for that menu also?
<li><a [+wf.classes+] href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]<!--[if IE 7]><!--></a><!--<![endif]--> <table><tr><td> [+wf.wrapper+] </td></tr></table> <!--[if lte IE 6]></a><![endif]--> </li>
<div class="menu"> [!Wayfinder? &startId=`0` &level=`4` &parentRowTpl=`wfParentRow`!] </div>
<li>[+wf.linktext+]</li>
$getFields = 'id,menutitle,pagetitle,menuindex,published,hidemenu,parent,isfolder,description,alias,longtitle';
$getFields = 'id,menutitle,pagetitle,menuindex,published,hidemenu,parent,isfolder,description,alias,longtitle,template';
if ($resource['id'] == $modx->documentObject['id'] && $resource['isfolder'] && $this->templates['parentRowHereTpl'] && ($resource['level'] < $this->level || $this->level == 0)) {
$usedTemplate = 'parentRowHereTpl';
} if ($resource['id'] == $modx->documentObject['id'] && $resource['isfolder'] && $this->templates['parentRowHereTpl'] && ($resource['level'] < $this->level || $this->level == 0)) {
$usedTemplate = 'parentRowHereTpl';
} elseif ($resource['isfolder'] && $resource['template']=="0" && $this->templates['cat_parentRowTpl'] && ($resource['level'] < $this->level || $this->level == 0)) {
$usedTemplate = 'cat_parentRowTpl';
}$wf->templates['parentRowTpl'] = isset($parentRowTpl) ? $parentRowTpl : '';
$wf->templates['parentRowTpl'] = isset($parentRowTpl) ? $parentRowTpl : ''; $wf->templates['cat_parentRowTpl'] = isset($cat_parentRowTpl) ? $cat_parentRowTpl : '';
This discussion is closed to further replies. Keep calm and carry on.