How to map autoroute field to an integer, I need the permalink URL to populate with integer and not string. #13232
Replies: 1 comment 1 reply
-
As the Autoroute pattern under the content type, part settings, you can use If you want consecutive IDs, you can implement your own ID generation logic and add a Liquid tag for it, and use it as the Autoroute pattern. All this being said, I'd generally recommend against all of this and suggest just using human-readable permalinks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I need to map autoroute to Integer value, and while publishing we need autoroute URL to be generated with an auto incremented integer(if we leave the field empty it will automatically generate the URL) and not with string value, kindly assist.
at present the link is generated as
localhost:1234/titleofthecontent
I need the URL to look like 'localhost:1234/12(Integer)
Beta Was this translation helpful? Give feedback.
All reactions