Forum

Thread tagged as: Problem

Categories??

I was wanting to use categories for ie: a model number - that was a simple list that you can select from the edit page - which then displays the select category on the page.php

is this what it can be used for or not? is there another way to get selected items on a edit page regards Ash

Ashley Murray

Ashley Murray 0 points

  • 5 years ago
Simon Clay

Simon Clay 127 points

Hi Ashley, you could use Categories to do this. However, as it's not strictly a 'Category', I might use a Data Select: https://docs.grabaperch.com/docs/templates/attributes/type/dataselect/

thanks for that - simon.

using the dataselect - for for instance if I had a category called rooms - are the slugs the room types?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Could you give an example?

easy way is lets say vehicles - I would like to select to manufacturer and then the model via a dropdown list on the CMS

Drew McLellan

Drew McLellan 2638 points
Perch Support

You'd create a set called Vehicles, and then create a category for each manufacturer. Under each manufacturer, create a sub category for each model.

So you might end up with a category path of:

 vehicles/rolls-royce/phantom

okay - how do I then add this to the frontend page thanks for the help, this has been driving me mental

Drew McLellan

Drew McLellan 2638 points
Perch Support

What HTML are you trying to output?