-
AuthorPosts
-
offroadmagazin Friend
offroadmagazin
- Join date:
- June 2011
- Posts:
- 28
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
August 15, 2011 at 12:37 pm #167596Here’s a scenario:
I have a “Latest news” type JA Bulletin with 5 articles to display.
I have 5 articles, all of which were modified yesterday.
Now, if I create a new article, it won’t ever show up in the JA Bulletin, unless I modify it.I tried to figure out, how ordering works in JA Bulletin, and I’ve found these lines in modulesmod_jabulletinhelper.php:
[PHP]if($ordering==’latest’){
$ordering = ‘a.modified’;
}[/PHP]Which means to me, that it takes into account the modified column’s value only, when choosing the first 5.
Am I missing something obvious, or is this a bug?To me, it seems that the order should be either by “created” date only, or “created” and “modified” date *combined together*. “Modified” alone, doesn’t make sense.
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
August 15, 2011 at 1:31 pm #406366Hi there,
I’m checking your issue. Let’s me do a patch as your needed.
Thank you
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
August 15, 2011 at 1:44 pm #406372I’m sorry but which Joomla version you are using ?
Thank you
Viet Vuoffroadmagazin Friendoffroadmagazin
- Join date:
- June 2011
- Posts:
- 28
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
August 15, 2011 at 5:02 pm #406402Hi, thanks for the quick reply.
I’m using Joomla 1.7, (and mod_jabulletin v1.0.3).I gave it another thought, I’m not sure if I help or rather steer you into the wrong direction,but this is how I see this problem:
The current data model is like it was resulted from an SQL query like this:
SELECT * FROM `j17_content` WHERE 1 ORDER BY modified;
However, the optimal result in my humble opinion whould be the result of something like this (works with mysql):
SELECT * , GREATEST( `modified` , `created` ) AS latestnewsdate FROM `j17_content` WHERE 1 ORDER BY latestnewsdate
I’m not sure if this result can be achieved using Joomla’s data abstraction class JModel.
issay Friendissay
- Join date:
- November 2009
- Posts:
- 114
- Downloads:
- 0
- Uploads:
- 22
- Thanks:
- 26
- Thanked:
- 5 times in 1 posts
August 15, 2011 at 6:04 pm #406408same problem in catagory blog. when I add a new article it does not appear in order of ‘Most resent first’ order. this happens in main catagory. but in sub cat it apear on top of the page.
I changed every thing in menu ‘Blog Layout Options’
issay Friendissay
- Join date:
- November 2009
- Posts:
- 114
- Downloads:
- 0
- Uploads:
- 22
- Thanks:
- 26
- Thanked:
- 5 times in 1 posts
August 16, 2011 at 5:49 am #406465any help from moderators?
August 17, 2011 at 12:54 pm #406691Did you resolved the problem? I have a same problem, and i’ve made a ticket. I am waiting the reponse. If i found out something i will tell you.
Blaine FriendBlaine
- Join date:
- August 2007
- Posts:
- 1443
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 98
- Thanked:
- 177 times in 154 posts
August 17, 2011 at 2:19 pm #406707@ALL~
Please see if the following resolves any ones issue:
Go into “Article Manager” click “Options”.
On the “Blog/Featured Layout” (Or whatever layout YOU need) tab, set “Include Subcategories” to “All”, then choose the Category Order.
Article Order and Date for Ordering options at the bottom.
And be sure the article is published and you are selecting the correct section/category of articles to show where you want them to show.
Please post if this solves YOUR issue!
Thanks!August 17, 2011 at 7:40 pm #406774No, it doesn’t work. I’ve posted the partial solution here: http://www.joomlart.com/forums/topic/latest-news-not-display-subcategory/
<em>@sporttotal 260425 wrote:</em><blockquote>I’ve found one of the problem. In modulesmod_jabulletinhelper.php i’ve changed
// Set ordering
$ordering = $params->get(‘type’, ‘latest’);
if($ordering==’latest’){
$ordering = ‘a.modified’;
}with
// Set ordering
$ordering = $params->get(‘type’, ‘latest’);
if($ordering==’latest’){
$ordering = ‘a.created’;
}That resolved the news to appear in the menu, at the latest articles. But in category, doesn’t appear. I didn’t found out from where is the problem Maybe you can help me?</blockquote>
August 19, 2011 at 3:24 pm #407106To resolve and the seccond problem, if someone is searching the solution Go to Menu > Magazine and choose the category first and the subcategory. At the blog Layout options you must choose the options like in the attachment!
Blaine FriendBlaine
- Join date:
- August 2007
- Posts:
- 1443
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 98
- Thanked:
- 177 times in 154 posts
August 19, 2011 at 9:19 pm #407166sporttotal you’re great!
Thanks for helping everyone!August 20, 2011 at 1:58 pm #407278My pleasure! Have a nice day!
August 20, 2011 at 4:41 pm #407298<em>@sporttotal 260857 wrote:</em><blockquote>To resolve and the seccond problem, if someone is searching the solution Go to Menu > Magazine and choose the category first and the subcategory. At the blog Layout options you must choose the options like in the attachment!
</blockquote>
Hi, I couldnt catch it as quick, how do i get to this image? Could you give me a detailed steps to this image? Thanks!!
August 20, 2011 at 4:55 pm #407303Go to Menus –> Magazine –> and there you have the categories showed in menu. Enter into any category and you will se you have this options!
October 16, 2011 at 11:49 am #419637Hi all
I have done the following steps mentioned but the effects are still the same (the latest articles are not on shown), kindly assist.
If you see the below two images, the contents in the megamenu for the NIGHT and BONDS are exactly the same.
How do i solve this?
-
AuthorPosts
This topic contains 26 replies, has 6 voices, and was last updated by jooservices 13 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum