This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Order of Subcategories


avatar
insanetek 0
From: -
Order of Subcategories

I have a review structure like this:

Articles
Reviews
Product Type
Manufacturer
Product

Some of the subcategories are the same because some manufacturers have products in different product types. My problem is when I add a review to a category I just get a really long list of categories and subcategories that isn't organized. It is very hard to find the right category to add the review to. Is there a way it can be displayed in a logical structure? Maybe clicking the category would bring up a new dropdown that listed the subcategories of the category you selected.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Order of Subcategories
avatar
Administrator
1340
From: Vienna, Austria
Order of Subcategories

Here a workaround. Open cadmin/mod_review.php and replace:

        $query = DBQuery("SELECT reviewcat_id, reviewcat_name, reviewcat_permissions FROM esselbach_st_reviewcat");

while (list($reviewcat_id, $reviewcat_name, $permissions) = mysql_fetch_row($query))
{

with:

        $query = DBQuery("SELECT reviewcat_id, reviewcat_parent, reviewcat_name, reviewcat_permissions FROM esselbach_st_reviewcat");

while (list($reviewcat_id, $reviewcat_parent, $reviewcat_name, $permissions) = mysql_fetch_row($query))
{
if ($reviewcat_parent) $reviewcat_name = "-- ".$reviewcat_name;

This is not perfect solution, but makes it a bit easier.

Version 2.0 of Storyteller has already a complete rewritten category function that even allows sorting all categories by priority.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.