To many options to Owners

8 months 3 weeks ago #47084 by José Luis
Hi Guys;
Playing around with Jomres configs, I realize there are to many Config Options for Property Owners, and are not global or override mode, not even when Default Property Configurations are in place.
I need to setup some of these configuration unavailable (readonly or disabled) for property owners, and control them through Default Property Configurations, to do this I use "readonly" attribute for text fields at j00501booking_form.class.php and others 501 triggers files.
I couldn't do it for buttons, here some examples

Maybe not the optimal solution, but this work fine for me.
$configurationPanel->setmiddle('<readonly="readonly" input type="url" class="inputbox form-control" size="50" name="cfg_externalBookingFormUrl" value=""'.$mrConfig[ 'externalBookingFormUrl' ].'" />');

How to do it for buttons?
$configurationPanel->setmiddle($booking_form_rooms_list_style); and
$configurationPanel->setmiddle($lists[ 'auto_detect_country_for_booking_form' ]); => $configurationPanel->setmiddle('YES'); This was my solution, but i know this is not right, I just "hide" the button and put 'YES' for guide me on the desire value, and controlling from Default Property Configurations

Another option is to modifying some html files but I don't know what files to modify to do this. Any help please?

It would be great if Default Property Configurations can have override mode .
8 months 3 weeks ago #47091 by Vince Wooll
I would suggest that you manually edit the 00501 scripts, copy them to remote_plugins/custom_code and rebuild the registry so that they're not overwritten by an update. There's no way to programatically remove/disable those options, José.

Follow me on twitter
Do not send me PMs, if you need to contact me use the ticket system.
Read this before you customise Jomres files
8 months 2 weeks ago #47093 by José Luis
Hi Vince, Thanks for replay.
I was Breaking apart Jomres for the last weeks, trying to do some customization for myself, and that was the best solution I found too, I checked the documentation and i founded what you said, I tested and it work very very good.
One last Question:
What happend if any of the 00501 script are updated, and i would like to use that update?
Maybe I have to re-edit the file/files, put it again in core-plugin folder and rebuild the registry again.
I'm fine with this option, i just wanna know if there is another way.
Thanks again.
8 months 2 weeks ago #47094 by Vince Wooll
I did already say, copy them to the remote plugins dir. This page will give you more insight into customisation.

Follow me on twitter
Do not send me PMs, if you need to contact me use the ticket system.
Read this before you customise Jomres files


Vince portrait smallaladar

Developed and maintained by Vince Wooll and Aladar Barthi, Jomres was initially conceived in early 2005 as a Mambo based solution to a client’s hotel management needs. While it wasn't originally expected to be an online booking system it quickly morphed into one as users requested more and more features.

As the number of feature requests grew Vince knew that he would need to dedicate more time to the project and in July 2005 Jomres was formally released as a commercial project. Since then, Jomres has become one of Mambo’s, and now Joomla’s, longest running projects. It has survived various versions of Mambo, then Joomla 1.0, 1.5, 1.6, 1.7, 2.5 and 3.

Aladar joined the project in 2010 after using Jomres for his own projects. He was active on the forum, helping other members of the community and eventually Vince invited him to join the team. He has since become an integral part of the project and has contributed significantly to it's development over the years.

Whilst not formally part of the Jomres project, Rodrigo Rocco and the team have become firm friends. Rod is a freelancer who specialises in doing custom work for Jomres users and developing custom plugins for the system that take advantage of it's modular design. He has built many useful extensions including his fabulous new Valentina Template Package.


Jomres and the Jomres Logo is trademarked and can't be used without written consent from the owner. is not affiliated with or endorsed by the Joomla! Project, Open Source Matters or the WordPress project. The Joomla! & WordPress names and logos are used under a limited license granted by Open Source Matters and the WordPress Projects.

© Copyright 2005 - 2018 Woollyinwales IT.