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

Forums / Developing with Sitefinity / Editing content of an invisible container

Editing content of an invisible container

4 posts, 0 answered
  1. Bart Welch
    Bart Welch avatar
    64 posts
    Registered:
    10 Jul 2009
    21 Apr 2010
    Link to this post
    We are using a radcontrol for our navigation where a div container is displayed when you hover over the navigation bar.  This div container is therefore not visible to edit within sitefinity.  Is there a way to edit this content so it does not have to be maintained on the master page but may be maintained as a piece of shared content instead?  In CSS the Div container is currently set to display:none.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    21 Apr 2010
    Link to this post
    Hi Bart Welch,

    Controls added to the master page cannot be edited from a page. You could expose a property of your control that will allow you edit the rendering and drop the control on the master page by using Sitefinity's UI. If the control is declarativelly/programmatically added to the master page you cannot edit it through Sitefinity.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Bart Welch
    Bart Welch avatar
    64 posts
    Registered:
    10 Jul 2009
    21 Apr 2010
    Link to this post
    Here is a sample of the code for the container that I would like to have set as a shared piece of content.  This is a portion of the current code on the masterpage.

    <asp:Panel ID="pnlDropUp" runat="server">

    <div class="bannerDiv" id="bannerDiv">

    <asp:ContentPlaceHolder ID="BannerHolder" runat="server" />

    </div>

    <div id="dropUp">

    <div class="Products" id="divQuoteNow">

    <div id="quotetext"> Click on a plan below to get your free quote</div>

    <div class="column smallMargin">

    <h4>

    Long-Term Medical Insurance

    </h4>

    <ul>

    <li><a href="<%=ResolveUrl("~/InternalRedirect.ashx?url=/yourshare_popup.cfm?frames=0%26app_method=6%26p=gmi&hideproducer=1")%>"

    target="_blank" title="Global Medical Insurance - International Health Insurance Quote"

    onclick="trackLink('','/Quote_GMI/QuoteNow');">Global Medical Insurance</a></li>

    </ul>

    <h4>

    Employer Group Insurance

    </h4>

    <ul>

    <li><a href="<%=ResolveUrl("~/rfps/geo_group/index.cfm?start=1")%>" target="_blank"

    title="Global Employers Option - Employer Sponsored Group Insurance Request For Proposal"

    onclick="trackLink('','/Quote_GEO/QuoteNow');">GEO Group</a></li>

    <li><a href="<%=ResolveUrl("~/InternalRedirect.ashx?url=/yourshare_popup.cfm?frames=0%26app_method=6%26p=pate&hideproducer=1")%>"

    target="_blank" title="Patriot Executive Travel Medical Insurance Quote" onclick="trackLink('','/Quote_PATE/QuoteNow');">

    Patriot Executive Medical Insurance

    </a></li>

    <li><a href="<%=ResolveUrl("~/pdf.cfm?f=50")%>" onclick="popupLink('/pdf.cfm?f=50', '/PDF_PATEGrp_RFP/QuoteNow')"

    title="Patriot Executive Group Travel Medical Insurance Quote">Patriot Executive

    Group Medical Insurance

    </a></li>

    </ul>

    </div>


    Replaced with the following...

     

    <asp:Panel ID="pnlDropUp" runat="server">

       <div class="bannerDiv" id="bannerDiv">

          <asp:ContentPlaceHolder ID="BannerHolder" runat="server" />

       </div>

       <div id="dropUp">

            <asp:ContentPlaceHolder ID="DropUpNav" runat="server" />

       </div>


    The contentPlaceHolder DropUpNav would then contain all of the navigation links necessary for each group.
    The ID dropUp is set to display:none in CSS.  Is there a way to edit content in this contentholder?

     

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    22 Apr 2010
    Link to this post
    Hello Bart Welch,

    You could implement a control with two public properties which will set the content of the ContentPlaceHolders. You could make the divs server controls in case you need to find them and change some values.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
4 posts, 0 answered