Solved

Adding article-specific CSS in Joomla 3.1.1

Posted on 2013-05-23
3
414 Views
Last Modified: 2013-06-15
I am new to Joomla, and have created my first template.  It is responding appropriately.  Right now, there is only a home page.  There will eventually be more content, and each page is likely to need its own styling.  I'd rather not dump all the page-specific CSS into the main template.css file.  How can I tell Joomla to link to CSS file "thispage.css" from a particular article?

I need to know if this is possible with a default installation.
0
Comment
Question by:Steve Bink
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
dec0mpile earned 500 total points
ID: 39230251
I think this would be possible with the default installation, but it would require changing or adding some code.

Take a look at this free extension:
http://extensions.joomla.org/extensions/style-a-design/templating/14053

It is compatible with Joomla 3.x.x

Website with documentation:
http://www.hyde-design.co.uk/free-joomla-extensions/custom-css#all-templates

I think it will do exactly what you need.
0
 
LVL 50

Author Comment

by:Steve Bink
ID: 39231863
This does what I want, but I would certainly prefer to have the CSS attach directly to the article, instead of having to split the management between the article and a module.  I'm guessing there is no functionality inside Joomla core to handle this?

I don't like the administration this will require to manage a site with hundreds of pages, but it is what it is.

Any other suggestions?
0
 
LVL 50

Author Closing Comment

by:Steve Bink
ID: 39250560
It is not a perfect to what I want, but it works.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

First of all, we will need Jumi component or Sourcerer plugin for this to work. We need either of these because the main focus here is custom development outside of the standard modules or articles within Joomla. You can find Jumi here...it's my …
In this article, we will look at our content management system as a whole, to get an idea of how we will start to manage these content items.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now