How do I shared content across templates in Sitefinity 5?
I have multiple templates on a site. They all share the same footer which has content that needs to be editable by the content editor of the site. I cannot put the content in a master page because the site editor needs to be able to edit it through the WYSIWYG, but I don't want the editor to have to update it in multiple places when it needs to be updated. I tried creating a shared content block, but apparently those are not accessible from templates unless I'm missing something. Is there a setting to turn on shared content blocks for templates? Thank you for your help.
Nancy,
Unfortunately I believe shared content blocks are not yet usable in templates. I know that the team is aware and looking ino this issue, I'll try to find out more and update this thread.
however, you may be able to fix this with a Sitefintiy base template. If you create a template in Sitefinity (under the design menu) and place a content block in this template, you can then create additional templates that use this as a base.
This way the base template will have a WYSIWYG editor, and any changes will automatically propagate to all templates that use it as a base.
hope this is helpful, thank you for your feedback!
I really wish they were available, but this will be an okay solution for this project. I can't use the same starter for my home and sub pages since they are too different, so I will still need 2 starter templates, but at least they will only have to update the footer content in 2 locations instead of multiple.
We created a widget that you can add to a template that can be used until the functionality is out-of-the-box. You can download the widget from here. Just add it to your project, re-compile, and then add it to your page controls.
Two more things. First, I get a 404 when I click the link to download the widget. Second, once I get it downloaded, what do I need to do to "add it to the project"? Is it just a matter of putting the file(s) in a certain folder or do I need to edit a config file as well? I do have Visual Studio and I know where the build button is but that is about as far as my knowledge goes. I am learning as I go on this project. Feel free to point me to documentation for this. I am new to Sitefinity and .net so I don't know all of this. Thanks again for your help.
I apologize for the link. Most of the time, chrome copies the protocol also. (link updated)
Richard, thank you for sharing this solution and for your help with this thread!
I just wanted to add a quick shout-out for Sitefinity Thunder: http://www.sitefinity.com/sitefinity-thunder
Nancy, if you're new to Sitefinity, the Thunder visual studio extension helps minimize the guesswork. It has a feature to quickly register widgets in your solution into the toolbox and lots of other time savers and helpers.
For a more thorough walkthrough be sure to check out the recording of the recent webinar on thunder: http://www.sitefinity.com/blogs/joshmorales/posts/12-04-19/sitefinity_thunder_webinar_notes.aspx
Thank you so much. this is exactly what we needed. I really appreciate your help and you quick response time. I will take a look at Sitefinity Thunder as well.