Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michael 22 posts 61 karma points
    May 07, 2014 @ 09:30
    Michael
    0

    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.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 07, 2014 @ 09:36
    Jan Skovgaard
    0

    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

  • Michael 22 posts 61 karma points
    May 07, 2014 @ 09:50
    Michael
    0

    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.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 07, 2014 @ 11:25
    Jan Skovgaard
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft