Per site, list driven footer and other content areas on a SharePoint 2010 master page?

So I worked with a vendor to provide a js, a powershell script and <div> content holders in a master page that would pull the content dynamically based on the site or subsite, and more specifically from a custom list in that site. To explain, if I
have a root site collection but want to be able to have the end user control the site content, such as a custom top navigation (above the global) and custom footer, and custom place holder content that would appear under the navigation; I would like to have
that content pulled from a list.
My goal is to not have a "custom master page" for the many many sites we have in our environment. I am using twitter bootstrap as the foundation for the master pages, then a set number of page layouts pending whether they want left nav to show
or not. I also typically just use the v4.master for the system pages, but am not sure if that is a best practice either being that the list display forms for a publishing site are ugly so need customized per list.
Has any one done anything like this and if so could you point me in the right direction? Any guidance would be greatly appreciated. Right now am working within SP2010 but will be testing for SP2013 in the near future. 

Hi,
Based on my understanding, you might want to display dynamic content in the pages which reference a specific master page, the content stores in a custom list, users
can update the master page by updating the corresponding list items.
Then there would be two main steps in a solution like this:
1. Data retrieving of a list: JavaScript Client Object Model can help to query the needed items from a list;
JavaScript Client Object Model
http://msdn.microsoft.com/en-us/library/office/hh185006(v=office.14).aspx
More information about JavaScript Client Object Model:
How to: Create, Update, and Delete List Items Using JavaScript
http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx 
2. Modify the master page: With the data retrieved, we can then change the HTML source code of a page using JavaScript.
About how to
modify the HTML using JavaScript:
http://www.w3schools.com/js/js_htmldom_html.asp
http://njarb.com/2011/06/update-html-content-using-javascript/
We can apply the custom JavaScript to the master page, then when users open a page which references this master page, the JavaScript will run, get data from the custom
list, change the HTML source of the current page and display the content you want.
Best regards,
Patrick
Patrick Liang
TechNet Community Support

Similar Messages

  • Gaps between header/footer and main content

    I am building upon a website that somebody else previously worked on.  When adding to the main content, gaps appear between the header/footer and the content.  How can I fix this?
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>stitch by stitch needlepoint</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="sbs_style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .style1 {font-size: 18px}
    .style2 {font-size: 14px; font-style: normal; line-height: 20px; color: #aa0f2e; text-decoration: none; font-family: Georgia, "Times New Roman", Times, serif;}
    -->
    </style>
    </head>
    <body bgcolor="#d0e8fb" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><!-- ImageReady Slices (cut_events.psd) -->
    <table width="732" border="0" cellspacing="0" cellpadding="0" align="center">
    <tbody>
    <tr>
    <td><a href="index.html"><img src="images/logo.gif" alt="stitch by stitch" width="316" height="66" border="0" class="logo" /></a></td></tr></tbody></table>
    <table width="732" height="629" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
    <tbody>
    <tr>
    <td colspan="17"><img src="images/bordertop.gif" width="732" height="31" alt="" /></td></tr>
    <tr>
    <td rowspan="5"><img src="images/events_borderleft.gif" width="36" height="564" alt="" /></td>
    <td><img src="images/nav_spacerleft.gif" width="31" height="19" alt="" /></td>
    <td><a href="index.html"><img src="images/nav_home.gif" alt="" name="home" width="47" height="19" border="0" id="home" /></a></td>
    <td><img src="images/nav_dot1.gif" width="7" height="19" alt="" /></td>
    <td><a href="events.html"><img src="images/nav_upcomingevents.gif" alt="" width="114" height="19" border="0" id="events" /></a></td>
    <td><img src="images/nav_dot2.gif" width="11" height="19" alt="" /></td>
    <td><a href="classes.html"><img src="images/Nav_classes.gif" alt="" width="57" height="19" border="0" id="classes" /></a></td>
    <td><img src="images/nav_dot3.gif" width="12" height="19" alt="" /></td>
    <td><a href="directions.html"><img src="images/nav_directions.gif" alt="" width="68" height="19" border="0" id="directions" /></a></td>
    <td><img src="images/nav_dot4.gif" width="13" height="19" alt="" /></td>
    <td><a href="photogallery.html"><img src="images/nav_photogallery.gif" alt="" width="89" height="19" border="0" id="photogallery" /></a></td>
    <td><img src="images/nav_dot5.gif" width="12" height="19" alt="" /></td>
    <td><a href="customdesign.html"><img src="images/nav_customdesigns.gif" alt="" width="97" height="19" border="0" id="customdesigns" /></a></td>
    <td><img src="images/nav_dot6.gif" width="13" height="19" alt="" /></td>
    <td><a href="vendors.html"><img src="images/nav_vendors.gif" alt="" width="67" height="19" border="0" id="vendors" /></a></td>
    <td><img src="images/nav_spacerright.gif" width="24" height="19" alt="" /></td>
    <td rowspan="5"><img src="images/events_borderright.gif" width="34" height="561" alt="" /></td></tr>
    <tr>
    <td colspan="15"><img src="images/string.jpg" width="662" height="88" alt="" /></td></tr>
    <tr>
    <td colspan="15"><img src="images/events_hd_upcomingevents.gif" width="662" height="44" alt="" /></td></tr>
    <tr>
    <td colspan="15" width="662" height="13" bgcolor="#EBECEC"> </td></tr>
    <tr>
    <td width="662" height="397" colspan="15" bgcolor="#EBECEC" valign="top">
    <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
    <tbody>
    <tr>
    <td width="140"><br /></td>
    <td align="center"></td></tr></tbody></table>
    <p align="left" class="events_boldRed"><span class="style1">Charlie Harper Trunk Show</span></p>
    <p align="left"><span class="style2">February 2012</span><span class="events_boldRed"><br />
        </span></p>
    <p align="left"> </p>
    <p align="left"><span class="events_boldRed"><span class="style1">Back to Basics II with Tony Mineri</span></span></p>
    <p align="left"><span class="style2">March 12, May 14, June 18 &amp; July 19</span></p>
    <p align="left"><span class="style2">9:30-4:00 (lunch will be provided</span></p>
    <p align="left"><span class="style2">Space is limited - $350.00</span></p>
    <p align="left"> </p>
    <p align="left"><span class="events_boldRed style1">Tony Mineri Embellishments</span></p>
    <p align="left" class="style2">2012 </p>
    <p align="left" class="style2">June 3rd &amp; 4th - Full (waiting list only)</p>
    <p align="left" class="style2">November 4th &amp; 5th (limited space available)</p>
    <p align="left" class="style2">2013</p>
    <p align="left" class="style2">June 9th &amp; 10th </p>
    <p align="left" class="style2">October 6th &amp; 7th</p>
    <p align="left"><span class="events_boldRed"><br />
    </span></p></td>
    </tr>
    <tr>
    <td colspan="17"><img src="images/borderbottom.gif" width="732" height="37" alt="" /></td></tr></tbody></table>
    <table width="732" border="0" align="center" cellpadding="0" cellspacing="0">
    <tbody>
    <tr>
    <td>
    <p align="center"><span class="bottomnav"><a href="index.html">home</a> </span><span class="body_bottomlink">|</span><span class="bottomnav"> <a href="events.html">upcoming events</a> </span><span class="body_bottomlink">|</span><span class="bottomnav"> <a href="classes.html">classes</a> </span><span class="body_bottomlink">|</span><span class="bottomnav"> <a href="directions.html">directions</a> </span><span class="body_bottomlink">|</span><span class="bottomnav"> <a href="photogallery.html">photo gallery</a> </span><span class="body_bottomlink">|</span><span class="bottomnav"> <a href="customdesign.html">custom designs</a> </span><span class="body_bottomlink">|</span><span class="bottomnav"> <a href="vendors.html">vendors </a></span></p></td></tr></tbody></table>
    <p> </p>
    <p> </p>
    <p><!-- End ImageReady Slices --></p>
    <p>  </p>
    </body>
    </html>

    This is just a guess, which is what we have to do until we can see the live page, but try changing this -
    <p align="left" class="events_boldRed"><span class="style1">Charlie Harper Trunk Show</span></p>
    to this -
    <p align="left" class="events_boldRed" style="margin-top:0;"><span class="style1">Charlie Harper Trunk Show</span></p>
    Does that solve the gap between the header and the main content?
    While you're worrying about these gaps, read this -
    http://www.apptools.com/rants/spans.php
    I see trouble ahead....

  • In windows 7, buttons and other objects are not visable for most web sites. what shoud I do to fix this?

    see question above...

    If images are missing then check that you do not block images from some domains.
    *Press the F10 key or tap the Alt key to bring up the hidden Menu bar.
    Check the permissions for the domain in the currently selected tab in "Tools > Page Info > Permissions"
    Check "Tools > Page Info > Media" for blocked images
    *Select the first image link and use the cursor Down key to scroll through the list.
    *If an image in the list is grayed and "<i>Block Images from...</i>" has a checkmark then remove this checkmark to unblock images from this domain.
    Make sure that you do not block (third-party) images, the <b>permissions.default.image</b> pref on the <b>about:config</b> page should be 1.
    Make sure that you haven't enabled a High Contrast theme in the Windows/Mac Accessibility settings.
    Make sure that you allow pages to choose their own colors.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    Note that these settings affect background images.
    See also:
    *http://kb.mozillazine.org/Website_colors_are_wrong
    There are extensions like Adblock Plus (Firefox/Tools > Add-ons > Extensions) and security software (firewall, anti-virus) that can block images and other content.
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *http://kb.mozillazine.org/Websites_look_wrong

  • I am unable to open certain pages on sites. I have to switch over to IE because the new Firefox update is not accomodated on their websites! When will this be fixed... sites included Ameritrade, FAFSA, and others...

    Question
    I am unable to open certain pages on sites. I have to switch over to IE because the new Firefox update is not accomodated on their websites! When will this be fixed... sites included Ameritrade, FAFSA, and others...

    First and foremost, you should update to 3.6.17 because the version you're running at the moment is insecure and exposes your system to attack. Update via '''Help '''| '''Check For Updates'''.
    That may even fix the problem since several minor bugs were also fixed in later versions.
    Similarly, after updating, go to the [http://www.mozilla.com/en-US/plugincheck/ Plugins Check] page and update those which are necessary.
    If the problem persists, try running Firefox in [[Safe Mode]]. If it functions properly in that configuration, then one of your add-ons is the culprit.
    I didn't experience a problem myself accessing any of those sites you mentioned. See screenshot.

  • Since a recent trip to Mexico, Safari and other browsers are now being taken over or manipulated by other web sites. I installed adblock and the situation is getting worse. What to do?

    Since a recent trip to Mexico, Safari and other browsers are now being taken over or manipulated by other web sites. I installed adblock and the situation is getting worse. What to do?

    Click here and follow the instructions, or if there’s a type of adware not covered by them on the computer, these ones. If you're willing to use a tool to remove it(you don't need to, but may find it easier), you can instead run Adware Medic; this link is a direct download.
    (122386)

  • Does my desktop come with wireless capability with no need for a separate router needed to be purchased, when airport is opened up belkin wireless is checked and other locations are listed but locked? Does my xfinity unit have one or just a modem? TIA

    Does my desktop come with wireless capability with no need for a separate router needed to be purchased, when airport is opened up belkin wireless is checked and other locations are listed but locked? Does my xfinity unit have one or just a modem? TIA

    Your iMac does have wireless capability. It does need, however, some wireless network in order to connect to the Internet. It sounds like there are several networks in your area, including one Belkin router that is not encrypted and several other networks that are. I presume that you would know if the Belkin one is yours, and you would have mentioned it. Do not use someone else's network without their permission. In some jurisdictions it is illegal, in others it is merely foolish.
    It is impossible to know what Xfinity has given you. Possibly it is only a cable modem, or perhaps it has a router built in. Call them and ask them. If it has a router built in, get them to help you set it up. Note that some tech support people for Internet service providers will resist working with Macs. Be persistent, it is not that different.
    If they did not provide a router, you will need to get one. Apple makes the AirPort Extreme base station, the AirPort Express base station and the Time Capsule. Other companies have their own. Be sure you get one that is up to date and has 802.11n capabilities (for the highest speed) and go on from there.
    Best of luck.

  • All our Video and Audio content are missing.

    I upload all our content onto our Itunes site.  This morning all our Video and Audio content are missing. i uploaded one to see if they would come back, but nothing. Can someone help us?  http://itunes.apple.com/itunes-u/chapel-south-hamilton-current/id392706401   and http://itunes.apple.com/itunes-u/chapel-south-hamilton-audio/

    You will also find links to many
    free tutorials in the PremiereProPedia that will quickly show you how things are done in Premiere Pro.
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • Just updated to iOS8 and most of my music disappeared.  Attempted to sync with iTunes to get it back but iTunes now says I am 26GB over capacity and "Other" files are taking up just over 29GB!  What is going on and how do I fix this?

    iPhone 5 (64GB)
    iTunes 11.4.0.18 (64-bit Win7)
    Just updated my iPhone 5 to iOS8 and most of my music disappeared.  Attempted to sync with iTunes to get it back but iTunes now says I am 26GB over capacity and "Other" files are taking up just over 29GB!  What is going on and how do I fix this?

    I had restored my iPhone 5 to factory settings and that cleared the problematic "Other" problem.  Flash forward a couple weeks and the problem has once again resurfaced.
    I tried updating iTunes and iOS to the newest versions and the problem still persists.
    I'm officially ready to switch to Windows Phone or Android now...
    *edit*
    A Google search with results restricted to the last month shows that this problem seems to be becoming more and more common.
    https://www.google.com/webhp?sourceid=chrome-instant&rlz=1C1CHFX_enUS506US506&io n=1&espv=2&ie=UTF-8#q=itunes+other+space+iphone+site:discussions.apple.com&tbs=q dr:m

  • Beta versions and other browsers are currently not supported by an application I use everyday, what do I need to do?

    When logging in to an application I get this message:
    You are attempting to access ezLaborManager with the following unsupported browser:
    Firefox Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
    ezLaborManager is only supported on current production versions of Internet Explorer and Firefox. "Beta" versions and other browsers are currently not supported.
    It is strongly recommended that you use a supported browser to avoid encountering access and display issues.
    WHAT VERSION OF FIREFOX SHOULD I USE?

    Well, you can waste a lot of time and money trying to get your old iron up to speed but the sad fact is, even though it may work with Color, it will most likely end in a less than satisfactory experience all around. You need to determine if your G5 has PCI, PCI-x or PCIe slots and then purchase the appropriate cards.
    However, Final Cut Studio 2 is optimized for the Intel processors. You will see users here and there using the newest models G5 with great success but quite honestly, you need a Mac Pro.
    Or just purchase the Aja IO/HD which is a firewire 800 interface and the only firewire device that will preview externally Color.

  • Hello. It can be a iPhone4 accessories for the one with pictures and other things are transferred wirelessly to a TV? Thank you

    Hello. It can be a iPhone4 accessories for the one with pictures and other things are transferred wirelessly to a TV? Thank you 

    You need an Apple TV to be able to wirelessly send pictures etc. from iPhone.
    However you can buy an adapter if you want to connect to a TV
    http://store.apple.com/us/product/MC953

  • It is a suggestion on Adobe Dreamweaver:  Could you change the setting of the page or template; to a free platform?  example; move: images, tables and other elements all over the place covering the page. in order to facilitate the user in the design envir

    It is a suggestion on Adobe Dreamweaver:
    Could you change the setting of the page or template; to a free platform?
    example; move: images, tables and other elements all over the place covering the page. in order to facilitate the user in the design environment.
    free
    Thank you for your attention

    Adobe has been trying this and the product is called Muse ( Web design software | Download free Adobe Muse CC trial ).  It doesn't give you the control over the code that most developers prefer but it could help bridge the gap for design if that is what you are looking for.

  • My creative cloud started doing an update on Photoshop, then it just said cancelling, now it is hanging there and just saying cancelling and other products are waiting to update and just saying waiting. I have tried to restart several times, shut down etc

    My creative cloud started doing an update on Photoshop, then it just said cancelling, now it is hanging there and just saying cancelling and other products are waiting to update and just saying waiting. I have tried to restart several times, shut down etc, just the same.

    Run the cleaner tool and start from scratch...
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Mylenium

  • I upgraded my 3rd gen iTouch to iOS 5.1.1 and now its speed to repond is slower and the battery goes flat quicker than before the upgrade. Skype, Sky iCloud and other apps are turned off (I think). Has anybody else suffered with this? Any ideas?

    I upgraded my 3rd gen iTouch to iOS 5.1.1 and now its speed to repond is slower and the battery goes flat quicker than before the upgrade. Skype, Sky iCloud and other apps are turned off (I think). Has anybody else suffered with this? Any ideas?

    Purplehiddledog wrote:
    I do backup with iCloud.  I can't wait until the new iMac is available so that I can once again have my files in more than 1 location without needing to rely solely on the cloud. 
    I also rely on iTunes and my MacBook and Time Machine as well as backing up to iCloud. I know many users know have gone totally PC free, but I chose to use iCloud merely as my third backup.
    I assume that the restore would result in my ability to open Pages and Numbers and fix the problem with deleting apps, but this would also mean that if my Numbers documents still exist solely within the app and are just not on iCloud for some reason that they would be gone forever.  Is that right?
    In a word, yes. In a little more detail.... When you restore from an iCloud backup, you must erase the device and start all over again. There is no other way to access the backup in iCloud without erasing the device. Consequently, you are starting all over again. Therefore, it would also be my assumption that Pages and Numbers will work again and that the deleting apps issues would be fixed as well.
    If the documents are not in the backup, and you do not have a backup elsewhere, the documents could be gone forever.

  • Expose one site collection to Internet and other site collections in intranet

    hi,
    as per my requirement i need to build the following  applns:
     1) custom document  mgmnt system with lot of publishing/ collaboration features- discussion forums, site mailbox,check in / check -out , archiving the old documents, generate custom view
     2) Km portal - a Knowledge management system with communities, upload document feature , share the contents,blog,wikis
     3) MySite - Newsfeed, individual site collections, microblogging enabled
     4) an Internet based web appln which has  geographically spanned users
    but the issue is  customer is NOT ready to allow us to give space for multiple web applns, they are going to give ONLY ONE web application. because in their existng farm already some . because
    so even if i can combine the (1), (2),(3) in one web application, i doubt the (4)th one is not possible.
    also the number of docs which would be uploaded/retrieved by end users is 3 to 4 million documents!! so  definitely it will cross the
    200 GB mark for the  content Db  limit.
    Would like to know whether  this is  possible
    (1)  create a single web appln and make 4 site collections and expose the (4)th one - Internet based ?
    or
    is this a wrong approach that I will be heading into.

    I think you might look at the host named site collection 
    http://blogs.msdn.com/b/russmax/archive/2013/10/31/guide-to-sharepoint-2013-host-name-site-collections.aspx
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

  • List with Databeses and their contents

    Hello, can someone tell me where I can find a list of all databases and their contents? For example, a business partner (table) which contains CardCode, CardName, aso.?
    I would like to make a matrix of product selection and can not find the database for articles.
    Thank you
    Shingles

    Hi Shingles........
    Login to SAP Business one> Tools in Menu Bar> Query>Query Generator> Press Tab on Yellow small Field on LHS
    this will popup all the tables in SAP Database along with its name.
    Select any one or OCRD Table. The moment you select all the Fields gets Displayed in Query Generator Window.......
    Hope this will help you.....
    Regards,
    Rahul

Maybe you are looking for