(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).
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.
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.
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.
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?
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?
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
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.
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
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
Thank you for your reply, i replied to your post in my original thread.
@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?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.