Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Dynamic Transformation Display View modes: 
User avatar
Member
Member
ZachW - 12/13/2011 2:54:41 PM
   
Dynamic Transformation Display
I have a two-server farm running 5.5 R2. I have a custom doc type for our locations. Each of these has a textbox where the user can enter a facebook link if that location has its own facebook page. Not all locations have their own page yet so for now, I have the following code in my transformation...

<a href='<%# Eval("FacebookLink") %>' style='float:right; padding-right: 20px; visibility: <%# (String.IsNullOrEmpty(Eval("FacebookLink").ToString()) ? "hidden" : "visible") %>;' ><img src="~/UPAP/media/fb.png" alt='Facebook Page' width='30px' style='visibility: <%# (String.IsNullOrEmpty(Eval("FacebookLink").ToString()) ? "hidden" : "visible") %>;' /></a>

Everything I could find on the forums and guides led to me doing it this way. I also have a workflow with all changes that they have to be approved by a certain group.

Since the facebook link field is in the 'Form' tab of the node, there's an option to save and an option to submit for approval. I've done both many times and eventually it shows up but it should show up right away. Is there anything I'm doing wrong?

User avatar
Certified Developer 9
Certified Developer 9
charbf - 12/13/2011 7:17:35 PM
   
RE:Dynamic Transformation Display
Hi,

I would use this code instead of making two tests. It also has the adventage of removing the unneaded HTML. if the location has no facebook page.

<%# IfEmpty(Eval("ProductPhoto"), "no image", GetImage("ProductPhoto")) %>

As for your other question have you checked your cache? and scheduled tasks?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 12/15/2011 7:33:54 AM
   
RE:Dynamic Transformation Display
Hi,

if you are using workflow, you need to Approve and Publish document. Then it will be synchronized.

I've done both many times and eventually it shows up but it should show up right away.


Have you checked the output on a Preview or Live site? If the case is enabled, you cannot see changed immediately, if you have not set Cache minutes: 0 in properties of the repeater web part.

Best regards,
Ivana Tomanickova