Any chance of an 'A' 'B' 'C' listing for news module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
buzzby
Forum Members
Forum Members
Posts: 24
Joined: Fri Aug 12, 2005 9:03 am

Any chance of an 'A' 'B' 'C' listing for news module

Post by buzzby »

i am not sure if this exists already. i would like to know if there is a module that deals with listings in a alphabetical manor. i know that the news module already can list all articles by their starting letter.
  • ART
  • BEAUTY
  • CARE
  • DRAMA
etc

is there a way that a comprehensive list can be displayed by category? so all categories will be listed with their subjects in alphabetical order?

ART
  • AS Level - Art History
    A2 Level - Art & History
    Btec 1st Art & Design Diploma
    Btec Nat Art & Design Certificate
Also a little like the glossary can there be letter splits so that all courses under D or E can be clicked on to be viewed.

cheers
reneh
Dev Team Member
Dev Team Member
Posts: 446
Joined: Tue Nov 28, 2006 8:39 pm
Location: Norway

Re: Any chance of an 'A' 'B' 'C' listing for news module

Post by reneh »

See help of news...
News have catagories.


For pagination by chars you must do some nice templating for list view...
ReneH 8-)
A search will save you hours waiting for an answer! Image
beattie
Forum Members
Forum Members
Posts: 98
Joined: Sun Dec 21, 2008 11:35 pm

Re: Any chance of an 'A' 'B' 'C' listing for news module

Post by beattie »

If I've understood you correctly, I solved this problem not long ago with the help of a posting on this forum.

Open file action.browsecat.php (should be in folder modules/News)

Around line 31 replace this line:
$query .= ' ORDER by hierarchy';
With this line:
$query .= ' ORDER by long_name';
To show the list of categories in their alphabetical order put this in your page or page template:

{news browsecat="1" category="Articles*" sortby="news_title"}

Check News module help for other parameters. Articles is the parent name of the category, the asterisk * shows all the child categories (sub-categories).

See this page for a live example of a category list in alphabetical order:

http://www.kidsinmadrid.com/en/kim-business-directory.html
Last edited by Anonymous on Mon Jul 05, 2010 10:48 pm, edited 1 time in total.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Any chance of an 'A' 'B' 'C' listing for news module

Post by Ted »

SOSchildcare.com wrote: Open file action.browsecat.php (should be in folder modules/News)

Around line 31 replace this line:
This isn't a valid solution anymore.  News has been significantly changed, and it should be possible to do this without any code hacking.  Using browsecat, properly setup category hierarchy and a little smarty magic, it should be pretty easy to do.

Good luck.
Post Reply

Return to “Modules/Add-Ons”