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:)
$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`;";
$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`;";
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`;";
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
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`;";
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;";