OS Property support center

Is feature on propertyedit.php fronthead

  • Imotrust
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 9 months ago - 10 years 9 months ago #47626 by Imotrust
Hello, i want to add the ability of agent to select if is feature or not on new property page

i add this code
Code:
<div class="control-group"> <label class="control-label"> <span class="hasTip" title="<?php echo JText::_('OS_FEATURED');?>::<?php echo JText::_('OS_FEATURED');?>"> <?php echo JText::_('OS_FEATURED')?> * </span> </label> <div class="controls"> <?php echo $lists['featured']; ?> </div> </div>

But when i save this dont work
Can you help me?


Attachments:
Last edit: 10 years 9 months ago by Imotrust.

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

More
10 years 9 months ago #47630 by Mr. Dam
Replied by Mr. Dam on topic Is feature on propertyedit.php fronthead
Hi,
<?php echo $lists; ?> is array, if you only show this, it won't work.
Please check function save function in file classes > listing.php to see the variable isFeatured is uploaded or not
Thanks
Dam

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

  • Imotrust
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 9 months ago - 10 years 9 months ago #47656 by Imotrust
Replied by Imotrust on topic Is feature on propertyedit.php fronthead
i Cant Find,
can you see?
Attachments:
Last edit: 10 years 9 months ago by Imotrust.

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

More
10 years 9 months ago #47661 by Mr. Dam
Replied by Mr. Dam on topic Is feature on propertyedit.php fronthead
Hi,
Why do you sent me this file? In OS Property, agent can't change the Featured status at front-end. So you need to hack into 2 places to add this feature
1. Function edit : Use to show the property modification form
2. Function save : Use to save property information
Thanks
Dam

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

Moderators: Mr. DamNguyen Phu Quan