-
AuthorPosts
-
it4inc Friend
it4inc
- Join date:
- May 2010
- Posts:
- 13
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 2 times in 1 posts
February 5, 2011 at 12:43 am #159775I searched the forum and found a post on this in 2008 with no resolution posted.
How can you change the tab order for JATabs? It appears to show the tabs in reverse article ID order (i.e. the article with the highest ID first). I’ve tried entering the individual articles, changing the order, etc… to no avail.
I am using the JA Community Plus template on Joomla 1.6.
Also, there is a link in a past post on the documentation for this plugin, but even though I am a paid user for the templates it won’t give me access to that link.
Thank you in advance!
thuanlq Friendthuanlq
- Join date:
- October 2010
- Posts:
- 528
- Downloads:
- 0
- Uploads:
- 29
- Thanks:
- 8
- Thanked:
- 121 times in 99 posts
February 9, 2011 at 8:48 am #375818Dear @it4inc,
The ja tabs plugin on joomla 1.6 doesn’t support for seting ordering of articles, default ordering is “order by ordering”. You can resolve this issue as following:
– Open “jatabs.php” file in the folder “plugins/system/jatabs/”
– Change lines code
// Set ordering
$model->setState('list.ordering', 'a.ordering');
$model->setState('list.direction', '');
to
// Set ordering
$model->setState('list.ordering', 'a.id');
$model->setState('list.direction', 'desc');
Good luck!1 user says Thank You to thuanlq for this useful post
June 14, 2011 at 12:35 pm #396295Thanks for this good advice.
Is it possible to set the ordering to the order of the ID’s: {jatabs type=”articles” ids=”102,88,103″…
Best regards,
Reidar Nygårdthangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
June 15, 2011 at 6:56 am #396442<em>@konsulenten 246978 wrote:</em><blockquote>Thanks for this good advice.
Is it possible to set the ordering to the order of the ID’s: {jatabs type=”articles” ids=”102,88,103″…
Best regards,
Reidar Nygård</blockquote>Currently JA Tab only order by the ordering of articles, so I suggest that you set order of your articles: 102, 88, 103…
June 19, 2011 at 3:56 am #397166<em>@thangnn1510 247155 wrote:</em><blockquote>Currently JA Tab only order by the ordering of articles, so I suggest that you set order of your articles: 102, 88, 103…</blockquote>
Hi,
I hae the same problem…I can’t manage to change the order of articles (I’m displaying articles within a category). Could you please tell me how to change the code in Joomla 1.5? Thank you!thangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
June 20, 2011 at 4:33 am #397284<em>@sbajardi 248061 wrote:</em><blockquote>Hi,
I hae the same problem…I can’t manage to change the order of articles (I’m displaying articles within a category). Could you please tell me how to change the code in Joomla 1.5? Thank you!</blockquote>It is not changing code in this case. By default it orders by the order of articles first so you need only to change ordering of articles the tab will work well.
August 9, 2011 at 1:15 pm #405139Is it possible to modify the code to order by date?
// Set ordering
$model->setState(‘list.ordering’, ‘a.id’);
$model->setState(‘list.direction’, ‘desc’);Regards
Reidar NygårdSherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 11, 2011 at 9:24 am #405609<em>@konsulenten 258379 wrote:</em><blockquote>Is it possible to modify the code to order by date?
// Set ordering
$model->setState(‘list.ordering’, ‘a.id’);
$model->setState(‘list.direction’, ‘desc’);Regards
Reidar Nygård</blockquote>Hi Reidar,
I think you can set to order by the created date, try this
$model->setState(‘list.ordering’, ‘a.created’);August 12, 2011 at 6:14 am #405837<em>@Dat Hoang 258934 wrote:</em><blockquote>Hi Reidar,
I think you can set to order by the created date, try this
$model->setState(‘list.ordering’, ‘a.created’);</blockquote>Of course the most wanted function would be to sort the tabs by the order of the articles in the code:
{jatabs type=”articles” ids=”102,88,103…102 first, then 88, then 103
Is it not possible to read this order and use it as the ordering method?
Best regards
Reidar NygårdBlaine FriendBlaine
- Join date:
- August 2007
- Posts:
- 1443
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 98
- Thanked:
- 177 times in 154 posts
August 14, 2011 at 6:33 pm #406226You can have custom html added in the same area as the tabs.
There is some excellent documentation here:
http://demo.joomlart.com/extensions15/index.php?id=109&option=com_content&view=article
Also, if this does not help, would you be so kind as to list the specific version of Joomla you are using, for example ~ 1.5.23
Thanks! -
AuthorPosts
This topic contains 10 replies, has 7 voices, and was last updated by Blaine 13 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum