Hello, I need some help with displaying Pages Short Description in left column menu under page link, just like it is done in Simple News plugin. I've got answer from Boboo that it is possible, but I don't know how to do it.
Any help would be appreciated. Thanks
PS It would be great if anyone can post how to do it where and what to add or change, because I am not expert.
Look, my friend, into /core/pages.php -> function throwMenu. The funcition uses 3 parameters: iType, iPageCurrent, iDepthLimit: The iType determines the menu ("1" for top menu [with basket], "2" for the horizontal menu over the content, "3" for the left menu) The iPageCurrent gives the information which page has been chosen/is open and will be shown as selected and her subPages will be created The iDepthLimit determines how deep the menu should be shown (child nodes)
You don't ask how will it look, you ask only how to display the shortDescription. In the foreach loop the $aData will be filled with all data from the $aPages main array ($this->aPages). In this $aData you will find the sShortDescription as well. But we want to display it only in left menu (iType=3) The content of the menu ($content) begins with setting of html elemntes (<li> with setting class and so on) and then we get our menu item:
but there are some pages, that don't have short desc. in this case we will get the error message: Undefined index: sDescriptionShort so we have to ask for existing the sShortDesc in the $aData array