1
disky
Theme changing in WFsection when changing category
  • 2003/12/26 21:47

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Hi there.

I have a strange request from the designer behind a site i am working on.

Is it possible to change the theme or part of a theme for a website, when the user changes category ?

it is stuff like the head bar that should have some graphics changed, and also some of the left column menues and stuff like that.

It there a nice way to do this, or do i have to go into the problems of hardcoding it into the theme file by using smarty templates ?

Best regards
Disky

2
JackJ
Re: Theme changing in WFsection when changing category
  • 2003/12/27 0:00

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


I don't know of any simple workaround for this:

This thread here might be helpful for changing styles etc according to url:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=4261&forum=5#17267

And this one for other changes i.e style sheets, images according to module:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=14890&forum=10#forumpost61233

In wfsections of course you can have different background colors for each page using wysiwyg.

regards


3
disky
Re: Theme changing in WFsection when changing category
  • 2003/12/27 13:44

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Thanks for the help, i will look into it at once :)[quote]

4
MadFish
Re: Theme changing in WFsection when changing category
  • 2003/12/27 16:22

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


We've done something similar (changing the logo and navigation bar for different categories within a module), using the ID for each category to determine the appropriate display.

There's a test site up that does this for the news, links and downloads modules. If this looks like it might be useful to you let me know and we'll provide more info next week.

It works pretty well so long as you don't need to add new categories all the time - since you do have to go in and add the IDs for each new category that you create. I think WF-Section uses article IDs, not category IDs, so it might not be very convenient with that particular module if you are using it to publish a lot.


5
disky
Re: Theme changing in WFsection when changing category
  • 2003/12/27 20:15

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Hi there

I actually use wfsection for publishing articles.

But i am planning on simply adding the category ID to the URL when displaying articles, and then use this information to change the site from the theme.html.

Do you think this would work ?

Thanks for the link to your site, i have keept freshwater fish for years myself, and now love to dive places like the Red Sea and more, i am sure going to surf you page when i get the time.

6
MadFish
Re: Theme changing in WFsection when changing category
  • 2004/1/1 7:04

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


We didn't try that, but I think so - can't see why you couldn't.

This thread might be of interest to you.

7
davidl2
Re: Theme changing in WFsection when changing category
  • 2004/11/13 19:57

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Quote:

JackJ wrote:
I don't know of any simple workaround for this:

This thread here might be helpful for changing styles etc according to url:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=4261&forum=5#17267

And this one for other changes i.e style sheets, images according to module:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=14890&forum=10#forumpost61233

In wfsections of course you can have different background colors for each page using wysiwyg.

regards



Any details on this post either?

Thanks

Login

Who's Online

259 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 259


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits