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

Pagelink as an image?

Vote:
 
Hi. I'm sure there is some easy solution to this, but I can't find it. I have a pagelist control that must display a clickable image as it's link. At the same time, it must handle different targets for the pages (ie some of the links must open in a separate window) This code (naturally) has the right functionality: > while this code render the link as it is supposed, but does not (naturally) handle the target imformation from epi: > <%# container.currentpage["someimageproperty"] %>So... how do I combine the functionality of these two?
#13389
Mar 12, 2008 10:53
Vote:
 
Add the PageTargetFrame property. <?xml:namespace prefix = episerver/><episerver:pagelist runat="server" pagelink="<%#CurrentPage.PageLink%">> <ITEMTEMPLATE><A href="<%# Container.CurrentPage.LinkURL %>" target="<%# Container.CurrentPage[" orgurl="<%# Container.CurrentPage.LinkURL %>" pagetargetframe="] %>"><![CDATA[<%# Container.CurrentPage["SomeImageProperty"] %>]]></A> </ITEMTEMPLATE></episerver:pagelist>/Steve
#19098
Mar 14, 2008 21:07
Vote:
 
Thanks! I knew it was simple, but I just could not find the right property.
#19099
Mar 17, 2008 10:20
Vote:
 

I have a question about the Container.CurrentPage.LinkURL value. Will this value be handled by the FriendyUrlRewriteProvider?  If this is the case, how come?  Will this happen because the LinkURL is used inside a PageList that's being databinded?

Regards / Christoffer

#19177
Mar 28, 2008 15:38
Vote:
 

The LinkURL renders the friendly url by itself in v4. In v5, this is handled by EPiServer in the page.Filter event, where all urls will be "friendlyfied" :-)

/Steve

#19189
Mar 29, 2008 13:58
* 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.