Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apply Sharepoint Theme to an aspx page in _layouts folder

Status
Not open for further replies.

theprowler

Programmer
Mar 25, 2005
29
IT
Hi all,
i've developed an external aspx page and i've put it in _layouts folder to make it visible to sharepoint.

But, how can i tell sharepoint i want to use its current theme? Or simply its current styles?

I guess i have to make some CSS imports in my page but how?

Thanks in advance!

Massimo
 
Thanks for your reply but applying theme in frontpage i think has limitations...

Imagine that a user wants to change theme to site... I'd like to see that theme changed also in mine external aspx page.

So i guess i have to import some CSS files in that page, but how CSS?

Massimo
 
The frontpage theme does also affects the extrnal pages.

But you could replace one of the existing theme's...
 
I'm sorry, i was not explained:
i imagine an user who changes theme site not with frontpage but with "site Settings" --> "Apply theme to site"

You think is possible to dinamically change theme to mine aspx page in that way?

Cheers

Massimo
 
Oke that can be done its a bit of work though. First of all a theme is applyed for all users so its as if everyone can apply his/her own theme.

So how do you procede

Add you new theme to the SPTHEMES.XML located in:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\LAYOUTS\<lcid>

And make a theme in this folder:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\THEMES

Because its a lot of work editing each file there was some talk about extracting the ELM files (Frontpage themes)
For more about this read the discussion at:


(Copy paste full URL)
Thats what i call an URL
smiletiniest.gif


Greetings
 
For some reason the & in the url gets replaced with &amp; . So you need to change this (x2)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top