Display Widgets from another page

Jürgen Gutsch asked on June 25, 2014 03:40

Hi,

is it possible to create a user control witch shows the content of a specific page.

I need to display the same content on many other pages and I don't want to add and edit the content more than once.

I tried to use content inheritance: I added a special named web part zone on the parent page and tried to use content inheritance to display the content inside an equal web part zone inside a user control on a sub page. But this doesn't work.

Do you have any other ideas?

Many Thanks

Recent Answers


Brenden Kehren answered on June 25, 2014 07:09

What you described should work just fine, the part that most people struggle with is creating templates that work properly with inheritance. Another approach is to store all your content in one node in the content tree and simply place webparts on a page template to get that data and display it on many pages.

An example would be you have a list of events. Each event can be categorized into 1 or many categories. They are located in /Events. Then you have your pages. You can place a webpart on that page template and capture all the events that have the same category as the current document by specifying a WHERE clause in the webpart.

0 votesVote for this answer Mark as a Correct answer

Jürgen Gutsch answered on June 25, 2014 09:34

Hi Brenden,

it doesn't seems to work, if the web part zone is inside a user control used in the template. AND if I activate content inheritance the content will be displayed via the zonePagePlaceholder.

Maybe I miss an configuration? Any other hint?

Thanks, Juergen

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on June 25, 2014 11:25

Have you read the docs on content inheritance and how it all works? Its based on templates, child templates and such.

0 votesVote for this answer Mark as a Correct answer

Jürgen Gutsch answered on June 25, 2014 12:07

Many Thanks, I already know that documentation. Inheritance solves only a small part of my problem.

I have to create a fly-out menu which shows the second level menu and some content inside every fly-out. We have six main menu items with six fly-outs. Each fly-out has a web part zone, a user control, whatever to show the web parts from another page.

Now I need a solution to edit the contents inside the fly-outs. My first try was content inheritance, which doesn't work, maybe because i placed the web part zone inside a user control. I also researched for a macro or a user control to collect and display the contents from another page. But I didn't find a solution. What I'm currently doing is working which special document types placing them in the tree to define the contents instead of web parts, but this solution is very complex for the users and and the developers.

0 votesVote for this answer Mark as a Correct answer

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