Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Conditionally display different sub items in a place holder View modes: 
User avatar
Member
Member
ekeys-access - 8/1/2012 9:31:31 PM
   
Conditionally display different sub items in a place holder
I am trying to create a staff page on Kentico 6. In my content tree, I have a parent page that has a picture of each person with a brief summary. My client would like to have a link by each person that will open a light box with a full summary and larger picture of that particular person. In that same light box, they would like links to to other staff members (that are listed on the parent page) that will allow them to switch to another staff's detailed summary without closing the light box.
I'm not sure the best way to implement this. I could create my own doc type that contains an individual staff member's profile and image and place these as sub pages and use a repeater to display a summary of each on the parent page. Would it then be possible to use one light box/modal window with a page placeholder that, depending on which staff member's link is clicked, would be set to show that specific staff member's sub page/doc type in the placeholder? Then the links to other staff within the light box would change which sub page is displayed in the placeholder?
Is it possible to conditionally show different sub items in a placeholder and what would it take to do this?
Thanks for the help.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 8/8/2012 3:31:13 AM
   
RE:Conditionally display different sub items in a place holder
Hello,


we solve the issue via e-mails.

For other visitors:

There is Repeater with effect and integrate a 3rd party lightbox which will allow displaying what you need.

The structure of documents can be:

-parent
--profile1
--profile2
--profile3

You will display the profiles documents by the repeater and lightbox can add some additional details from the document type fields (I would recommend a custom document type for profiles).

We have Repeater with lightbox but it is suitable for displaying images with a title. It does not allow to specify some other content which will be displayed by the lightbox. Its Selected item transformation is also not helpful because when you use this lightbox, you are not redirected to a child document when it could use the Selected item transformation. Thus this transformation is never used in fact.


Best regards,
Helena Grulichova