Categories
- Introduction
- Top Level Categories
- Edit Screen
- Fields Assignment
- Association
- Operations
- Frequently Asked Questions
Introduction
Categories in Mosets Tree are the primary way to structure your directory in Mosets Tree. Categories are among the first thing your users will see when they visit your directory. They also dictate how search engine friendly (SEF) URLs are generated for your listings.
Categories can be added to your directory in a few ways. You can them through Mosets Tree back-end interface or you can allow your users to add them in front-end.
Top Level Categories
Top level categories are the first level of categories in your directory. They have the additional capability called Category Configuration. Category Configuration lets you override Mosets Tree configuration that will only affects this category and its sub-categories.
For example, you can disable reviews in a top level categories while they are accepted in other categories. Or you can show User Profile in a top level category while they are not shown in others.
Top Level Categories and Category Configuration are part of the system that make the Multi Directory support possible.
Edit Screen
Related Categories
Related Categories allows you to select one or more categories that are related to a current category. This allows your users who are browsing the current category can access to relevant categories through the links provided.
Allow listing submission
"Add your listing here" link appears in all category pages if you set the "Allow listing submission" function to "Yes". It allows your users to submit listings to the categories.
Setting this to "No" will hide this link in your category page and will prevent user from being able to submit listings here.
Use Main Index template page
By enabling this function, the category page will look and work like the Index page.
When using main index template in a category page, you can see the category page displays some modules that same as what you have seen in main Index, for example Alpha Index and Directory Menu. You can customized through Mosets Tree back-end for where you want to show these modules.
Alias
Aliases are short pieces of text that represent the title of your category. They are used to make Search Engine Friendly URLs. Mosets Tree will generates one for your category if you leave it empty.
Alias preferably should contain only lowercase letters and dashes(-).
Custom Title
By default, the category page's <TITLE>
tag for each category is the name of the category itself. Custom Title allows you to override this with a custom title.
Template
Allows you to select which Mosets Tree template to use in this category. Changing this only affects the template used by pages from this category only. If you want to apply the same template to all its sub-categories, check the "Change all sub categories to use this template" checkbox and save the category.
META Description & META Keywords
META Description describes your category page to search engines. META Keywords, on the other hand, tells search engine what keywords or topic your category is related to. You can customise each individual category's META Description and Keywords in their respective Edit Screen.
However, for your directory's index, you need to override these 2 language keys:
COM_MTREE_METADESC_ROOT
COM_MTREE_METAKEY_ROOT
in order to set the directory index's META Description and Keywords.
Fields Assignments
Instead of showing all your custom fields to all categories, Fields Assignment lets you to choose which field to appear in a top level category. Let's say if you are editing a top level category for "Real Estate Properties". You can assign "Rooms", "Bathroom" and "Facilities" custom fields to it. This way, the 3 fields only appear in Real Estate Properties and no where else.
Alternatively, you can select which top level categories a custom field will appear through Custom Field section in Mosets Tree back-end interface.
Association
Category association allows you to create "is a member of" relationship with an associated category. For example, a "Persons" category can be associated with "Companies" category. In such association, listings created under "Persons" category will have an option to associate itself with one of the listings listed under "Companies" category.
Setting up category association
- To set up category association in Mosets Tree, start by creating two top level categories. Following the example above, the two categories will be "Companies" and "Persons".
- In our example, listings under "Persons" category will be a member of company listings in "Companies" category. To such association, edit the "Persons" category and set its "Associated Category" to "Companies" category.
- Next, go to "Custom Fields" section and create a new custom field based on Associated Listing field type. Enter its caption as "Company". Because this field is only used in "Persons" category, assign this custom field to "Persons" category only.
Using category association
- Now that you've done setting up category association, you can start by creating a few companies under "Companies" category. For this example, create 2 listings under "Companies" category, ie: 'Mosets' and 'Joomla' as their name.
- Next, create 2 listings under "Persons" category. Let's name them "Amy" and "Ben". You will see the "Company" custom field you've created in steps above while doing this. This is a special type of custom field that shows you the selection based on the listings available in the associated category you set up above. In this example, it will show you 2 listings from "Companies" category. Choose "Mosets" as the company for both "Amy" and "Ben" listings.
- Go to your site's front-end and view the "Mosets" listing. If you've set up everything correctly, you will see the Mosets listing, just like any other listing in Mosets Tree. Scroll down the page and you will see "Amy" and "Ben" listings underneath it.
This is the result of setting up the category association in "Persons" category to "Companies" and then using "Associated Listing" field type to let you define listings relationship between the 2 categories.
Properties category is associated with Real Estate Companies company. We have a couple of listings from Properties that is associated with "Joomla Estate" listing from Real Estate Companies. In this page, you can see all the listings that are associated with it.
Operations
For performance reason, Mosets Tree keeps track on the total number of sub-categories and listings for each category in its own database table. Some times, these number might be inaccurate. Thus, operations help you to recount categories and listings to fix this.
Force recount of categories and listings
Full recount will force Mosets Tree to recount all sub-categories of the current category. If you have a big category, this method may be very slow and might cause PHP execution timeout. However this method is the most accurate.
Full recount of categories and listings
Fast recount will only count the current active category's listings and add all sub-category listings(if available) based on the total stored in database. This is a faster method but will not be accurate if the subcategories total are not correct.
Frequently Asked Questions
Categories image by default is shown only when you view the category page. You can configure in:
Mosets Tree Templates current default template
set "Show Categories' images" to Yes
to have the images to show in Main Index.
Yes. You can hide a category's listings through Mosets Tree back end. Go to edit category page, set "Show Listing" to No
in the category's Edit Screen.
In order to hide all the listings under each top level categories, you can go to:
Mosets Tree back-end Templates [current default template]
set "Number of listings under top level cats." to 0
. Make sure you check whether if you set to use Main Index template for category pages. This configuration will affect the index page and all the category pages that using main index template page.
You can fix this by performing a recount through the Operations tab when you're editing a category in back-end.