OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Changing a property automatically unpublishes it ? (0 viewing) 

Joomla Real Estate

Go to bottom Favoured: 0

Changing a property automatically unpublishes it ?

svherpen (Visitor)
Posts: 0
graphgraph
User Offline
Changing a property automatically unpublishes it ? 11 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.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:Changing a property automatically unpublishes it ? 11 Years ago
Karma: 102  
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.
svherpen (Visitor)
Posts: 0
graphgraph
User Offline
Re:Changing a property automatically unpublishes it ? 11 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
»