OS Property support center

How to add text after extra field?

More
9 years 9 months ago #67291 by Ivan
View please screenshot
Attachments:

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

More
9 years 9 months ago #67300 by Mr. Dam
Replied by Mr. Dam on topic How to add text after extra field?
Hi Ivan
In this case, we only the solution is hard code to add text beside the extra field value.
Thanks
Dam

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

More
9 years 9 months ago #67392 by Ivan
Replied by Ivan on topic How to add text after extra field?
But still it can be done? remove from the array?
If you need to add something to the template file is not that hard
example -
echo $extra->value[1].'m2';
or not? :)

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

More
9 years 8 months ago #67427 by Mr. Dam
Replied by Mr. Dam on topic How to add text after extra field?
Hi Ivan,
In file: components > com_osproperty > templates > your_current_template > listing.html.tpl.php and result.html.tpl.php
Find
Code:
<?php echo $field->fieldvalue;?>
Above code is used to show value of extra field in Properties listing page, you can hard code to show m2 as below:
Code:
<?php echo $field->fieldvalue; if($field->id = 999){ echo "m2"; } ?>

999 is ID number of extra field, you can find it at Back-end > OS Property > Manage Extra fields

Good luck
Dam

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

More
9 years 8 months ago #67479 by ahmed
Replied by ahmed on topic How to add text after extra field?
when i add an extra field , it doesn't show up in the form when add a new property , i added extra field group called " client info " and created extra fields inside it , but the "client info tab" only appears but extra fields insides doesn't appear , can u please advise why ?

thanks

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

More
9 years 8 months ago #67482 by Mr. Dam
Replied by Mr. Dam on topic How to add text after extra field?
Hi,
You need to select Property type before the extra fields of chosen property type are shown
Thanks
Dam

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

Moderators: Mr. DamNguyen Phu Quan