OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Changing a property automatically unpublishes it ? (0 viewing) 
RealEstateManager component support
Go to bottom Favoured: 0
TOPIC: Changing a property automatically unpublishes it ?
#10264
svherpen (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Changing a property automatically unpublishes it ? 3 Years ago Karma: 0  
I noticed that when I make a change to a property, after saving the changes makes the property go into state unpublished and unapproved.
Is this behavior by design, can this be switched off (either via a setting or manually)?

It is kind of irritating if you forget to publish and approve the property since it will not be listed in the frontend.

Regards,
Sjaak
 
Logged Logged  
  The administrator has disabled public write access.
#10275
admin (Admin)
Admin
Posts: 4874
graph
User Offline Click here to see the profile of this user
Re:Changing a property automatically unpublishes it ? 3 Years ago Karma: 61  
Hello Sjaak,

That work by default.
In pro version you may set from what users group content will publish and appove without admin check

{site}/administrator/componewnts/com_realestatemanager/administrator/realestatemanager.php
function
editHouse

in it

find code
Code:

        // initialise new record
        $house->published = 0;
        $house->approved = 0;



and replace to:
Code:

        // initialise new record
        $house->published = 1;
        $house->approved = 1;



Please first backup that file

Thanks,
Andrew
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
#10277
svherpen (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:Changing a property automatically unpublishes it ? 3 Years ago Karma: 0  
Thanks Andrew,

There should also be a change to the next bit of code:

if ($realestatemanager_configuration['publish_on_add']['show']) {
$house->published = 1;
} else {
$house->published = 0;
}
if ($realestatemanager_configuration['approve_on_add']['show']) {
$house->approved = 1;
} else {
$house->approved = 0;
}

Where in both cases the else $house-> variable should be set to 1
Without that change it still does not auto publish and approve. But now it's working...

Thanks for the fast response.

Regards,
Sjaak
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?