[SOLVED] vm_category_menu - possible to sort ?
Multi-purpose Joomla template including ecommerce features and beautiful design
- GK User
- Sat Jun 07, 2008 3:55 pm
i'm using the mod_gk_vm_category_menu module.
i would like to sort VM caterogies from A to Z..
is it possible ?
Thanks:)
i would like to sort VM caterogies from A to Z..
is it possible ?
Thanks:)
-
- Fresh Boarder
- GK User
- Sun Jun 08, 2008 6:04 pm
Im having the same problem as above.
Also in VM under category tree, i have unpublished couple of categories but they are still showing up in the mod_gk_vm_category_menu module. Does anyone else have the same issue?
Any advise would be much appreciated.
Thanks
Also in VM under category tree, i have unpublished couple of categories but they are still showing up in the mod_gk_vm_category_menu module. Does anyone else have the same issue?
Any advise would be much appreciated.
Thanks
-
- Fresh Boarder
- Dziudek
- Mon Jun 09, 2008 9:31 pm
in helper.php in module catalog change:
for:
But I cann't guarantee that it won't causes problems - you must change it and check module
- Code: Select all
$query = "
SELECT
`c`.`category_name` AS `name` ,
`c`.`category_id` AS `id` ,
`x`.`category_parent_id` AS `parent`
FROM
`#__{vm}_category_xref` AS `x`
LEFT JOIN
`#__{vm}_category` AS `c`
ON
`x`.`category_child_id` = `c`.`category_id`
ORDER BY
`x`.`category_parent_id`;";
for:
- Code: Select all
$query = "
SELECT
`c`.`category_name` AS `name` ,
`c`.`category_id` AS `id` ,
`x`.`category_parent_id` AS `parent`
FROM
`#__{vm}_category_xref` AS `x`
LEFT JOIN
`#__{vm}_category` AS `c`
ON
`x`.`category_child_id` = `c`.`category_id`
ORDER BY
`x`.`category_name`;";
But I cann't guarantee that it won't causes problems - you must change it and check module
- Seichinha
- Mon Jun 09, 2008 11:17 pm
Actually, it works... but with this:
You forgot the `c` !
"Oh My God... i fix something from Dziudek !!! The world is insane !!!" LOOOL
- Code: Select all
SELECT
`c`.`category_name` AS `name` ,
`c`.`category_id` AS `id` ,
`x`.`category_parent_id` AS `parent`
FROM
`#__{vm}_category_xref` AS `x`
LEFT JOIN
`#__{vm}_category` AS `c`
ON
`x`.`category_child_id` = `c`.`category_id`
ORDER BY
`c`.`category_name`;";
You forgot the `c` !
"Oh My God... i fix something from Dziudek !!! The world is insane !!!" LOOOL
- GK User
- Tue Jun 10, 2008 4:56 pm
Hi,
Do you have a fix for my ealier query i.e.
Thanks
Do you have a fix for my ealier query i.e.
In VM under category tree, i have unpublished couple of categories but they are still showing up in the mod_gk_vm_category_menu module. Does anyone else have the same issue?
Any advise would be much appreciated.
Thanks
Thanks
-
- Fresh Boarder
- GK User
- Tue Jun 10, 2008 10:43 pm
Thnaks for your help. All is working now. that's cool !
-
- Fresh Boarder
- GK User
- Tue Aug 19, 2008 10:21 pm
I have the same issue with unpublished categories still showing up in the mod_gk_vm_category_menu.
Any help to update this would be appreciated
Any help to update this would be appreciated
-
- Junior Boarder
- GK User
- Tue Aug 19, 2008 10:26 pm
[SOLVED] Check out this post and replace the existing files with the ones contained in the update:
http://gavick.com/dev/gk_vm_category_me ... nu_1.1.zip
http://gavick.com/dev/gk_vm_category_me ... nu_1.1.zip
-
- Junior Boarder
- GK User
- Wed Aug 27, 2008 6:13 am
The correction solves some issues but not the sorting.
If you want the sorting to work as laid out in the admin manager change the following in version 1.1.
On line 48 of modules/mod_gk_vm_category_menu/helper.php
CHANGE:
`x`.`category_parent_id`
TO:
`x`.`category_parent_id` ASC, `c`.`list_order` ASC
Line 47 & 48 should now look like:
ORDER BY
`x`.`category_parent_id` ASC, `c`.`list_order` ASC;";
I explicitly set the Ascending order which is a default, but I'm a bit anal when it comes to code
If you want the sorting to work as laid out in the admin manager change the following in version 1.1.
On line 48 of modules/mod_gk_vm_category_menu/helper.php
CHANGE:
`x`.`category_parent_id`
TO:
`x`.`category_parent_id` ASC, `c`.`list_order` ASC
Line 47 & 48 should now look like:
ORDER BY
`x`.`category_parent_id` ASC, `c`.`list_order` ASC;";
I explicitly set the Ascending order which is a default, but I'm a bit anal when it comes to code
-
- Fresh Boarder
- GK User
- Thu Sep 11, 2008 5:00 am
thanks netadvanced
so now i got from you
changed to this and works great thanks as corresponds with order in backend
again thankyou
so now i got from you
- Code: Select all
SELECT
`c`.`category_name` AS `name` ,
`c`.`category_id` AS `id` ,
`x`.`category_parent_id` AS `parent`
FROM
`#__{vm}_category_xref` AS `x`
LEFT JOIN
`#__{vm}_category` AS `c`
ON
`x`.`category_child_id` = `c`.`category_id`
ORDER BY
`x`.`category_parent_id`;";
changed to this and works great thanks as corresponds with order in backend
- Code: Select all
SELECT
`c`.`category_name` AS `name` ,
`c`.`category_id` AS `id` ,
`x`.`category_parent_id` AS `parent`
FROM
`#__{vm}_category_xref` AS `x`
LEFT JOIN
`#__{vm}_category` AS `c`
ON
`x`.`category_child_id` = `c`.`category_id`
ORDER BY
`x`.`category_parent_id` ASC, `c`.`list_order` ASC;";
again thankyou
-
- Fresh Boarder
- GK User
- Thu Sep 11, 2008 7:41 am
Happy it helped.
Cheers.
Cheers.
-
- Fresh Boarder
- GK User
- Sat Dec 20, 2008 5:32 pm
Hi all, thanks very much for the code to order the category menu displayed on the front-end of the website. I have tried all the files and help tips in this thread in order to do the following but I cannot seem to get this to work??
In VM under category tree, i have unpublished couple of categories but they are still showing up in the mod_gk_vm_category_menu module. Any help would be much appreciated.
Hope someone has found a way for this to work. I would love to be able to unpublish categories.
I am using Joomla 1.5.8 and VM 1.1.2 and the zip file above does not seem to work but my ordering is fine.
Thanks,
James
In VM under category tree, i have unpublished couple of categories but they are still showing up in the mod_gk_vm_category_menu module. Any help would be much appreciated.
Hope someone has found a way for this to work. I would love to be able to unpublish categories.
I am using Joomla 1.5.8 and VM 1.1.2 and the zip file above does not seem to work but my ordering is fine.
Thanks,
James
-
- Gold Boarder
12 posts
• Page 1 of 1