OS Property support center

SOLVED !!! Category as dropdown field

  • Jim
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 11 months ago - 9 years 11 months ago #63651 by Jim
Hi,

If possible i would like both category fields in the filter form and property add form to be dropdown and not multiple selections.

Please can you let me know the changes and where?

Thanks

Jim
Last edit: 9 years 11 months ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #63680 by Mr. Dam
Replied by Mr. Dam on topic Category as dropdown field
Hi Jim,
There are quite a lot places that you need to make the modification to change multiple dropdown to single dropdown, almost files are in: components > com_osproperty > classes folder
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Jim
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 11 months ago #63686 by Jim
Replied by Jim on topic Category as dropdown field
Thanks, I will have a look, i think its important especially when adding a new property as some of my users are selecting more than one category
regards
jim

Please Log in or Create an account to join the conversation.

  • Jim
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 11 months ago #63887 by Jim
Replied by Jim on topic Category as dropdown field
Hi Dam,

I have changed all the categories to dropdown lists thanks, apart from the one in the property edit template.

Can you help with this please? or alternatively help me make the selection box bigger as its too small for users to select. (it only shows 2 lines)

many thanks
Jim

Please Log in or Create an account to join the conversation.

  • Jim
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 11 months ago #63888 by Jim
Replied by Jim on topic Category as dropdown field
see image

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #63945 by Mr. Dam
Replied by Mr. Dam on topic Category as dropdown field
Hi,
As i see in the image, the Category field is still is Multiple select field
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Jim
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 11 months ago #63961 by Jim
Replied by Jim on topic Category as dropdown field
Hi Dam,

Yes its the only one on the site i couldn't change to a dropdown.

As i couldn't change this how do i make the multiple selection box bigger?

Thanks

Jim

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #63971 by Mr. Dam
Replied by Mr. Dam on topic Category as dropdown field
Hi Jim,
I have change the height size of Category dropdown in your site. Please check it and get back to me.
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Jim
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 11 months ago #63975 by Jim
Replied by Jim on topic Category as dropdown field
Morning Dam,

Perfect thank you, which bit of code did you change and i will change my other sites?

I will still try to change this to a dropdown in the future as with the multiple selection you can of course select more than one category, which i don't want.

Thanks

Jim

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #63977 by Mr. Dam
Replied by Mr. Dam on topic Category as dropdown field
Hi,
I modified file: components > com_osproperty > helpers > helper.php
Thanks
Dam
The following user(s) said Thank You: Jim

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan