Copied to clipboard

Flag this post as spam?

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


  • Martin Skov Nielsen 22 posts 47 karma points
    Jun 12, 2009 @ 18:03
    Martin Skov Nielsen
    0

    Inserting image in mastertemplate

    I'm going crazy with this issue!

    I'm totally new to umbraco and close to giving up!

    I've uploaded an image in Media to a folder named design.

    Now I'm trying to insert the image with the property: topbanner

    As I understand it should be done with:
    [quote]Alternativ text[/quote]

    or

    [quote]Alternativ text[/quote]

    But the image is not displayed? The src attribute is ''

    What I'm a doing wrong - this should be VERY simple....

  • Finn 86 posts 50 karma points
    Jun 14, 2009 @ 10:29
    Finn
    0

    I´ve seen reports that indicates you need to end the code with rather that just />

    Alternativ text

    Havent tested it.

    /Finn

  • Bert 128 posts 251 karma points
    Jun 23, 2009 @ 10:32
    Bert
    0

    If it is possible in your global design and idea of the site. I would recommend putting the layout images in a image folder like you would do on non-umbraco sites.

    A second option is to got to your media item and click the thumb. A new page will open with your image. Copy the url and there you go.

    If that isn't an option, and you need a more custom way, just post your entire select of the top banner here.

  • Casey Neehouse 1339 posts 483 karma points MVP 2x admin
    Jun 23, 2009 @ 11:04
    Casey Neehouse
    0

    I agree with bert.  Images that are referenced in stylesheets should probably be placed with the stylesheet.

    As for images such as banners and other content driven images, look at using inline xslt.  You will likely find it to meet your needs.

    There was also an example where Kasper created a custom control to execute xslt that was embedded in the template.  I also tend to do simple macros for dynamic things such as banners.

    A little unknown trick is to use the nodeID (no sure of the casing) to set the node of the umbraco:item tag.  Thus, you can reference media items in umbraco:item tags just like you do with content.

    Case

Please Sign in or register to post replies

Write your reply to:

Draft