I have a bit of a predicament. For a new website I'm building, it is required that news be split into multiple categories. We want to be able to have a menu of links of these categories where it will populate a news list of these specific news items only off of a single Main Category news archive. I tried looking on the extensions repository for any add-ons for the news module but didn't find any =( wishful thinking lol.
This is what I've attempted so far.
created a simple link list:
Going off of the 4 links I have created, I have 1 main category and 3 sub-categories;
main category: Corporate Issues;
sub-categories: Data Breaches, Data Security, Data Sharing
Created the News Archive for Corporate Issues
I've created double classes for these news items as "corporate_issues data_breaches", "corporate_issues data_security" etc.
Now when I click on the Data Breaches link, I want the news list to populate ONLY the news items with class data_breaches and leave everything else out of the list.
I've tried to:
Code:
//* Hide all news items *//
.newslist .corporate_issues *{
display: none
}
//* Show Only Data Breaches News Items *//
.menu .data_breaches_link a:active .newslist .data_breaches{
display:block
}
Without any luck =/. Is there a simpler way of doing what I'm doing or is it improbable?
Bookmarks