Can you write a page scope that targets any folder with a particular name?

Mike Bilz asked on April 22, 2017 01:30

Hello Kentico Team,

Is is possible to write a page type scope that targets any folder with a particular name?

For example, every department in my site has a "sidebar" folder, which should only contain custom SidebarItem content types, can I write a scope that targets any folder named "sidebar" on my site?

Can Scopes use page path expressions? Something like /%/sidebar ?

Thanks,

-Mike

Recent Answers


Roman Hutnyk answered on April 23, 2017 10:28

Kentico allows to specify path like:

/{0}/articles where {0} is variable. Find more details here

This works well with viewer web parts, however I'm not sure page scope will resolve this. Give it a try.

2 votesVote for this answer Mark as a Correct answer

Mike Bilz answered on April 24, 2017 17:47

Hi Roman,

Unfortunately neither /{0}/{1}/sidebar or /%/%/sidebar seemed to have any effect.

Does anyone know if this is possible? Kentico didn't reject page path expressions, which gives me hope, but it doesn't seem to be following them.

Thanks.

0 votesVote for this answer Mark as a Correct answer

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