Copied to clipboard

Flag this post as spam?

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


  • vadz 9 posts 29 karma points
    Jan 31, 2013 @ 23:26
    vadz
    0

    Select the Image from Media folder

    Im using Umbraco V3

    Im new to umbraco. the code was already done but im doing the maintenance part when i come in..i try to locate the Image logo to select my image in media folder but cant find it.i try to code using hard coded but it was not display..

    <xsl:copy-of select="umbraco.library:GetMedia(1288, 0)/umbracoFile"/>

    <img src="/media/1288/banner6.jpg" border="0"/>

    here i replace 7745 with 1288 as my ID. the 1228 was display on the lower left corner of my setting when i point into my image however for ID 7740 banner 5 it was display but its ID when point to the image was 1250 .

    Could someone shown more lights on this

    thanks in advance

     

  • vadz 9 posts 29 karma points
    Jan 31, 2013 @ 23:31
    vadz
    0

    sorry ID should 1288 and not 1228..

  • Charles Afford 1163 posts 1709 karma points
    Feb 04, 2013 @ 09:13
    Charles Afford
    0

    Hi, have you tried going to into the media folder and seeing if the file is there? ~/media/id/imagename

    I would try and remove the image from the media section in Umbraco and re-add it.  Also why have you got xslt in your template?  Should this not be in an XSLT file?

    Charles.

  • pat 124 posts 346 karma points
    Feb 06, 2013 @ 14:04
    pat
    0

    open an internet browser and type your website url the copy the image src you should be able to see the image in browser. if not src is wrong.

    if you can find the image in media folder , go to content area add new test page to your site and in richtext editor click on insert image button. then shoose image this will show you the src to image.

    Also i can see you are straight adding image to Template , to avoid this you can add a property in Document Type call page logo with type media picker then write a small xslt file to generate image tag and add this macro to page.

    so if you need to change the image you don't need to change template, you just need to change in page.

     

     

  • vadz 9 posts 29 karma points
    Feb 07, 2013 @ 04:32
    vadz
    0

    hi pat ,

     

    thanks a million...it works fine

Please Sign in or register to post replies

Write your reply to:

Draft