- Posts: 130
COMMUNITY FORUM
Menu Item K2 Tag - Is there any way to control it?
- Bryan Smith
-
Topic Author
- Offline
- Premium Member
Less
More
15 years 9 months ago #69444
by Bryan Smith
Menu Item K2 Tag - Is there any way to control it? was created by Bryan Smith
Wondering if there are any controls for ordering for tag menu items.
For that matter, where is the layout template found for a tag menu item.
Where are the params for tag menu item.
Thanks,
For that matter, where is the layout template found for a tag menu item.
Where are the params for tag menu item.
Thanks,
Please Log in or Create an account to join the conversation.
- Bryan Smith
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 130
15 years 9 months ago #69445
by Bryan Smith
Replied by Bryan Smith on topic Menu Item K2 Tag - Is there any way to control it?
Ok, I found some of the params for Tag menu links, but don't see anything for order.
The Tag params are on the K2 Dashboard parameters link.
I'm still wondering how order is determined?
The Tag params are on the K2 Dashboard parameters link.
I'm still wondering how order is determined?
Please Log in or Create an account to join the conversation.
- Mike Brogan
-
- Offline
- New Member
Less
More
- Posts: 7
15 years 4 months ago #69446
by Mike Brogan
Replied by Mike Brogan on topic Menu Item K2 Tag - Is there any way to control it?
Agreed, it would be very nice to have the same control over tag layout as we do with categories.
Please Log in or Create an account to join the conversation.
- bkemler
-
- Offline
- Premium Member
Less
More
- Posts: 87
15 years 4 months ago #69447
by bkemler
Replied by bkemler on topic Menu Item K2 Tag - Is there any way to control it?
You can change the tag layout somewhat by editing the generic.php template file. This view is used for the tag view and the author view.
I changed the ordering of the generic view in the code by changing the overall default ordering. To order them with the newest items at the top, in components/com_k2/models/itemlist.php I edited the section to set ordering. I changed the default (line 211 of my file) to:
default:
$orderby = 'i.created DESC';
break;
I changed the ordering of the generic view in the code by changing the overall default ordering. To order them with the newest items at the top, in components/com_k2/models/itemlist.php I edited the section to set ordering. I changed the default (line 211 of my file) to:
default:
$orderby = 'i.created DESC';
break;
Please Log in or Create an account to join the conversation.
- aw
-
- Offline
- New Member
Less
More
- Posts: 5
15 years 3 months ago #69448
by aw
Replied by aw on topic Menu Item K2 Tag - Is there any way to control it?
How would you change that code so the tag list order is alphabetical?
- aw
B Kemler said:You can change the tag layout somewhat by editing the generic.php template file. This view is used for the tag view and the author view. I changed the ordering of the generic view in the code by changing the overall default ordering. To order them with the newest items at the top, in components/com_k2/models/itemlist.php I edited the section to set ordering. I changed the default (line 211 of my file) to:
default:
$orderby = 'i.created DESC';
break;
- aw
B Kemler said:You can change the tag layout somewhat by editing the generic.php template file. This view is used for the tag view and the author view. I changed the ordering of the generic view in the code by changing the overall default ordering. To order them with the newest items at the top, in components/com_k2/models/itemlist.php I edited the section to set ordering. I changed the default (line 211 of my file) to:
default:
$orderby = 'i.created DESC';
break;
Please Log in or Create an account to join the conversation.
- scyllar
-
- Offline
- Senior Member
Less
More
- Posts: 60
15 years 1 month ago #69449
by scyllar
Replied by scyllar on topic Menu Item K2 Tag - Is there any way to control it?
Hello Kemler good to know it! I was just looking for info on tag list view. Do you know where to hack around if i want to create an overiding template for the tag view or user view? thanks in advance.
B Kemler said:You can change the tag layout somewhat by editing the generic.php template file. This view is used for the tag view and the author view.
B Kemler said:You can change the tag layout somewhat by editing the generic.php template file. This view is used for the tag view and the author view.
Please Log in or Create an account to join the conversation.
- Carlos Matos
-
- Offline
- New Member
Less
More
- Posts: 4
13 years 9 months ago #69450
by Carlos Matos
Replied by Carlos Matos on topic Menu Item K2 Tag - Is there any way to control it?
hi m8s
i had the same problem, the lack of ordering options.
So i made a quick-fix to work around the problem and now i can choose any order type.
link for the work around here
i had the same problem, the lack of ordering options.
So i made a quick-fix to work around the problem and now i can choose any order type.
link for the work around here
Please Log in or Create an account to join the conversation.