Solved

Adding article-specific CSS in Joomla 3.1.1

Posted on 2013-05-23
3
419 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Expression Engine Carthrob 3 75
Locals visitor statistics for Joomla Website 4 65
Moving Content 1 129
Is K2 Custom HTML module any better than Joomla's? 2 92
This is our step by step to setting up and configuring a Joomla Install on a Windows 2003 Server. This is the perfect solution for an Intranet Website using Joomla. What you need (only use the following versions) : A fresh copy of Joomla http…
Since I am currently running into this issue right now as I type this, I though I would share my experiences with moving a ModX Revolution site from one server to another.  It is not an easy task, but can be accomplished rather easily. The first …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

805 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