Copied to clipboard

Flag this post as spam?

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


  • Sami-L 8 posts 109 karma points
    Nov 11, 2015 @ 21:57
    Sami-L
    0

    Change Website Name

    Hello,

    Following the Umbraco Tutorial , I have installed an empty website, then used the Modernizr template as advised. I got the same result as tutorial, then I wanted to go ahead and make some other changes such as modifying the website name, since the template shows the current page name instead of The Website name.

    (please look at the h1.title item in the below image)

    umbraco 7.3.1 empty using Modernizr template

    So I have added a new tab in the HomePage DocumentType that I named: "Site Config Data", then added to it a new property: "websiteName", then in the Master page template header I inserted the same field with the recursive option checked, so now it looks like the next:

    <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    
    <title>@Umbraco.Field("websiteName", recursive: true)</title>
    
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <link rel="stylesheet" href="/css/style.css">
    <script src="/scripts/libs/modernizr-2.0.6.min.js"></script>
    

    Then in the Home page under the Content node, I entered the required website name in the newly added field.

    But when I browse to the home page and click on the menu bar options, still the current page shows instead of the website name.

    I googled on this issue, but could find nothing, any ideas please ?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Nov 12, 2015 @ 14:27
    Dennis Aaen
    1

    Hi Sami-L,

    So you have a field on your homepage document type, and added a new field that has the alias of websiteName, and you enter something new text into it.

    Did you remember to hit the save and publish, or did you only hit the save, if so the content is saved, but not visible yet. What you need to do is to this save and publish. Is you already done this, it could be some cache.

    What you could try is to republish the entire site. If you go to the top of the your site in the content section, where you see "CONTENT" hit the three dots, and click "do something else" then you will see the option.

    enter image description here

    When you hit “Republish entire site” the umbraco.config file is updated with the latest changes in the database. http://umbraco.tv/videos/umbraco-v7/content-editor/

    The cache is on the file system located in /App_Data/umbraco.config so you could also try delete the file, then hit the “Republish entire site” this will re-create the file with the updated content.

    Since you are new to Umbraco a good place to start learning Umbraco is on our video website http://umbraco.tv/videos/umbraco-v7/.

    Here you will find the latest videos for Umbraco 7 that shows the basic concept of working with the Umbraco CMS.

    Hope this helps,

    /Dennis

  • Sami-L 8 posts 109 karma points
    Nov 12, 2015 @ 15:31
    Sami-L
    100

    Thank you Dennis for your useful suggestions, The mistake that I did is that I have put the websiteName field into the head tag instead of putting it into the body tag. It is displayed now in the right place.

  • Sami-L 8 posts 109 karma points
    Nov 12, 2015 @ 15:51
    Sami-L
    0

    By the same, where to report remarks about tutorials, and documentations, I am following the tutorial here but found no markdown.css file sample in the tutorial. Is there any code source for this tutorial to compare with the found results ?

    Could you help on this, please ?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Nov 13, 2015 @ 10:57
    Dennis Aaen
    0

    Hi Sami-L,

    If you have some report remarks about tutorials, or the documentation for Umbraco CMS, we would love if you want to create an issue using this link https://github.com/umbraco/UmbracoDocs/issues

    For the CSS part, perhaps this http://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/stylesheets-and-javascript/using-stylesheets/ video can help you further.

    Hope this helps,

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft