Advertisement:

Author Topic: Separate Category and Subcategory fields in Post Listing  (Read 86 times)

MGD4me

  • Newbie
  • *
  • Posts: 15
Separate Category and Subcategory fields in Post Listing
« on: July 29, 2019, 08:19:46 pm »
Using ver 3.80 with Bender theme...

Our hosted server suffered a major failure, and I had to reload Osclass. Prior to this failure, when a person wanted to create a new listing, there were separate fields for 'Category' and 'Subcategory'. The user first selected the desired Category, and next another dropdown would display the subcategories.

Now, only a 'Category' field is available, and the dropdown menu contains all categories/subcategories in one very long list. I have the option in Settings >> General "Allow users to select a parent category etc) NOT checked, like I had before the failure, but it still does not cause two separate Category/subcategory fields to appear.


marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Separate Category and Subcategory fields in Post Listing
« Reply #1 on: July 29, 2019, 10:26:48 pm »
Look in the file that loads when the admin from oc-admin area edits a listing.  Replace the code for category from your theme with the one from admin area.

MGD4me

  • Newbie
  • *
  • Posts: 15
Re: Separate Category and Subcategory fields in Post Listing
« Reply #2 on: July 29, 2019, 10:37:02 pm »
I am just heading out the door for a few hours, and will investigate when I return.

Thanks for the response. I let you know the results!

MGD4me

  • Newbie
  • *
  • Posts: 15
Re: Separate Category and Subcategory fields in Post Listing
« Reply #3 on: July 30, 2019, 04:19:31 am »
I tried what I thought was the item-edit code, but managed to mess it up. Then, after looking for other forum posts, I came across this suggestion which got me what I wanted, more-or-less.

It provides separate Category and Subcategory fields like I was wanting, but I need to play with the formatting a bit. Otherwise, it does the job very well.

See:  https://forums.osclass.org/themes-26/osclasswizards-category-subcategory-selection/msg155261/#msg155261

Thanks for your help !
« Last Edit: July 30, 2019, 06:57:56 am by MGD4me »