hopefully will explain this right! Ok, Basically I have a form within my sitecore website. The forms a sublayout. Basically, I want a url with just this form and not the rest of my sitecore site. Is this possible?
hopefully will explain this right! Ok, Basically I have a form within my sitecore
Share
Sitecore works such that URLs are associated with content items.
A sublayout is typically an ASP.NET User Control (
.ascx) and, as you should be aware, you cannot simply render a.ascxfile without a.aspxfile (i.e. a Sitecore Layout).It seems that you have two approaches.
One:
.aspx)Two:
If you are literally just trying to render a form, then do you really need to have a content item? Why not just create a
.aspxfile, load in your user control, and put it in your web root? The URL to your form will be the location you placed your.aspxfile. When a physical file is found Sitecore will bow out and simply let that page render.