English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: CSS and sharing whole site
#10076
CSS and sharing whole site 11 Years, 11 Months ago Karma: 0
Last week Edwin did a wonderful job helping setup Multisite for our system. It is everything we wanted and well worth the money to get it setup right from the get go. Thank you for all the help !

Between multi-site and the free search and replace plugin, we've been able to customize all our slave sites, except for items that are in the CSS. Customizing content in articles, modules and extensions works great with search and replace.

I have found a component that claims to add the CSS in as a module, which in theory we could customize for every site by inserting keywords into the CSS that is the replaced in the slave site.

My question is this. Has anyone ever tried this and is there a cleaner way to customize the CSS file on a slave site other than trying to put it into a module and then using search and replace?

Thanks !

Adam
adam
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#10078
Re: CSS and sharing whole site 11 Years, 11 Months ago Karma: 54
A method to customize CSS is to replace CSS by PHP and allow the PHP reply with the CSS content. In this case, when you have a PHP, this mean that you can perform a search/replace when this PHP is called through joomla initialization.

This technique is used by some "template companies" that compute the CSS dynamically.

Another approch would be to have different class or id into the HTML and to create variant of the class name or id based on the Site ID.
So that you could have different value.

Other solution is to use the Search/Replace to perform a search replace on the "link" tag to change the path to the CSS. So that you could have different CSS files depending no the Site ID.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla