Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Frank

Dependant Drop Downs

I don’t expect support on this question but hopefully someone could point me in the right direction.

I’d like to have dependent dropdowns for editing custom post type category and subcategory with inline edit.

I have a list of palces uncategorized. I’d like to be able to inline edit and choose:
Restaurant
Fine Dining
Pizza
Fast Food
Shopping
Clothing Store
Computers Store
Pet Store

An help with this would be appreciated.

Thanks

5 years, 9 months ago
Jesper
Developer

This would be quite difficult to achieve indeed. It would require you to hook into the editability library we use, namely X-editable. You would need to hook into the editability object from X-editable, finding it through global JS variables CACIE_Items and CACIE_Columns. You could start by taking a look at the file /pro/classes/inline-edit/assets/js/admin-edit.js, and seeing how X-editable objects are accessed there.

Basically, you would need to hook into some onchange hook in X-editable, and then alter the available option values of the other column through an X-editable function. You should be able to find more on this in de X-editable documentation, too.

5 years, 9 months ago

You must be logged in to reply to this topic.