• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Cataloger: Back to parent category links?
PostPosted: Wed Nov 08, 2006 10:29 am 
Offline
Forum Members
Forum Members

Joined: Thu Oct 05, 2006 11:27 am
Posts: 106
Does anybody know if it is possible to put a back to parent category link on an item page in the Cataloger module?

It seems like it should be straight forward but I can't find the answer anywhere on the forum, and with my limited php knowledge I haven't been able to figure it out. I am already using a breadcrumb trail which does offer a link back - but I think it would really help usability to have a clearer link.

Also does anyone know if there is a way to have next and previous links on an item page, so you can scroll through items within a particular category only?

Thanks for any help!


Top
 Profile  
 
 Post subject: Re: Cataloger: Back to parent category links?
PostPosted: Thu May 31, 2007 11:34 am 
Offline
Support Guru
Support Guru
User avatar

Joined: Mon Jul 04, 2005 5:12 pm
Posts: 4820
Location: Ferrara, Italy
linuxuser wrote:
..why nobody answered?
I need to keep catalog menu box when viewing catalogitem pages...
Any comments are welcome (asap). Because right now I started to make changes to the module source making analogie of random items module.

Actually, opportunity to get parent page is important and I'm glad to find it in tree methods list.


I think that work  ::)

New UDT:
parent_node

Code:
global $gCms;
$manager = &$gCms->GetHierarchyManager();
$thispage = $gCms->variables['content_id'];
$endNode = &$manager->sureGetNodeById($thispage);
$currentNode = &$endNode->getParentNode();
$content = &$currentNode->getContent();
echo $content->mId;


Use:
Code:
{capture name=parent}{parent_node}{/capture}
{cms_selflink text="Parent link" page=$smarty.capture.parent}


View Plugins >> cms_selflink help for option

Alby

_________________
CMSMS Support Team
Italian Admin and Moderator

Plugins: Geolocate hostip, Multiple random image, Image rotator (beta), Content Pagination
Modules: ForumMadeSimple (Howto), TranslationManager
Multilingual: MLE is not CMSMS


Last edited by alby on Thu May 31, 2007 12:08 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cataloger: Back to parent category links?
PostPosted: Mon Aug 20, 2007 2:11 am 
Offline
Forum Members
Forum Members

Joined: Mon Dec 04, 2006 8:26 pm
Posts: 120
linuxuser, did you really do that plugin? I am really interested in list cataloger navigation menu at catalog item pages.
did you already submitted the plugin or could you post the file here?
thank you in advance.

Aleph Ozuas
www.dzo.com.br
www.ciberarte.com.br

_________________
Aleph Ozuas
www.ciberarte.com.br
www.dzo.com.br


Top
 Profile  
 
 Post subject: Re: Cataloger: Back to parent category links?
PostPosted: Mon Aug 20, 2007 4:49 am 
Offline
Forum Members
Forum Members

Joined: Mon Dec 04, 2006 8:26 pm
Posts: 120
never mind, I discovered that Cataloger already provide such option.
always a good idea to read the help page!

thank you,

Aleph Ozuas
www.dzo.com.br
www.ciberarte.com.br

_________________
Aleph Ozuas
www.ciberarte.com.br
www.dzo.com.br


Top
 Profile  
 
 Post subject: Re: Cataloger: Back to parent category links?
PostPosted: Wed Jun 25, 2008 6:53 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Sun Jun 22, 2008 5:33 am
Posts: 315
Location: Sweden
Borrow an old thread...

linuxuser wrote:
Thank you! Very helpfull.


There is one more plugin action.menu.php for Cataloger module.
It allows to have cataloger navigation menu at catalog item pages. Item pages and menu become independent in this way.

Usage:
{cms_module module='Cataloger' action='menu' sub_template='