Sábado, 01 Noviembre 2014 06:16

beggarly

How to add another Group By option

Groups your news by sections or by categories

How to add another Group By option

Postby anniejackson » Thu Dec 03, 2009 12:35 pm

Hello, I would like to know how to add another Group By option, specifically have the option be "No Grouping".

I am a novice programmer and am hoping some people with more experience can speak up and help me.

in the xml file I added the option for no grouping

Code: Select all
      <param name="global" type="radio" default="s" label="Group by" description="Choose how to group the lists">
         <option value="s">Section</option>
         <option value="c">Category</option>
         <option value="n">No Grouping</option>
      </param>


Now I go into the actual programming of the module (the helper.php file) and I see the if statements for section and category -> if (global == 'c')

It doesn't seem like it would be that hard to do an if global=n statement which is not grouped...if you know what you are doing, which I do not. Or maybe I am wrong and it is not so simple.

Anyway, global news is my favourite module by far and it has allowed me to do various things on my site, things it was not made for but which no other module would do and this is the one thing missing because I want to be able to automatically list all the newest articles, with their images without being grouped by category. I haven't found another module that does this...they all miss one thing. Either you have to specify the articles yourself, or they do not show the image.
anniejackson
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Sun Sep 13, 2009 10:41 am

Re: How to add another Group By option

Postby chus » Fri Dec 04, 2009 3:35 pm

Hello,

I would suggest you try Filtered News Module which offers very similar layouts for many different News Display criteria. You can see a live demo here:

http://joomla.vargas.co.cr/demos/22-con ... tered-news

Thank you!
User avatar
chus
Administrator
Administrator
 
Posts: 455
Joined: Thu Sep 13, 2007 2:21 am
Location: Costa Rica

Re: How to add another Group By option

Postby anniejackson » Fri Dec 04, 2009 4:13 pm

chus wrote:Hello,

I would suggest you try Filtered News Module which offers very similar layouts for many different News Display criteria. You can see a live demo here:

http://joomla.vargas.co.cr/demos/22-con ... tered-news

Thank you!


Yes I saw this before but this is exactly the problem. I don't want it filtered at all. The filtered news shows newest articles from the current category. Not what I want. I want global news except I want it to not group the items together by category, just show the newest articles organized by date in ALL categories. It can't be that hard, can it?
anniejackson
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Sun Sep 13, 2009 10:41 am

Re: How to add another Group By option

Postby chus » Fri Dec 04, 2009 4:48 pm

You can actually disable the filtering options from Filtered News.
User avatar
chus
Administrator
Administrator
 
Posts: 455
Joined: Thu Sep 13, 2007 2:21 am
Location: Costa Rica

Re: How to add another Group By option

Postby anniejackson » Sat Dec 05, 2009 11:34 am

chus wrote:You can actually disable the filtering options from Filtered News.


Oh, perfect! Than that may work. I did not see that in the description. Thanks :)
anniejackson
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Sun Sep 13, 2009 10:41 am


Return to Global News



Who is online

Users browsing this forum: No registered users and 2 guests

cron