Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > News Repeater Template Issue View modes: 
User avatar
Member
Member
ian.dorko-bdel - 12/11/2012 5:28:40 PM
   
News Repeater Template Issue
I'm working on an Intranet Site where I'm using a sidebar navigation rendered as part of my master page. The issue I'm having is that when I view the details of either a News Item or a Blog Post, the sidebar disappears. The sidebar renders fine in both the List Item and Add Item pages, but I can't seem to find any templates for these pages to see where the problem is. Any thoughts?

New Item with Sidebar
User image

News List With Sidebar
User image

Sidebar disappears when viewing item.
User image


User avatar
Member
Member
davids-kentico - 12/12/2012 1:31:48 AM
   
RE:News Repeater Template Issue
Hi,

This looks like an inheritance issue. A few things to check:

- the news item and blog post pages inherit from the master page (properties -> template)
- the menu web part on the master page is allowed to appear on subpages (web part properties -> Hide on subpages)

Hope this helps.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/12/2012 1:42:27 AM
   
RE:News Repeater Template Issue
To add to this - also please check the property Show for document types for the the side bar navigation web part.

Best regards,
Juraj Ondrus

User avatar
Member
Member
idorko - 12/12/2012 10:42:28 AM
   
RE:News Repeater Template Issue
I'm having the news item and blog post inherit from both my root master page and the department master page so I can get the site's main navigation as well, as shown below. Also the web part "Hide on subpages" is unchecked.

User image

User avatar
Member
Member
idorko - 12/12/2012 10:47:54 AM
   
RE:News Repeater Template Issue
Also I've set the webpart to show for CMS.News and CMS.BlogPost and CMS.SimpleArticle, and still no dice.

User image


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/13/2012 1:55:38 AM
   
RE:News Repeater Template Issue
Hi,

Could you please describe us the tree structure of the items and also which item is using which page template and which item is what document type?

Best regards,
Juraj Ondrus

User avatar
Member
Member
idorko - 12/13/2012 10:37:06 AM
   
RE:News Repeater Template Issue
Main Site
--Departments (Page, Intranet Portal Department Template, inherits from Master)
----IT (Department, Custom Template, inherits from Master)
------News (Page, Intranet Portal Department News Template, inherits from Root and IT)
--------News Item (News, Intranet Portal Department News Template, inherits from Root and IT)

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/13/2012 11:38:08 PM
   
RE:News Repeater Template Issue
Hi,

Just to be sure - Root and Master in your post are the same, aren't they?

This seems just to some configuration issue - there must be something not set correctly - the inheritance or some of the menu web part properties. I would have to see it - is it possible to grant us with access to your CMS?

Best regards,
Juraj Ondrus

User avatar
Member
Member
idorko - 12/14/2012 10:29:59 AM
   
RE:News Repeater Template Issue
yeah, root and master are the same. Right now I'm just doing some local prototyping, but our CMS will eventually be an internally hosted intranet, so allowing outside access probably isn't going to happen...

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/17/2012 1:07:16 AM
   
RE:News Repeater Template Issue
Hi,

Could you please export the site and send us the package to support@kentico.com?

Best regards,
Juraj Ondrus

User avatar
Member
Member
idorko - 12/17/2012 10:33:56 AM
   
RE:News Repeater Template Issue
sure, it's on the way.

User avatar
Member
Member
idorko - 12/18/2012 10:07:22 AM
   
RE:News Repeater Template Issue
I ended up solving the problem.
The path for the CSS List Menu used to generate the sidebar navigation was set to " ../ ", so when on the News Item the path was pointing News, and therefore had nothing to display.
Changing the path to
{%cmscontext.currentdepartment.nodealiaspath|(default).%}/%
per the Intranet Template, fixed the issue.

User avatar
Member
Member
Yehuda - 12/18/2012 1:40:31 PM
   
RE:News Repeater Template Issue
Wouldn't a path macro like /{0}/{1}/% work?