Results 1 to 4 of 4

Thread: Managing News Items

  1. #1
    User
    Join Date
    10-15-10.
    Posts
    279

    Default Managing News Items

    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:

    Code:
     <ul class="hot_policy_issues">
        <li class="corporate_issues_link">Corporate Issues
        <ul>
          <li class="data_breaches_link">Data Breaches
          <li class="data_security_link">Data Security
          <li class="data_sharing_link">Data Sharing[/list][/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?

  2. #2
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: Managing News Items

    Hi mechaflasch,
    for something like that you can use the tags extension (news tags). There you habe a tag cloud and when you click on one tag only news with this tag are listed. The tag cloud can look like a normal navigation with css.

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  3. #3
    User
    Join Date
    10-15-10.
    Posts
    279

    Default Re: Managing News Items

    Bad a** thanks Mack. I'll try that out this morning!

  4. #4
    User
    Join Date
    10-15-10.
    Posts
    279

    Default Re: Managing News Items

    It works great. Amazingly easy to integrate as well. Thanks again!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •