- Posts: 31
- Thank you received: 0
OS Property support center
extra fields to appear in one line
- aimztech
- Topic Author
- Offline
- Junior Member
-
Less
More
9 years 10 months ago #65564
by aimztech
extra fields to appear in one line was created by aimztech
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 10 months ago #65568
by Mr. Dam
Replied by Mr. Dam on topic extra fields to appear in one line
Hi Aimztech,
Please submit ticket and provide your site information with super admin account. I will check the issue for you.
Thanks
Dam
Please submit ticket and provide your site information with super admin account. I will check the issue for you.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- aimztech
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 0
9 years 10 months ago #65585
by aimztech
Replied by aimztech on topic extra fields to appear in one line
Hi,
It is on localhost for right now, so cannot share. Can you give a hint on how to achieve it. We need to have the lot size in different values like square yards, Kanal, Marla for different type of properties. The system only provides sqft and sqmtr. So we have to disable the core fields and apply extra fields to achieve that with a text field to input the size and another dropdown field for the units of measurements. But they appear on top of each other like in the picture. How to make them appear in one line so as they can appear like Land Area: 120 square yards instead of Land area: 120
square yards.
Regards
It is on localhost for right now, so cannot share. Can you give a hint on how to achieve it. We need to have the lot size in different values like square yards, Kanal, Marla for different type of properties. The system only provides sqft and sqmtr. So we have to disable the core fields and apply extra fields to achieve that with a text field to input the size and another dropdown field for the units of measurements. But they appear on top of each other like in the picture. How to make them appear in one line so as they can appear like Land Area: 120 square yards instead of Land area: 120
square yards.
Regards
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 10 months ago #65592
by Mr. Dam
Replied by Mr. Dam on topic extra fields to appear in one line
Hi,
Currently, OS Property only check if the value of extra field isn't empty, it will be shown at front-end of component. So that if the value of field is 0, it means it isn't empty. So the field will be shown at front-end.
I suggest you to check the code file
components > com_osproperty > templates > theme1 > listing.html.tpl.php and result.html.tpl.php
find this code
if($field->fieldvalue != ""){
you can try to change it to
if($field->fieldvalue > 0){
and test to see if it work
Thanks
Dam
Currently, OS Property only check if the value of extra field isn't empty, it will be shown at front-end of component. So that if the value of field is 0, it means it isn't empty. So the field will be shown at front-end.
I suggest you to check the code file
components > com_osproperty > templates > theme1 > listing.html.tpl.php and result.html.tpl.php
find this code
if($field->fieldvalue != ""){
you can try to change it to
if($field->fieldvalue > 0){
and test to see if it work
Thanks
Dam
Please Log in or Create an account to join the conversation.
- aimztech
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 0
9 years 10 months ago #65698
by aimztech
Replied by aimztech on topic extra fields to appear in one line
I would like to rephrase my question again.
Core field has size option sqft or sqmt
I want to add different size units like sq yards or kanal or marla
I add an extra field of land size which is textarea input field
I add another extra field of list dropdowns of sq yards or kanal or marla, right.
My question is I want both the field the textarea input field and the unit field to appear side by side not like in picture question1.jpg but I would like to have them appear as question1b.jpg
I hope I am able to clarify my question.
Regards
Core field has size option sqft or sqmt
I want to add different size units like sq yards or kanal or marla
I add an extra field of land size which is textarea input field
I add another extra field of list dropdowns of sq yards or kanal or marla, right.
My question is I want both the field the textarea input field and the unit field to appear side by side not like in picture question1.jpg but I would like to have them appear as question1b.jpg
I hope I am able to clarify my question.
Regards
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.