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" />
|
<dnn:TERMS runat="server" ID="dnnTERMS" Text="Disclaimer" />
|
<dnn:PRIVACY runat="server" ID="dnnPRIVACY" Text="Privacy Policy" />
|
<div class="CustomFooterLink" runat="server" id="SiteLinks"></div>
|
<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