5
votes

In the past we organized pages inside the page-tree by putting them into pages like "meta" or "submenu". These pages had the option "exclude from speaking url" so their name was not rendered to the url.

Is there any option to do this in TYPO3 9.5 to ignore pages from generating the "slug"?

as example:

WRONG: https: //www.somedomain.tld/metamenu/terms-and-conditions/

RIGHT: https: //www.somedomain. tld/terms-and-conditions/

How to "ignore" the page "metamenu" for automatic-generating the slug?

Best regards Johannes

6

6 Answers

3
votes

It is mandatory for a page to have set a slug and every menulevel will generate another url part. It is not possible to exclude a page - think about how to access this page via url

Here Mathias Schreiber tells a bit about this feature: Feature Demo - Speaking URLs Part 1

0
votes

Have you tried using a Folder instead of a "Page"?

page/page/page somedomain.tld/metamenu/terms-and-conditions/

page/folder/page somedomain.tld/terms-and-conditions/

0
votes

You can leave the parent-page as it is and edit your child-pages. There you can delete parts of the urls in the slug-field.

0
votes

There's a feature in RealURL for TYPO3 8.7 "Exclude from speaking URL". If set 'domain.com/page-one/' loads 'page-one' and 'domain.com/subpage-of-page-one/' loads 'subpage-of-page-one' with no need of 'page-one' in the URL.

The very same thing can be achieved in TYPO3 9.5 manually editing slugs but you can't set the parent page to be excluded from the URL automatically. It's a missing feature.

0
votes

I had the same Problem. Sadly there is no "good" solution as far as i know. But there is a little trick. You can fix this in the database. I deleted all my "slug"-entries in in the database for my pages. Then i wrote in all pages wich should not show in the url in slug "/". This does sadly not work in TYPO3, because the BE allows just one "/" and the second "/" will be changed to "/1". But in the Database you can do it. After you edited the slug for your page metamenu and other to "/", you can go into the upgrade-wizard in the installtools, reset the "generate slugs" task and run this task again. This is sadly the only solution i came up with.

0
votes

The TYPO3 extension "masi" provides this feature, including an upgrade wizard that migrates the realurl tx_realurl_exclude settings.