Copied to clipboard

Flag this post as spam?

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


  • Tomas 2 posts 22 karma points
    Oct 10, 2010 @ 14:52
    Tomas
    0

    Template created in Visual Studio and copied to /masterpages/ not visible in Umbraco CMS

    Hi,

    I'm fairly new to Umbraco development. I've installed umbraco 4.5.1 on IIS 7 running on Windows 7. I've set up my dev environment with a separate web project that xcopys my files to the umbraco installation in the post build event, as suggested in the following blog post: http://our.umbraco.org/wiki/codegarden-2009/open-space-minutes/working-in-visual-studio-when-developing-umbraco-solutions .

    Now I have created a new Template (MasterPage) in Visual studio and the .master file is copied into the umbraco installations /masterpages/ folder. The strange thing is that the new template is not visible in under the Templates node in the Umbraco CMS user interface (under Settings). I thaught that Umbraco 4 and above should read and write Templates to the file system and not the DB, and hence, adding a .master file to the /masterpages/ folder would make the template usable from the Umbraco CMS Interface.

    Can anyonw please explain what I'm doing wrong here? Thanks alot!

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Oct 10, 2010 @ 17:25
    Sebastiaan Janssen
    0

    Not exactly, the file needs to be created from within the umbraco interface as well, to put it into the database.

    Just create a new template in Umbraco and give it the same name as the filename (without ".master"). The content of your masterpage should appear after that.

Please Sign in or register to post replies

Write your reply to:

Draft