Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Creating Custom Footer LinksCreating Custom Footer Links
Previous
 
Next
New Post
2/25/2010 7:48 AM
 

Hi All

Have you ever wanted to have custom footer links that were editable by the user, sat next to other skin objects such as COPYRIGHT or PRIVACY and not hard coded into the skin itself?  The most obvious idea is to use a contentpane to achieve the result but of course as contentpanes are usually wrapped by block elements like divs everything seems to go out of alignment with the other skin objects which are rendered as SPANS.

After bumping my head against the wall trying to get a contentpane into the footer next to other skin objects the following was the end result which may help other Skinners achieve something similar.

Below is a typical footer with skinobjects and the part is bold is a content pane called SiteLinks.

<div id="Footer">
        <dnn:COPYRIGHT runat="server" ID="dnnCOPYRIGHT" />
        &nbsp;&nbsp;|&nbsp;&nbsp;
        <dnn:TERMS runat="server" ID="dnnTERMS" Text="Disclaimer"  />
        &nbsp;&nbsp;|&nbsp;&nbsp;
        <dnn:PRIVACY runat="server" ID="dnnPRIVACY" Text="Privacy Policy"  />
        &nbsp;&nbsp;|&nbsp;&nbsp;
        <div class="CustomFooterLink" runat="server" id="SiteLinks"></div>
        &nbsp;&nbsp;|&nbsp;&nbsp;
        <dnn:LOGIN runat="server" ID="dnnLOGIN1" Text="Staff Login" LogoffText="Staff Logout" />
<div>

Now in your content pane edit the content add text and links etc, then go into source and remove the stupid paragraph tags the FCK editor always puts in for you, save the content while in source mode.

Now this looks awful so time for the css to fix the issue

.CustomFooterLink
{
    display: -moz-inline-stack;
    display: inline-block;
    zoom: 1;
    *display:inline;
    vertical-align:middle;
}

While this is not the nicest look while in edit mode it seems to work and achieve editable footer links which you can then apply to all pages with the click of a checkbox.

Hope this helps someone
Marcus

 

 

 
New Post
2/25/2010 8:11 AM
 

AFAIK you can use this too:

<span runat="server"></span>

seems easier ;-)

 
New Post
2/25/2010 8:51 PM
 

Hey Timo

I tried this also but still required the styles because of the module content objects that get created in divs i.e.

Skin
<div id="Footer" class="FooterLinks">
        <dnn:COPYRIGHT runat="server" ID="dnnCOPYRIGHT" CssClass="FooterLinks" />
        &nbsp;&nbsp;|&nbsp;&nbsp;
        <span class="FooterLinks" runat="server" id="SiteLink">
        </span>
        &nbsp;&nbsp;|&nbsp;&nbsp;
        <dnn:LOGIN runat="server" ID="dnnLOGIN1" Text="Staff Login" LogoffText="Staff Logout"
            CssClass="FooterLinks" />
    </div>

Container
<span runat="server" id="ContentPane"></span>
<dnn:ACTIONBUTTON runat="server" ID="dnnACTIONBUTTON1" CommandName="AddContent.Action"
    DisplayIcon="True" DisplayLink="True" />
<dnn:ACTIONBUTTON runat="server" ID="dnnACTIONBUTTON4" CommandName="ModuleSettings.Action"
    DisplayIcon="True" DisplayLink="False" />

Rendered html

<span id="dnn_SiteLink" class="FooterLinks"><a name="388"></a><span id="dnn_ctr388_ContentPane">
    <!-- Start_Module_388 -->
    <div id="dnn_ctr388_ModuleContent" class="DNN_HTMLContent">
        <div id="dnn_ctr388_HtmlModule_lblContent" class="Normal">
            test
        </div>
    </div>
    <!-- End_Module_388 -->
</span><span><span>
    <input type="image" name="dnn$ctr388$dnnACTIONBUTTON1$ctl00$ctl01" title="Edit Content"
        src="/images/edit.gif" alt="Edit Content" style="border-width: 0px;" />&nbsp;<a title="Edit Content"
            class="CommandButton" href=" __doPostBack('dnn$ctr388$dnnACTIONBUTTON1$ctl00$ctl02','')">Edit
            Content</a></span>&nbsp;&nbsp;</span> <span><span>
                <input type="image" name="dnn$ctr388$dnnACTIONBUTTON4$ctl00$ctl01" title="Settings"
                    src="/images/action_settings.gif" alt="Settings" style="border-width: 0px;" /></span>&nbsp;&nbsp;</span>
</span>

As you can see where the divs are autogenerated for the contentpane is where the issue mainly lies :

<!-- Start_Module_388 -->
    <div id="dnn_ctr388_ModuleContent" class="DNN_HTMLContent">
        <div id="dnn_ctr388_HtmlModule_lblContent" class="Normal">
            test
        </div>
    </div>
    <!-- End_Module_388 -->

Are you aware of any techniques that may fix this?

Cheers Marcus

 
New Post
3/19/2010 8:46 AM
 

Any idea how to add a footer if the skin has a footer already? Our Privacy statement is in the skin footer. . . I need to know how to add a link that can be changed by the user. Do I have to change the skin footer?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Creating Custom Footer LinksCreating Custom Footer Links


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out