MirageLab :: labCategories

FAQs

labCategories
Browse in : All > FAQs > MirageLab > labCategories

How do I re-arrange the order of categories in a module that uses labCategories?

Go to the Administration page and click labCategories. Choose to View Categories and then select the category that you want from all of the available category lists on the site. Then change it's various fields to either be above or below the new sibling.

Back to top


What additional variables do I need to pass in a form that uses the category selection dropdown?

The category dropdown function does not require any additional form information to be passed in order to function. The function is set up to accept specific variable information to customize it's appearance and make it integrate more easily with other modules.

Back to top


What is the difference between a sibling and the child of your parent?

Nothing. The "above or below", "right or left", and "parent or sibling" options can appear awkward at times because there are always two different ways to achieve the same lineage.

Back to top


What options are available in the category form element call (function labCategories_user_modify)?

$fieldname will default to "cid" if not otherwise specified. This determines the form element variable name. $verbiage will default to "category" if not otherwise specified. This value is used as the first entry in the category dropdown to display "select [category]". $cid should be set to the category list parent's "cid" value in labCategories. If no value is specified, the entire category table will be displayed. $defaultcid contains the current value of the field. In a new item form, this can be set to a default value that is most often used. In an edit form, this should be set to the current "cid" field value of the item. If $newfieldname is specified, an additional text input form element is appended after the category dropdown. On submission, this variable will be passed for use in creating a new entry in the category list.

Back to top