Determining if a page is a static .aspx page or does not exist in the sitecore pipeline -
i'm working in sitecore pipeline on processor. need determine if request being sent static .aspx
page not have context item or if page being requested not exist.
this happen right after itemresolver
process fires database set master
both .aspx
running through pipeline , request page doesn't exist.
i can't check if context.item == null
because static page has no item associated , i'd keep way since content on said page not changing.
let me know if have ideas differentiate between these!
you might able use sitecore.context.page.filepath
. set layout
on sitecore item (i.e. '/layouts/standard layout.aspx') while on static page it'll path page.
if static pages in different location sitecore layouts might easy matching part of filepath
.
Comments
Post a Comment