Copied to clipboard

Flag this post as spam?

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


  • Frederik T 234 posts 345 karma points
    Aug 10, 2011 @ 11:12
    Frederik T
    0

    Getting DAMP image from document.

    After trying to get help here:

    http://our.umbraco.org/forum/developers/xslt/22978-Referencing-to-picture-inside-a-document-from-XSLT-macro

    (if you want the full story, its best if you read the topic above as i would just be repeating myself)

     

    Anyway, i tried looking at the DAMP sample xslt file, which i didnt gain much from, and i cant find any proper documentation, but i must be missing something big as others seem to use DAMP just fine.

    My problem is, i have a list showing the most recent created articles (document types). That list has to show the respective articles name and its picture (When an article is created, the author can upload one or more pictures using DAMP-New).

    How do i go about that?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Aug 10, 2011 @ 11:20
    Jeroen Breuer
    0

    Hi,

    Since your using DAMP you now store all the media data inside your umbraco xml. See this sample:

    Could you please post a part of your Umbraco xml. You can find it in App_Data\umbraco.config. There please return the xml of one of the documents (has @isDoc attribute) which contains DAMP. Than I might be able to help.

    Jeroen

  • Frederik T 234 posts 345 karma points
    Aug 10, 2011 @ 11:25
    Frederik T
    0

    Do i have to reference directly to that file? Because this xslt file is generic and is used on multiple pages showing various articles, and it would be a major hassle and not worth the time to reference each specific image by hand.

    I thought there existed a method i could use in the xslt file? It looked there was one based on the DAMP sample.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Aug 10, 2011 @ 11:28
    Jeroen Breuer
    0

    I don't really understand. In xslt you have a value called currentPage. That always returns xml which is part of the umbraco.config file. I'm asking if you could share that xml with me so I can have a look at how to retrieve the data with xslt.

    Jeroen

  • Lennart Stoop 304 posts 842 karma points
    Aug 10, 2011 @ 11:36
    Lennart Stoop
    0

    In case it would help, I've added a sample XSLT select in the orginal post:

    http://our.umbraco.org/forum/developers/xslt/22978-Referencing-to-picture-inside-a-document-from-XSLT-macro

  • Frederik T 234 posts 345 karma points
    Aug 10, 2011 @ 12:24
    Frederik T
    0

    Thank you for your reply, i replied to your post in my original thread.

  • Frederik T 234 posts 345 karma points
    Aug 10, 2011 @ 12:34
    Frederik T
    0

    @Jeroen

     

    I dont think ive explained it very well, sorry. I have a page with a list, that links to a list of a specific document type. Those documents either have a single or many pictures associated using DAMP, they mostly have a single picture.
    That list, has to show the documents title, and the first picture in its damp gallery for that respective document.

    Thats what i need help with, and i dont understand what the umbraco.config is for, because isnt it possible to have some sort of generic select statement/method instead of referencing directly, because i guess thats what you want the umbraco.config for? Or am i mistaken?

Please Sign in or register to post replies

Write your reply to:

Draft