Change Template for diffrent url's

Stefan Sturm asked on October 7, 2015 14:16

Hello,

i want to change the page template depending on some request parameters. Currently i'm working with a ASPX + Portal Page.

Have you a hint or any suggestions for me please.

regards st

Correct Answer

Ilesh Mistry answered on October 7, 2015 15:00

Hello

I would also try and see how many differences we are talking about in terms of the templates, as it might be ok if such items are small and minor differences to use Macros to hide / show the relevant web parts according to the query string value.

It's an option, but wouldn't be recommended for large amounts of differences as performance would have a bigger impact on this.

Another option is to use Multi Views in .Net and by default hide all until you know what to show for the parameters.

It all depends on the quantity of differences really.

Thanks

Ilesh

2 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on October 7, 2015 14:47

If you're using aspx, you can do this in code in the OnLoad event. If you're attempting this in straight Portal, it's quite a bit more difficult, I'd say next to impossible without writing a lot of custom code. I'd say you'd be better off to send the person to a different page with that template already selected on a page.

1 votesVote for this answer Mark as a Correct answer

Stefan Sturm answered on October 7, 2015 14:58 (last edited on October 7, 2015 14:58)

Ok so how would it look like to do this using aspx? After reading this post im not sure which way to choose.

0 votesVote for this answer Mark as a Correct answer

Stefan Sturm answered on October 7, 2015 16:58

Thanks for your help!

Ilesh Mistry: MultiView is the best solution for me!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.