Virtual node (don't want the URL in the children page URLs)

Great article from Andy URL Segment Customisation with Umbraco 15.4 !

I’ve set up a virtual document type (it has no template), and I’d like it not to appear in the children’s page URLS e.g. If my virtual node URL is landing-pages and If I create a content page ‘Awesome Data’ under it, then URL for this page would be /awesome-data not /landing-pages/awesome-data. How can I achieve this?

Hi Ravinder,

I don’t believe there is anything available out of the box or package wise for this currently, that is compatible with v15.

However, there is this for v13 which might help you create something custom, or possible contribute back to this package via a pull request to enable support for v15

Hiding nodes from a URL structure is different to that of changing the URL segment value for a node which is why I don’t think the approach in Andy’s blog will work for your described use case.

Thanks

Nik

VirtualNodes that’s included as part of DotSee’s Discipline package would also do what you need but doesn’t support v15 yet.

The source code is on GitHub and you should be able to see the part that’s doing the main work here:

Thanks @Nik @rickbutterfield, I am fully equipped to create a virtual node utilizing the valuable links you shared. Thank you for providing the resources that made this possible!