London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hi!
I've not tested it, but try using the following instead:
criteria.Name = "PageURLSegment"
All built in properties are prefixed with "Page".
Regards
Per Gunsarfs
EPiServer CMS Development team
PropertyCriteria criteria = new PropertyCriteria();
criteria.Condition = EPiServer.Filters.CompareCondition.Equal;
criteria.Name = "PageURLSegment";
criteria.Type = PropertyDataType.String;
criteria.Value = "test";
criteria.Required = true;
Is there another way to achieve this? I´m building a cross publishing plugin and a custom url rewriter.
So the page can have more than one url, e.g. example.com/archive/test/ (original url) and example.com/another-page/archive/test/ (custom url).
My problem is to convert the second url to an internal address. Now I´m truncating the second url to example.com/another-page/archive/ (the archive page exists on this url) and then try to find tha page "test" under example.com/archive/ and convert it to /templates/archive.aspx?id=1&articleId=2.
Today I´m using the method ConvertToInternal() to find the page using the orginal url to the archive where the page is published to and then add the url segment. But that doesn´t work if the we have another structure under example.com/archive/ than a flat structure, e.g. example.com/archive/2008/01/test/.
I´ve done some testings, but with no success. Is it possible to search by URLSegment?