categorized custom module content accessible from different

Posted by Community Admin on 04-Aug-2018 13:52

categorized custom module content accessible from different and/or parent categories

All Replies

Posted by Community Admin on 23-May-2013 00:00

Thanks for your time.

I have a custom content module set up & populated with around 25 content records, each categorized as one of five different types of content ("Support" vs. "Promotional," etc.)

That content is displayed across two taxons. The top level view  ../primary is an index page showing the five different categories (the category name and drill-down link, plus the 3 most recently-published records from each in a list view.)

The next level down, ../primary/categoryN/ is as it sounds just a content list view page. The same content,  but a drill-down view which filters by category and then opens the single items in an auto-generated page. 

I have attached a screenshot of the custom content module's category list page's widget settings.

With the settings as such, the front end granular view of each custom content record is a URL of the format ../parent/categoryX/some-X-categorized-custom-content-record. This makes sense.

My problem is that each record is somehow also accessible via other category URLs dynamically, for  xample the following URLs retrieve the same content and display it out of context:

 ../parent/categoryY/some-X-categorized-custom-content-record
../parent/some-X-categorized-custom-content-record

The result is confusing for the user. I suspect it's related to the "auto-generated page" field in "Single Item Settings," but I'm not sure why.

I'm sure I could fix this by setting up static pages for each piece of custom content, but that would kind of defeat the purpose of creating the module in the CMS in the first place.

I appreciate any pointers as to how I might configure this correctly, otherwise users would be able to access the same piece of content from not only many different URLs but in many different unpredictable display contexts.

Thanks in advance!

Posted by Community Admin on 23-May-2013 00:00

I'm very interested in hearing about the solution too. Just out of curiosity: do the content pages at least have a canonical tag in their HTML that points to one unique URL? Not that it would be a real solution, but it would limit the damage this would do for SEO.

Posted by Community Admin on 28-May-2013 00:00

Hello,

Change the url format for the module so the url for the module is explicitly matching the required pattern. In the provider class for the module <ModuleName>Provider (the class inheriting ContentDataProviderBase) override GetUrlFormat method and apply the approach to change the url format for the module as described here.

The url format can be composed from al fields in the module site.com/pageurl/[PublicationDate]/[UrlName]/[Title]/[Summary] .


Regards,
Stanislav Velikov
Telerik

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed