Copied to clipboard

Flag this post as spam?

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


  • blackhawk 313 posts 1368 karma points
    Aug 02, 2017 @ 15:01
    blackhawk
    0

    Understanding code references from Fanoe on Umbraco 7.6.3

    3 questions in regards to Fanoe for Umbraco version 7.6.3

    When I load the Fanoe home page, there is a background image within the grid-section. From chrome developer tools, when I inspect the page the element, it looks like this...

    <div style="background-image:url(/media/1044/14441035391_7ee1d0d166_h_darken.jpg);>...</div>

    1. I can't find this style attribute in BackOffice. How did it get implemented onto the div element?

    2. I can't find folder /1044 under the media section in BackOffice. How is it that this folder exist at the file level of Umbraco, but not in BackOffice?

    3. On the master template, there is the following element...

    ```

    ```

    ...can I use @(home.SiteLogo) in a stylesheet? or is this only available to do on templates?

    Thanks!

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Aug 02, 2017 @ 16:28
    Dennis Aaen
    100

    Hi blackhawk

    I will try to answer your questions

    1. I can't find this style attribute in BackOffice. How did it get implemented onto the div element? You can find this element in the grid layout in the backoffice.

    Try to mark the row with the banner and click on the settings icon then you should see this.

    enter image description here enter image description here

    1. I can't find folder /1044 under the media section in BackOffice. How is it that this folder exist at the file level of Umbraco, but not in BackOffice? Try to see this issue on the tracker. http://issues.umbraco.org/issue/U4-5957 that is why you canĀ“t find the images in the backoffice.

    2. On the master template, there is the following element...

    <a href="@home.Url">
       <div class="brand" style="background-image:url('@(home.SiteLogo)?height=65&width=205&bgcolor=000')">...</div>
    </a>
    

    You can only do the @ in the template or a partial view file or partial view macro file because it the sign for starting the razor engine.

    Hope this helps.

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft