OS Property support center

Is feature on propertyedit.php fronthead

  • Imotrust
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 1 month ago - 11 years 1 month 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?


Last edit: 11 years 1 month ago by Imotrust.

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

More
11 years 1 month ago #47630 by Dang Thuc Dam
Replied by Dang Thuc 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
11 years 1 month ago - 11 years 1 month ago #47656 by Imotrust
Replied by Imotrust on topic Is feature on propertyedit.php fronthead
i Cant Find,
can you see?
Last edit: 11 years 1 month ago by Imotrust.

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

More
11 years 1 month ago #47661 by Dang Thuc Dam
Replied by Dang Thuc 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: Dang Thuc DamNguyen Phu Quan