Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Transformations - what file? View modes: 
User avatar
Member
Member
eoin-fusio - 10/4/2013 11:49:50 AM
   
Transformations - what file?
I'm working on a site that has a transformation on the homepage, it links to a file for download. I cannot figure out how it knows what file to download though.

This is the homepage code:

<cms:CMSRepeater runat="server" id="rptDocListing" ClassNames="CMS.File" TransformationName="CMS.File.DocListingHome" MaxRelativeLevel="2" />

I can find that file transformation in the site manager area, I can see it in the DB but how does it 'connect' to the relevant file? I didn't create this site and am trying to recreate this functionality but with a different file to download.

Should I be looking for a file called DocListingHome somewhere?


User avatar
Certified Developer 13
Certified Developer 13
kentico_josefd - 10/4/2013 6:58:42 PM
   
RE:Transformations - what file?
Hi,

The CMSRepeater is a web part which provides listing functionality. In short it will list any documents from the content tree based on the specified parameters.

For example in your setup, it will list all children documents of type CMS.File ( ClassNames="CMS.File") which are no more than 2 levels deep (MaxRelativeLevel="2") bellow the document this web part is placed on (no path property specified)

The manner in which the documents are listed is determined using the transformation you mentioned.

If you give me more details on what you are trying to achieve and structure of your site (where the new file is located), I may be able to help you further.

Regards,
Josef Dvorak

User avatar
Member
Member
eoin-fusio - 10/8/2013 5:57:17 AM
   
RE:Transformations - what file?
Thanks Josef, that might just be enough for me to go on. I'll see if I can figure the rest out.

In the meantime if you're feeling particularly helpful I'll describe what I'm trying to achieve. Currently the website has a link to a document on the homepage, it's a PDF.

Now I went to change this link so that instead there are two links, each linking to different PDFs.

That's it in a nutshell really, have one link, what to change it to two different links.

Thanks!

User avatar
Certified Developer 13
Certified Developer 13
kentico_josefd - 10/8/2013 4:27:08 PM
   
RE:Transformations - what file?
Hello,

If the .pdf files are stored as File document type in the content tree, it should be enough to specify a path property pointing to a parent document of these files. For example Path="/Files/PdfFilesDirectory/%".

Alternatively, you can replace the Repeater web part by an Editable text web part and place the two specific links manually.

Let me know if you need any more help.

Regards,

Josef