Article Ordering by id in frontend

More
12 years 1 month ago #34911 by j0rged
Hello,
would you help me please, how can I order (to show) latest Article in frontend first? (also order by id). Or where can I read about .. I think it is not difficult but somehow I cannot understand why the articles are displayed always wrong (random.. and so)
In standard joomla configuration for articles in articles manager it is no opportunity to show (order) article by id.. I do not really understand why.....
I found somewhere in forum a solution for this, that I need to change in /administrator/components/com_content/models/articles.php
from
// List state information.
parent::populateState('a.title', 'asc');
to
// List state information.
parent::populateState('a.id', 'desc');

But articles in the parent category are displayed all the same wrong. (Perhaps the conclusion of the Article takes place by turns each category and, thus, not the newest article could be on the list first.)
In subcategories latest articles was displayed first, also right

I install FC, but I cannot found some opportunity to display latest articles first in list. My changes I have removed.
I set in global config: in tab "Content Lists":
Primary Order -> contents ordering attribute
in tab "Backend Managers", in Items Manager Order -> Item Id, and then Items Manager Order Direction -> Reverse

In menu I have menu-links to category and sub-categories.
All are setted in "Blog Layout Options", in Article Order-> Article Manager Order, then "Use global". Not work
I tried with
parent::populateState('a.id', 'desc');
too, but the articles are not ordered by id.....

In categories, under "Parameters: Items List Creation", Items Ordering -> contens ordering attribute
Under "Custom field" -> please select, also no changes

Thank you

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #34916 by ggppdk
Hello,

OK, there is no such option to order by item id,
but of course it is possible to add

Just, if you do not modify the creation dates and you order by most recently added, then you will get the same effect ... as ordering by 'id' property of the FC items (= joomla articles)

Can you tell us the scenario you have in mind ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #34966 by j0rged
Hello,
yes, so it works.
I have just some news on the Site and wish that latest news are displayed first.
Thanks

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #34968 by ggppdk
v2.0.1 is available for download and supports it
code.google.com/p/flexicontent/downloads/list

select it in backend configuration category/menu/module

This release bug-fixes all known bugs of v2.0.0

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.303 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save