If you want to use the template as an alternative template to a subpage you simply need to create a page in your content section, which you can access on the url
http://ip:port/page - In order to access your alternative template you can add it to the url http//ip:port/page/test
No, that's not what I mean.I have a form used to registration, I have to save the user's information to my database. In current, I create a tempalte and insert into a macro. user can access my registeration web page by entering "http:\\ip:port\mytemplatename", This is my purpose to create a template.
But now I want to change the address, like "http:\\ip:port\registeration\mytemplatename". because I have many registration forms in the furture. I want to add registeration directory before these web page. I don't know if you understand me.
I do understand what you're asking. And the above example will work since you can call a template from anywhere in your Umbraco structure.
However I'm not sure how you want to create and manage your forms. Will it be in a custom way or will they be handled from the Umbraco backoffice using Contour or some cutsom formbuilder? Perhaps you need to make some custom stuff where you create your own templates outside the scope of Umbraco...then you can use the umbracoReservedUrls key in the web.config.
But try to explain in a bit more detail about your project so I'm certain I get what you're thinking 100% :)
how can I access my template with my custom path?
I created a tempate named test in the setting section.
as we know, I can access it after enter "http://ip:port/test" in the browser.
Now I want to change the url address like "http://ip:port/sub/test".
How can I do to achieve it? Thank you in advanced.
Hi Michael
What is the purpose of the scenario?
If you want to use the template as an alternative template to a subpage you simply need to create a page in your content section, which you can access on the url
http://ip:port/page - In order to access your alternative template you can add it to the url http//ip:port/page/test
Is this what you're looking for?
/Jan
Thank you Jan,
No, that's not what I mean.I have a form used to registration, I have to save the user's information to my database. In current, I create a tempalte and insert into a macro. user can access my registeration web page by entering "http:\\ip:port\mytemplatename", This is my purpose to create a template.
But now I want to change the address, like "http:\\ip:port\registeration\mytemplatename". because I have many registration forms in the furture. I want to add registeration directory before these web page. I don't know if you understand me.
Thank you.
Hi Michael
I do understand what you're asking. And the above example will work since you can call a template from anywhere in your Umbraco structure.
However I'm not sure how you want to create and manage your forms. Will it be in a custom way or will they be handled from the Umbraco backoffice using Contour or some cutsom formbuilder? Perhaps you need to make some custom stuff where you create your own templates outside the scope of Umbraco...then you can use the umbracoReservedUrls key in the web.config.
But try to explain in a bit more detail about your project so I'm certain I get what you're thinking 100% :)
/Jan
is working on a reply...