Developer forum

Forum » CMS - Standard features » DW10 - How to change Articlelist categories

DW10 - How to change Articlelist categories

NC
NC
Reply

Hi,

my client has many news articles and job articles.
To sort these articles, they created pages/folders with years. The structure looks like this:

Navigation > Articles > News > 2025 > NewsArticles...
Navigation > Articles > Jobs > 2025 > JobArticles...

The category Tag, in the template, is by default showing the parent folder. The parent folder is [2025]
But the client want it to show [News] og [Jobs] as a category.

I think I found the spot, but how to make this grap the grandparent?

sticker += CreateCategorySticker(GetCategory(Dynamicweb.Content.Services.Pages.GetPage(item.GetInteger("ItemPublisher:Item.Field.PageId")).ParentPageId), GetCategoryTheme(GetCategory(Dynamicweb.Content.Services.Pages.GetPage(item.GetInteger("ItemPublisher:Item.Field.PageId")).ParentPageId)));
 
thanx in advance
..NC
 

 

 


Replies

 
NC
NC
Reply

Hi,

it would be highly appreciated, if I could get a little help with this.

thanx in advance
..NC

 

You must be logged in to post in the forum