I'd like to get the collection description of a page added with the page selector to the form of a block—a manual nav or an image slideshow, for example. Following snippets from jordanlev's Manual Nav add-on sensibly demonstrate the passage of the collection name as "tempLinkText." I've had some success with makeshift efforts to get the collection description along with the name into edit_row.php though initially the value returns as undefined.
Any help would be great, thanks up front.
<!-- form.php -->
<div id="ccm-edit-rows">
<?phpforeach($linksas$rowInfo){$rowInfo['rowId']=$rowInfo['position'];//we need some arbitrary unique number other than link cID, because there might be more than one menu item pointing to the same page)$rowInfo['pageName']= Page::getByID($rowInfo['linkToCID'])->getCollectionName();$this->inc('edit_row.php',array('rowInfo'=>$rowInfo));}?>
</div>
<div id="rowTemplateWrap" style="display:none">
<?php$tmpRowInfo=array('rowId'=>'tempRowId','linkToCID'=>'tempLinkToCID','linkText'=>'tempLinkText','pageName'=>'tempLinkText',
<!-- form.php -->
<div id="ccm-edit-rows">
<?phpforeach($linksas$rowInfo){$rowInfo['rowId']=$rowInfo['position'];//we need some arbitrary unique number other than link cID, because there might be more than one menu item pointing to the same page)$rowInfo['pageName']= Page::getByID($rowInfo['linkToCID'])->getCollectionName();$this->inc('edit_row.php',array('rowInfo'=>$rowInfo));}?>
</div>
<div id="rowTemplateWrap" style="display:none">
<?php$tmpRowInfo=array('rowId'=>'tempRowId','linkToCID'=>'tempLinkToCID','linkText'=>'tempLinkText','pageName'=>'tempLinkText',);$this->inc('edit_row.php',array('rowInfo'=>$tmpRowInfo));?>
</div>
This website stores cookies on your computer. These cookies are used to improve
your website experience and provide more personalized services to you, both on this website and through
other media. To find out more about the cookies we use, see our Privacy Policy.