Data source path and custom page type

Jon Tetzlaff asked on October 16, 2015 20:47

I've got a page structure like so:

  1. Homepage - Menu Item
  2. Category 1 - custom page type
    1. Subcategory 1 - Custom page type
      1. Product - Product type
      2. Product - product type
    2. Subcategory - Custom page type
  3. Category 2 - Custom page type
  4. Contact us - Menu item

I then use a page data source with a Hierarchical viewer that filters to only the category and subcategory page type. So here is my issue, on any page that uses the menu item or product page type the nav that is displayed using my Hierarchical viewer works perfect, showing the two categories with a dropdown of the subcategories. But when you go to the category or subcategory pages that are using a custom page type it will only show the current page in the navigation.

It's like the data source will change its path from /% to only selecting the current page, but only when you are on a custom page type. How can I fix this?

Thanks

Correct Answer

Keith Donnell answered on November 18, 2015 18:53

The issue was resolved by unflagging Load the current page only setting of the hierarchical viewer's data source.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Laura Frese answered on October 16, 2015 22:42

maybe something like /{0}/%

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on October 16, 2015 23:17

To add to what Laura suggested, check out the Path Expressions documentation. And also check to see that your hierarchical transformations are set to be used for your specific classes. If you use the document fields you can get away with using most any page type with the transformations because all pages have the document fields (like DocumentName).

0 votesVote for this answer Mark as a Correct answer

Jon Tetzlaff answered on October 19, 2015 15:13

Thanks for your responses! Laura, I tried using that as the path, but it did not work. I'm just confused as to why the custom page types are changing a path that is in the master template. I can't find anything in the path documentation to help me always start at the root page, no matter what the page type is. I need the category and subcategory pages to be custom page types so they can have custom fields.

Brenden, what do you mean by setting the hierarchical transformation to a specific class? Where can you set that?

Thanks,
Jon

0 votesVote for this answer Mark as a Correct answer

Timothy Fenton answered on October 19, 2015 16:36

Hello Jon

Could you please post examples of your transformations so we can take a look at them? Also what version / hotfix of kentico are you using so that we can give you a solution that will work for your version? Maybe a screenshot of your data source configuration would help as well.

Thanks

0 votesVote for this answer Mark as a Correct answer

Jon Tetzlaff answered on October 19, 2015 17:19

Kentico version 8.2.41

Data source settings below: Image Text

0 votesVote for this answer Mark as a Correct answer

Timothy Fenton answered on October 19, 2015 18:19

Thanks jon, can you post links, screenshots or text of your transformations so we can review those as well?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.