setting page alias path length

mantra tester asked on July 21, 2021 12:59

How to setting page alias path length in Kentico 13? I tried to set CMSMaxNodeAliasLength at web. Config, but got error while saving the changes. I tried modifying column NodeAlias at table CMS_Tree. But it affected others table and forced to remove indexes from [View_CMS_Tree_Joined]

Correct Answer

Juraj Ondrus answered on July 22, 2021 06:28

You can try following the instructions in the table for the CMSMaxNodeAliasLength in the web.config keys documentation. But it was no longer tested on Kentico Xperience 13 and it may cause serious issues. Definitely not recommended. It was removed from documentation and also marked as obsolete in Kentico 12 as it was causing more issues than benefits. Use it at your own discretion!

1 votesVote for this answer Unmark Correct answer

Recent Answers

Juraj Ondrus answered on July 21, 2021 15:07

Why do you need it? Changing those values can lead to performance drop since SQL server can index 450 character only. So, the size is set to cover 9 levels in the tree. I would rather recommend using separate fields in the page type. One for the short name - and this one will be used as the page alias source. And second field, where the editor can add the full value. Then, in the front end code get the first one for the URL and second one's value for the content.

0 votesVote for this answer Mark as a Correct answer

mantra tester answered on July 21, 2021 19:09

I need it because, I have already created API which is used that path as parameter. And from client requirement needs it too, and it used to import data from others apps before. it's possible to edit the length ?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.