Copied to clipboard

Flag this post as spam?

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


  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 20, 2010 @ 08:45
    Kurniawan Kurniawan
    0

    Master Page also Exposed outside in the url

    I just notice... when I type this "localhost\Master"

    it show me the Master page.. with the home content...

    Master is my templates in umbraco..

    Why this happen ? is that possible to avoid this ?

     

    Thanks

  • Bas Schouten 135 posts 233 karma points
    Aug 20, 2010 @ 08:51
    Bas Schouten
    0

    This is the way to display your content in a alternative template. It is possible on all nodes.

  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 20, 2010 @ 09:06
    Kurniawan Kurniawan
    0

    what does it mean by alternative template?

     

    I don't want people to see the template.. ? How to do it...?

     

    Thanks

  • Bas Schouten 135 posts 233 karma points
    Aug 20, 2010 @ 09:11
    Bas Schouten
    0

    You can display content in a template other than selected on the properties tab. On this tab you can also find a link to the page that you want to see/preview. If there are other templates under the master (eg homepage) you can also select these.

  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 20, 2010 @ 09:40
    Kurniawan Kurniawan
    0

    I can't see any preview/list of the page when I call /Master...

    btw.. can my templates not expose outside ?

     

  • Bas Schouten 135 posts 233 karma points
    Aug 20, 2010 @ 09:52
    Bas Schouten
    0

    You can try without /master or change to default.aspx. In the umbraco backoffice you find a direct link on the propertys tab of the homepage node. if that fails I'm afraid I can not help further.

  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 20, 2010 @ 09:56
    Kurniawan Kurniawan
    0

    I don't want to be able to access my master page..

    localhost/master... should turn.. to 404 page.. because I don't have page name or alias called Master..

    It's my tempalates.. I don't want people to see it...

    Anyone can help ?

     

    Thanks

  • Sascha Wolter 615 posts 1101 karma points
    Aug 21, 2010 @ 02:08
    Sascha Wolter
    1

    You can add custom rules to the config/UrlRewritig.config file, e.g. one that redirects /master to just '/'. That should take care of your problem.

  • Aaron Powell 1708 posts 3044 karma points c-trib
    Aug 21, 2010 @ 08:39
    Aaron Powell
    0

    Master much match a node URL, umbraco URL's will only send you somewhere if:

    a) the URL matches a node in the content tree

    b) the URL matches one specified in the reserved folders/ reserved paths (in the umbraco.config)

    c) you have a URL rewriting rule for it

    The .Master extension isn't served from IIS AFAIK

  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 23, 2010 @ 03:05
    Kurniawan Kurniawan
    0

    Hi Slace,

    I don't think I satisfied that rule, But when I call "http://localhost/Master"  it returns me the page.. with template similar like in my /masterpages/Master.master
    It can display whatever master page I have in my masterpages folder by calling the name of it...

     

    a) the URL matches a node in the content tree
    * I don't have node called master

    b) the URL matches one specified in the reserved folders/ reserved paths (in the umbraco.config)
    Here is my reserverd Urls and paths, I don't have my masterpages there
    <add key="umbracoReservedUrls" value="~/config/splashes/booting.aspx,~/install/default.aspx,~/config/splashes/noNodes.aspx,~/VSEnterpriseHelper.axd" />
    <add key="umbracoReservedPaths" value="~/umbraco,~/install/" />

    c) you have a URL rewriting rule for it
    I don't have URL Rewriting as well..

     

    Any clue, why I still can access my master page by calling the name ?


    THanks

  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 27, 2010 @ 08:58
    Kurniawan Kurniawan
    0

    I find the answer.. just need to turn off the setting in 404Handler.config.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies