Skip to content

Autoroute Path not being correctly generated when ContentItem is created via code. #10204

Answered by Skrypt
XpandIT-RFID asked this question in Q&A
Discussion options

You must be logged in to vote

You need to use contentItem.DisplayText = "Test" else you could try to change your Liquid to use {{ ContentItem.Content.TitlePart.Title | slugify }}

DisplayText sets it's value from the TitlePart.Title from a handler and it seems that the value is not affected on the ContentItem yet when it gets parsed by this Liquid template. There is probably a small issue there but it should work by doing what I described above.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@XpandIT-RFID
Comment options

Answer selected by XpandIT-RFID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants