OS Property support center

Collect extra field to display the top of detail

  • Pierre A. Martin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #54106 by Pierre A. Martin
Collect extra field to display the top of detail was created by Pierre A. Martin
Collect extra field to display the top of the detail page.

hello,
I am a beginner in php and mysql.
In the admin OSProperty, I created an extra field "available" with two choices "now" or "to be agreed".
I would like to edit the field to show at the top of the page (see picture attached)

After the lines in the file details.html.tpl.php "blue theme"

<ul class = "attribute-list">
<? php
if ($ row-> ref! = "") {
I need regular.>
<li> <strong> R & eacute; f: </ strong> <span> ref;> </ span> </ li> <? php echo $ row-?>?
<? php}?>
<li> <strong> <? php echo JText :: _ ('os_type')?> </ strong> <span> type_name> </ span> </ li> <? php echo $ row-?>?
<li> <strong> <? php echo JText :: _ ('OS_CATEGORY')?> </ strong> <span> category_name> </ span> </ li> <? php echo $ row-?>?

I added the line

<li> <strong> <? php echo JText :: _ ('Available')?> <? php echo $ row->? </ strong> <span> field_option> </ span> </ li>

No results are displayed. Who can help me?

thank you.

Pierre A. Martin
Web project Manager

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

More
10 years 9 months ago #54122 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Collect extra field to display the top of detail
Hi,
Of course when you enter that code line, nothing show.
First, php doesn't allow format : <? php echo $ row->? </ strong> <span> field_option>
Second, what's the data source of that field?
Thanks
Dam

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

Moderators: Dang Thuc DamNguyen Phu Quan