November Happy Hour will be moved to Thursday December 5th.

Adding attributes to files

Vote:
 

Anyone got a suggestion on how to add an attribute to the HTML for all files from EPiServer?

I've got an issue with SiteSeeker where it will only group files with the parent page if they have the attribute rel="attachment" on them, so I am looking for a way to automatically add rel="attachment" to all files located in one of the VPP:s.

#74558
Sep 02, 2013 9:09
Vote:
 

Could try and use Response.Filter and regex to look for the correct HTML and add the attribute.

Frederik

#74563
Sep 02, 2013 9:29
Vote:
 

Here´s also a good example on how to do this: http://www.west-wind.com/weblog/posts/2009/Nov/13/Capturing-and-Transforming-ASPNET-Output-with-ResponseFilter

#74564
Sep 02, 2013 9:31
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.