Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Only partial nested urls


Go to End


3 Posts   781 Views

Avatar
Andre

Community Member, 146 Posts

25 March 2015 at 10:07am

Hi there I'm facing the problem, that I need only partial nested urls for a deep nested site tree (Customer is requesting this for SEO reasons).

I have some landing pages like "topic -> state -> region -> commune -> city -> departments". This will result in some very long urls (/food/germany/niedersachsen/stade/buxtehude/south). I need to shorten this to only two or three paths, but without destroying the hirarchy in the Backend.

Is there any way to achieve this? Like building a Pagetype, which will not have a url path but can have children?

Avatar
Pyromanik

Community Member, 419 Posts

25 March 2015 at 10:15am

Edited: 25/03/2015 10:15am

:( People that insist on silly SEO.

Not so far as I'm aware, but you might be able to cook up something with virtual pages perhaps. Although then they'll probably complain about how it creates 'duplicate content'... you could hide the originals from the menu and add the canonical meta tag (from memory this is a thing) to get around that...

But by this point the whole thing is becoming far FAR too complex.

Avatar
Andre

Community Member, 146 Posts

25 March 2015 at 6:06pm

Hi, google sadly suggests the same. Urls with to much separators will benefit lesser than others. And the current businessmodel of my customer is based on an ugly existing homepage with lots (nearly 1000) of regional landingpages. These Pages I'm currently trying to reorganize in a more structured way and generate them automatically by recombining from hundreds prewritten Textblocks to prevent double content.
Anyway, is there a way to create special routes for special page types?