Disable dynamic content urls

Posted by geoff.white@dlgsc.wa.gov.au on 09-Dec-2019 05:15

I have a custom content widget list on a page, but I want to disable the auto generated URLs it produces.

E.g.
List of offices on ~/offices listing all our offices

I don't want the URLs ~/offices/head-office 

Sitefinity 11.2

All Replies

Posted by geoff.white@dlgsc.wa.gov.au on 18-Dec-2019 08:59

Anyone?

Posted by geoff.white@dlgsc.wa.gov.au on 18-Dec-2019 09:00

Anyone?

Posted by peter.marinov@athracian.com on 18-Dec-2019 09:46

Hey, can you please elaborate on what you're trying to achieve. So you don't like the offices details Urls such as "~/offices/head-office", but how do you want them - do you want to go to another page, or apply different Url structure or don't have details at all?

Please share more info to see what you're trying to accomplish.

Thanks!

Posted by geoff.white@dlgsc.wa.gov.au on 19-Dec-2019 00:30

I simply don't want the URL structure under that page.

Posted by jread on 19-Dec-2019 01:53

Create another page with the name(urk) that you want, sitefinity uses the url-name of the content item as the detail url, so if you want the final url to be ~/office/head-office create a page at the site root called "Office", hide that page from navigation.  On the Offices page under the single item settings in the content widget Open Single Item in ... 'Select Existing Page' then select "Office" page. this will result in the final URL being ~/office/head-office.

Posted by geoff.white@dlgsc.wa.gov.au on 19-Dec-2019 01:58

Thank, but can I disable the auto generated URLs?

Posted by jread on 19-Dec-2019 02:24

To accomplish this hide hide the content item from the Sitemap (property on the content item).  Then in the listing template remove the link to the item detail, that should address it.

Posted by geoff.white@dlgsc.wa.gov.au on 19-Dec-2019 05:15

It still has the url after doing this.

Is there any documentation around this functionality?

Posted by geoff.white@dlgsc.wa.gov.au on 19-Dec-2019 05:56

Finally found this:

www.progress.com/.../common-behavior-of-content-widgets-webforms

Adding QueryString under Edit > Advanced > Model > UrlKeyPrefix

Posted by geoff.white@dlgsc.wa.gov.au on 23-Jan-2020 08:51

I still haven't found a solution.

To reiterate, I have a custom content widget on a page displaying content.

www.dlgsc.wa.gov.au/funding

Sitefinity automatically creates URLs of this content:

www.dlgsc.wa.gov.au/.../KidSport

I don't want this. How can I disable this URL?

This thread is closed