- Posts: 3
- Thank you received: 0
OS Property support center
categories - modifications
- muniek
- Topic Author
- Offline
- New Member
-
Less
More
12 years 4 months ago - 12 years 4 months ago #22973
by muniek
categories - modifications was created by muniek
Hi
i need to add extra field to property categories (it will be two letters category code) and another field to county (it will be county shortcode)
then i need to generate extra field in property (which will be ref no) and that field will be generated from 3 other fields:
XXXYYYYZZ
XXX = county shortcode
YYYY = property ID
ZZ = category code
please help as i can't even find where to add category shortcode (already added extra field in database but have no idea where to add it in backend)
thank you for any help
i need to add extra field to property categories (it will be two letters category code) and another field to county (it will be county shortcode)
then i need to generate extra field in property (which will be ref no) and that field will be generated from 3 other fields:
XXXYYYYZZ
XXX = county shortcode
YYYY = property ID
ZZ = category code
please help as i can't even find where to add category shortcode (already added extra field in database but have no idea where to add it in backend)
thank you for any help
Last edit: 12 years 4 months ago by muniek.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 4 months ago #22974
by Mr. Dam
Replied by Mr. Dam on topic Re: categories - modifications
Hi,
In OS Property, the extra fields are only used for Properties. You can't not define the extra fields for category. \
In your case, i think you have solution
ZZ is the category ID, it is the unique number of each category. You can see it in the categories list or in the database.
XXX is country code, you can have them from database.
YYYY is the property ID, you can create the extra field for it.
But the main problem is OS Property hasn't got feature to get the data for one extra fields from other fields. So you should enter value for this field by manually.
Thanks
Dam
In OS Property, the extra fields are only used for Properties. You can't not define the extra fields for category. \
In your case, i think you have solution
ZZ is the category ID, it is the unique number of each category. You can see it in the categories list or in the database.
XXX is country code, you can have them from database.
YYYY is the property ID, you can create the extra field for it.
But the main problem is OS Property hasn't got feature to get the data for one extra fields from other fields. So you should enter value for this field by manually.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- muniek
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
12 years 4 months ago #22976
by muniek
Replied by muniek on topic Re: categories - modifications
hi, thank you for reply
but unfortunately it has to be the way i described
i can manipulate extra fields with php but i can't find which files are responsible for editing category
to populate ref field with XXXYYYYZZ i can put some code into file responsible for property editing (i will get XX, YYYY and ZZ from required fields from database and then save it to extra field in database)
sound easy to me but... i can't find which files i should modify
but unfortunately it has to be the way i described

i can manipulate extra fields with php but i can't find which files are responsible for editing category
to populate ref field with XXXYYYYZZ i can put some code into file responsible for property editing (i will get XX, YYYY and ZZ from required fields from database and then save it to extra field in database)
sound easy to me but... i can't find which files i should modify

Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 4 months ago #22987
by Mr. Dam
Replied by Mr. Dam on topic Re: categories - modifications
I think you are Joomla php developer 
In case you want to add field in categories, you can modify the data table by using phpmyadmin
Table name : #__osrs_categories, and add column into that table,
for example
name : category_code
attribute : varchar 3
And then, you can add that value for categories by using phpmyadmin, Because we have limited number of categories, right?
After that you can retrieve data (category code) and update to the extra field.

In case you want to add field in categories, you can modify the data table by using phpmyadmin
Table name : #__osrs_categories, and add column into that table,
for example
name : category_code
attribute : varchar 3
And then, you can add that value for categories by using phpmyadmin, Because we have limited number of categories, right?
After that you can retrieve data (category code) and update to the extra field.
Please Log in or Create an account to join the conversation.
- muniek
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
12 years 3 months ago #23419
by muniek
Replied by muniek on topic Re: categories - modifications
i'm not that good developer 
i already altered database but i can't find which file is responsible for displaying property details (page where i want to display my extra field)

i already altered database but i can't find which file is responsible for displaying property details (page where i want to display my extra field)
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.