Site structure
Version 5.x > Site structure > "Re-use content on several page" View modes: 
User avatar
Member
Member
eric.rovtar-hudsonchapel - 3/9/2010 10:47:35 AM
   
"Re-use content on several page"
Hi:

I saw this information on the features page, but I can't seem to actually find documentation on it. Could someone tell me where and in what file I can find out more about this?

Thanks,
Eric

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/9/2010 11:21:39 AM
   
RE:"Re-use content on several page"
Hello.

To be honest, I am not quite sure what exactly is meant by that sentence, but I suppose it means that you can sharing content accross multiple pages (mainly web parts). It is related to page templates model and visual inheritance, so I would recommend you to read our Developer´s guide (http://devnet.kentico.com/docs/devguide/index.html), chapter Development -> Development with Portal engine to get a better image of how it works and what you can do.

Best Regards,
Radek Macalik

User avatar
Member
Member
eric.rovtar-hudsonchapel - 3/9/2010 12:27:41 PM
   
RE:"Re-use content on several page"
Well I guess what I was thinking it meant was, I could create one data item (like a news item) and then have it attach to multiple pages. Which I suppose I can anyway by setting a News Streams properties to the correct location.

Anyone else have any ideas?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/9/2010 12:46:06 PM
   
RE:"Re-use content on several page"
Hello.

If you mean by "data item" particular page, then yes, you can "use" it on several places using linked documents: http://devnet.kentico.com/docs/devguide/creating_a_linked_document.htm
If you mean a web part, it can be shared across multiple pages using the same template (since web part properties are binded to the template) or using Visual inheritance feature I have mentioned in my previous message.

Best Regards,
Radek Macalik

User avatar
Certified Developer v6
Certified Developer v6
szarouski - 10/21/2011 12:40:54 PM
   
RE:"Re-use content on several page"
Hello,
How about making webparts or webzones shared between different templates (without inheritance)? This will definitely benefit Kentico, because for example Wordpress have ability to create widgets (that is how they called it) and you can specify it in code of different templates. I need similar functional -> one change apply to all templates where I used this webpart. I believe you know what I'm talking about. Thank you.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 11/1/2011 2:33:34 AM
   
RE:"Re-use content on several page"
Hello.

Well, current possibilities are as follow:

1. You can share web part(s) on a different page template using Visual inheritance only. Web part is part of a page template, so without Visual inheritance it can be shared via page template only.

2. Use widgets. They are of two types. Widgets added by editor (part of a page template) and widgets added by end user (part of a document itself). You can find more info on http://devnet.kentico.com/docs/devguide/widgets_overview.htm

As for “one change apply to all templates where I used this webpart” -> this can be achieved when web part is part of a page template, or when it is shared via Visual inheritance.

Best Regards,
Radek Macalik

User avatar
Certified Developer v6
Certified Developer v6
szarouski - 11/8/2011 8:35:17 AM
   
RE:"Re-use content on several page"
Thank you for useful hints.

User avatar
Certified Developer v6
Certified Developer v6
szarouski - 11/8/2011 10:11:40 AM
   
RE:"Re-use content on several page"
Is there anything build it similar to this one - http://www.elijahtaylor.com/Tutorials/May-2009/Re-using-Content-in-Kentico-CMS.aspx

User avatar
Certified Developer v6
Certified Developer v6
szarouski - 11/8/2011 10:11:58 AM
   
RE:"Re-use content on several page"
Is there anything build it similar to this one - http://www.elijahtaylor.com/Tutorials/May-2009/Re-using-Content-in-Kentico-CMS.aspx

User avatar
Kentico Support
Kentico Support
kentico_radekm - 11/9/2011 5:56:08 AM
   
RE:"Re-use content on several page"
Hello.

I can see that video is made for version 4.0. It is some personal blog, so we did not test this particular scenario. However, from what I have seen this approach is general and you can use it in the newer release, too.

But it is not built-in. Built-in options are like I described previously.

Best Regards,
Radek Macalik

User avatar
Certified Developer v6
Certified Developer v6
szarouski - 11/11/2011 8:57:35 AM
   
RE:"Re-use content on several page"
But it is not built-in.

That is what I'm asking for. Easy and fast to configure shared content parts is key feature for CMS. Even episerver have it.

1. You can share web part(s) on a different page template using Visual inheritance only.

This require good and accurate template inheritance from beginning, we got so many issues with clients, who like to change design each week. Some times you need to develop fast, as well. And if you got a request - hey we want to change inner templates - you will have to redo same work once again. So visual inheritance don't work so well.

2. Use widgets. They are of two types. Widgets added by editor (part of a page template) and widgets added by end user (part of a document itself).

From overview it is impossible to understand how to reach my goal - one change apply to all (even different) templates.

As it was mentioned in video you can use repeaters to reach my goal, - shared content across site - but, as it was mentioned, it is something that require extra time to configure. What I'm trying to ask - please give Kentico users-developers more easy way to do same stuff.

User avatar
Member
Member
lancetek - 11/11/2011 9:28:34 AM
   
RE:"Re-use content on several page"
Kentico has a rich API. You could easily create a custom macro or custom web part to share content.

I agree that it'd be very useful if it was *included* as a 'default' web part... but it's a bit tricky to use as you need to mention a few caveats like:

1 - if you want to reuse the text of the 'source' Web Part - you have to understand that any web parts that 'inherit' from it will change if the 'source' is ever changed or deleted.

2 - You could get into recursion issues with Source A using Source B who uses Source A etc....


FYI - It doesn't require much custom code to create one, but you do need to understand the Kentico API a bit. And be comfortable creating custom Macros / Web Parts. With parameters.

Lance

User avatar
Member
Member
lancetek - 11/11/2011 9:30:17 AM
   
RE:"Re-use content on several page"
Kentico has a rich API. You could easily create a custom macro or custom web part to share content.

I agree that it'd be very useful if it was *included* as a 'default' web part... but it's a bit tricky to use as you need to mention a few caveats like:

1 - if you want to reuse the text of the 'source' Web Part - you have to understand that any web parts that 'inherit' from it will change if the 'source' is ever changed or deleted.

2 - You could get into recursion issues with Source A using Source B who uses Source A etc....


FYI - It doesn't require much custom code to create one, but you do need to understand the Kentico API a bit. And be comfortable creating custom Macros / Web Parts. With parameters.

Lance

User avatar
Certified Developer v6
Certified Developer v6
szarouski - 11/11/2011 9:49:28 AM
   
RE:"Re-use content on several page"
FYI - It doesn't require much custom code to create one, but you do need to understand the Kentico API a bit. And be comfortable creating custom Macros / Web Parts. With parameters.

Be sure that I will learn all that, but in meantime what you are saying don't have much sense. All popular CMS have these feature build-in. If Kentico don't have it out-of-box - it make it more (could be a little, could be very) complicated for it's customers. It is lack of important functional.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 11/19/2011 8:58:24 AM
   
RE:"Re-use content on several page"
Hello.

Thank you for your suggestion. I did submit it to our dev. team and we will consider it for some of the future releases.

Best Regards,
Radek Macalik

User avatar
Certified Developer v6
Certified Developer v6
szarouski - 11/19/2011 12:25:27 PM
   
RE:"Re-use content on several page"
Hi Radek, great news, thank you!