| Topic: | Diferent menus, based on content category? |
|---|---|
|
Converted
12 Posts: 0 Posted: |
I have a question, is there a way to have for example four menu blocks, and every one display only when dokument from specified category is displayed. Or something similar.. In pagesetter I can do this, because there is diferent publication type - Theme settings->Page configurations assignments->different ini file , but in Content Isn't pub. types. |
|
Converted
12 Posts: 0 Posted: |
Hello sorry for my english :-D I have done little changes in Content/pnuserapi.php : Codeif (substr($lastarg, strlen($lastarg)-strlen($suffix)) == $suffix) {lines commented //new are new or modified and I created new fuction in Content/pnpageapi.php: Codefunction content_pageapi_GetPageCategory($pageId) //newnow is possible to use advanced block placement option in Block settings to distinguish which blocks will be displayed, based on content category or pid! On advanced block placement page, is neccesery to set function type=user, function=view and custom arguments: cat=xx or pid=xx. For example is possible to use more arguments: pid=1, pid=3, cat=5 etc.. And the block will display only if the dokument is in specified category or only for specified dokument 8-) This modification works only with short urls enabled! edited by: antz, Jun 11, 2008 - 08:13 AM |
|
Converted
12 Posts: 0 Posted: |
Actually, you could do this using the Extended Menu block in PN 0.8 RC4 / Zikula 1.0. You can assign certain menu items to specific pages within your site. For an example of what I mean and how I used it, visit http://www.pdgroupllc.com -- take note of the menu then click on "Services" and you'll see new menu items appear. |
|
Converted
12 Posts: 0 Posted: |
WendellActually, you could do this using the Extended Menu block in PN 0.8 RC4 / Zikula 1.0. You can assign certain menu items to specific pages within your site. For an example of what I mean and how I used it, visit http://www.pdgroupllc.com -- take note of the menu then click on "Services" and you'll see new menu items appear. Yes, It works, but only with short URLs disabled, because with short URLs enabled the returned argument is only content item name (not pid). The modification above, is the solution to do this with short URLs enabled. |