Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Newsletter Archive View modes: 
User avatar
Member
Member
Phil. E. - 6/13/2012 8:29:56 AM
   
Newsletter Archive
Having created a Newsletter with attached files and sent it to archive. Is there any way of showing/linking to the attachments as well as showing the Newsletter on the archive pages?

This would allow a subscriber to log into the newsletter archive, view the newsletter AND download the attachments.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/20/2012 10:21:00 AM
   
RE:Newsletter Archive
Hi,

the easiest way right now would be to use query datasource or query repeater. Then, in the query you will need to get the file GUID using custom query. The file is stored in CMS_MetaFile table. So, in you query you need to use e.g. MetaFileObjectID=IssueID, MetaFileObjectType=“newsletter.issue“, MetaFileGroupName=“Issue“, MetaFileSiteID=siteID to return the MetaFileGUID.

Then, using the GUID in the transformation you can compose the link to it: ~/CMSPages/GetMetaFile.aspx?fileguid=<%MetaFileGUID%>‘.

Best regards,
Juraj Ondrus

User avatar
Member
Member
Phil. E. - 6/21/2012 1:34:36 AM
   
RE:Newsletter Archive
Thanks Juraj. Not sure I understand all that but I'll give it a go :0)