Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. How to implement themes based on User in Sharepoint 2010

How to implement themes based on User in Sharepoint 2010

Scheduled Pinned Locked Moved SharePoint
sharepointhelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    balaji1010
    wrote on last edited by
    #1

    User should be able to personalise his own themes and when he login he should be able to see his themes and background images in Sharepoint 2010.please help

    P 1 Reply Last reply
    0
    • B balaji1010

      User should be able to personalise his own themes and when he login he should be able to see his themes and background images in Sharepoint 2010.please help

      P Offline
      P Offline
      PiyushBha
      wrote on last edited by
      #2

      I don't know how extensive you want your re-theming to be. However if it could be CSS-only you could use this approach: Store the CSS files for the different themes in the Style Library or in 14 Hive. Create a list/table that stores the user and their chosen theme. Write a feature and custom application page to allow the user to change their theme. Write a control that does a lookup on the list against the current user and obtains the a reference to the corresponding CSS file in the Style Library or in 14 hive. The control would then output the CssRegistration and CssLink controls to the page for this file. Add this control to the master page so it executes on every page (caching should be added). I can't see why this wouldn't be supportable by Microsoft as you're only changing CSS. If you need to do more than that then another option is to write an HTTP module that changes the HTML output. Or of course JavaScript. With these two options you may have supportability issues (it depends on how extensive your changes are).

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups