Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Different page template for document detail View modes: 
User avatar
Member
Member
JoeFurniss - 1/13/2014 4:46:07 PM
   
Different page template for document detail
I have created a custom document type for team members and can display them all on a page using a repeater.

What I would like to be able to do is when someone clicks on a team member on that page, to take them to a page with a completely different page template to that which is use to display the list of team members.

Is this possible and if so, please can you point me in the right direction?

Many thanks,
Joe

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 1/14/2014 3:15:37 AM
   
RE:Different page template for document detail
Hi Joe,

Thank you for your message.

Yes, this is possible. How about if you would go to your document -> Properties -> Template and set the template so that it does not inherit from parent?

Other thing that comes to my mind is to to have another page with different template with e.g. a repeater in it. From your players list you redirect user after clicking on a link to this page along with some query string like: playerid. The playerid in reality would represent the DocumentID. And all you would need to do is get the query string and use it in a where condition of your repeater.

I hope this will point you to a right direction.

Kind regards,
Richard Sustek

User avatar
Member
Member
JoeFurniss - 1/14/2014 3:32:29 AM
   
RE:Different page template for document detail
Hi Richard,

Thanks for getting back to me.

I think the setting a different template is the better option for me, but I'm still having problems with it. If I specify another template and set it not to inherit from parent, then the content from the document does not display. Do I need to include a specific control on the new template or am I doing something else wrong?

Thanks,
Joe

User avatar
Member
Member
JoeFurniss - 1/14/2014 3:36:23 AM
   
RE:Different page template for document detail
Hold fire - I think I've got it.

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 1/14/2014 6:13:52 AM
   
RE:Different page template for document detail
Hi,

Thank you for letting me know :)

Im glad it worked out for you. Can you please share where was the problem?

Thank you and kind regards,
Richard Sustek

User avatar
Member
Member
JoeFurniss - 1/14/2014 12:54:03 PM
   
RE:Different page template for document detail
In the most obvious of mistakes, I'd neglected to put a web part zone on the new page template.