+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / content managed tabbed content

content managed tabbed content

16 posts, 0 answered
  1. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    18 Jun 2009
    Link to this post
    Hi,

    I was wondering if it is possible to create a content managed tabs?
    Say to hold news in one tab and events in another..
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    19 Jun 2009
    Link to this post
    Hi Sam,

    I believe you are talking about a backend in which you can manage the different modules content, and every module should be in a separate tab.
    Well, we are already using different tabs in the Administration. The modules buttons from the main menu are actually different RadTabs, they all belong to a RadTab control. Perhaps you can create a new theme for this RadTab, which is clearly showing that this is tabbed navigation. The harder thing would be to create an entirely new theme (using multiviews for example) for the backend, using the API.

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    20 Jun 2009
    Link to this post
    I think you misunserstood.

    I am wanting to add some tabs to a page, not for site navigation, but just to hold different information. And I am wanting each tab's content to be content managed. For instance I want to put the events view in one tab and the news view in another so not to take up page realestate..
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    21 Jun 2009
    Link to this post
    Hello sam,

    You can create RadTabStrip control with two (or more) tabs. Then declare RadMultiPage with two(or more) RadPageView controls. For each of the PageViews add ContentPlaceHolderControls - this areas will be editable, so that you can add every control on them. Note that this will work only in Page edit mode.

    If your approach is different write back to us. Additional description will be helpful.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    21 Jun 2009
    Link to this post
    Hi Ivan,

    Sounds like a plan, can you please give me a simple example?
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    21 Jun 2009
    Link to this post
    Hello sam,

    Below is a sample code that you can add to your masterpage. There are two ContentPlaceHolders - in RadPageView that will be accessible in Page Edit mode, so that you will be able to add/remove/edit  user and custom controls to them.

    <telerik:RadTabStrip ID="RadTabStrip1"  runat="server" MultiPageID="RadMultiPage1"
       <Tabs> 
           <telerik:RadTab runat="server" Text="Tab1"
           </telerik:RadTab> 
           <telerik:RadTab runat="server" Text="Tab2"
           </telerik:RadTab> 
      </Tabs> 
     </telerik:RadTabStrip> 
     <telerik:RadMultiPage id="RadMultiPage1" runat="server" SelectedIndex="0" Width="400"
      <telerik:RadPageView id="Pageview1" runat="server"
      <asp:ContentPlaceHolder runat="server" ID="ph1"></asp:ContentPlaceHolder> 
      </telerik:RadPageView> 
      <telerik:RadPageView id="Pageview2" runat="server"
     <asp:ContentPlaceHolder runat="server" ID="ph2"></asp:ContentPlaceHolder> 
      </telerik:RadPageView>  
    </telerik:RadMultiPage> 


    You can gather more information about the RadTabStrip control and its functionallity fron RadTabStrip developers manual.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    22 Jun 2009
    Link to this post
    thanks, but only one tab is visible in edit mode.. How can I have all visible in edit mode?
  8. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    22 Jun 2009
    Link to this post
    It seems go can only have one pageview in the RadMultiPage control displaying at a time. For a work around I could expose a property that changed the selected page so I could content manage each tab, but I don't think this is very user friendly for cms editors.

    Can you think of a better way??
  9. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    22 Jun 2009
    Link to this post
    Hello Sam,

    You are right - it will not be very user friendly. Unfortunately this is a design limitation which could not passed easily. The only way I could think of is to have these tabs "managed" from somewhere else in the administration.

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  10. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    22 Jun 2009
    Link to this post
    man, that kind of sucks... I'll have to think about this a bit more..
  11. Nigel
    Nigel avatar
    49 posts
    Registered:
    07 Jul 2008
    23 Jun 2009
    Link to this post
    Just thought I would through in how I got around this, incase you are still working on this, or another user is working on this and stumbles across this thread. Nothing ground breaking, but still..

    I created a panel or placeholder for each tab on the page, and setup the client event on the tab strip to set the correct panel to visible.

    In the page load event I checked for the cmsedit query string, and if found set all the panels to visible, else set the first tab as selected, and all but the first panel/placeholder as invisible. You could even have label in each panel/placeholder to help the user with instructions that is only visible when in edit mode (once again using the visible property). Granted, not as nice as simply using a RadMultiPage, but still had a relatively useable outcome.

    Regards
    Nigel
  12. Nigel
    Nigel avatar
    49 posts
    Registered:
    07 Jul 2008
    23 Jun 2009
    Link to this post
    Sorry, really should have ran RadSpellCheck over that before posting :)
  13. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    23 Jun 2009
    Link to this post
    Thanks alot Nigel!

    I was thinking on the same lines. I will give that a go.

  14. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    23 Jun 2009
    Link to this post
    Hello Nigel,

    Thank you for sharing your thoughts with us. Greatly appreciated!

    All the best,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  15. MURAT ERAYDIN
    MURAT ERAYDIN avatar
    16 posts
    Registered:
    29 Dec 2009
    19 Dec 2011
    Link to this post
    Hi Nigel,
    Do you have a complete sample for what you've "invested" :)
  16. Nigel
    Nigel avatar
    49 posts
    Registered:
    07 Jul 2008
    19 Dec 2011
    Link to this post
    Hi Murat,

    I will dig through some of my old libraries and see what I can find.. It has been a while since I have developed for Sitefinity due to the shift in end user focus with the release of 4.x.

    Further this code will be for 3.x, so just need to make sure that you are not working with 4.x before I go digging.

    Nigel
Register for webinar
16 posts, 0 answered