Display 1 most recent article from category

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Thu Jun 03, 2010 3:22 pm
Hello,
I am having a category with articles and I want the News Show to only display 1 article. I want it to select the most recent article from the category.

I can't seem to get it working. It still displays all published articles in the category.

I have set the "Article Layout" parameters:
Amount of pages with arts = 1
Amount of columns = 1
Amount of rows = 1
User avatar
Fresh Boarder

GK User
Thu Jun 03, 2010 3:23 pm
Could you provide url to your website ?
User avatar
Administrator

GK User
Thu Jun 03, 2010 5:10 pm
The website is offline. I am working on it locally.
Is it suppose to display only 1 article with the settings I filled in, or is the functionality of the module like that?
User avatar
Fresh Boarder

GK User
Fri Jun 04, 2010 12:24 am
It depends from it how it seems - because module generates also list with links and short description.
User avatar
Administrator

GK User
Fri Jun 04, 2010 6:08 am
I want to display short description with thumbnail. This is what I have currently, but I can't seem to limit it to only 1.
What are the settings required for this?
User avatar
Fresh Boarder

GK User
Fri Jun 04, 2010 12:00 pm
sorry - without seeing it I cannot help you.
User avatar
Administrator

GK User
Wed Jun 16, 2010 3:25 pm
All I am asking is if it is possible to display the most recent article of a category (only 1 article). If it is possible, what are the settings to do this?
I can't seem to figure out how this is done if it is possible at all.
User avatar
Fresh Boarder

teitbite
Sat Jun 19, 2010 11:12 pm
Hi

Sorry NSP4 does not have such option. But You can set the ID for this article, but You need to choose it manualy.
User avatar
Moderator

GK User
Sun Jul 04, 2010 9:51 am
I would love to see this as a feature. It would be nice if a user could limit the amount of articles to be displayed from a category.
User avatar
Fresh Boarder

GK User
Thu Jul 15, 2010 3:30 pm
Hi again,

Well I managed to change the module to suit my needs. Hope this is OK.

What I did to make it work was quite simple. In the "gk.source.joomla.php" I changed the code at line 196:
Code: Select all
'.($config['startposition']).','.($amount + (int)$config['startposition']).';

to

Code: Select all
'.($config['startposition']).';


So now the startposition acts as a limit to the amount of articles to be displayed.
User avatar
Fresh Boarder

GK User
Thu Jul 15, 2010 4:33 pm
Hi
if i understand you right, this can be set from module parameters.

News order= date
News sort order= descending

Amount of pages with arts = 1
Amount of columns = 1
Amount of rows = 1

Amount of pages with link=0
Amount of links = 0

i use this settings, to show just one (the last) article in a module.

(sorry if is not what you are looking for)
User avatar
Senior Boarder

GK User
Fri Jul 16, 2010 9:27 am
julianeuropa wrote:
Hi
if i understand you right, this can be set from module parameters.

News order= date
News sort order= descending

Amount of pages with arts = 1
Amount of columns = 1
Amount of rows = 1

Amount of pages with link=0
Amount of links = 0

i use this settings, to show just one (the last) article in a module.

(sorry if is not what you are looking for)


Now that was much simpler, thank you!

I don't understand why I could not get a reply like this from the developers. And I think someone also mentioned in a previous post that it was not even possible.

Oh well..

Thanks again! :)
User avatar
Fresh Boarder

teitbite
Fri Jul 16, 2010 10:00 am
moleculezz wrote:
And I think someone also mentioned in a previous post that it was not even possible.


Hi

Sorry. I said that because I misunderstand You. I thought You want to show the article with the biggest number on clicks on it. Very, very sorry.
User avatar
Moderator


cron