Forum


Customising layout of composite_property_details_notabs.html

More
2 months 2 weeks ago #47709 by Ben Woodcock
Hi

I'm part way through customising composite_property_details_notabs.html (making sure to override it).
At the end of the file there is a list of 'More stuff that can be used on this page' including:
{POSTCODE}
{TELEPHONE}
{FAX}
{STREET}
{TOWN}
{REGION}
{COUNTRY}

I've added these into my customised code yet they are showing as blank in the rendered page i.e. they are being recognised as code (they are not showing up as text) but nothing is being returned.
Any reason for this?
Similar codes are working fine in property_header.html.

Thanks

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

More
2 months 2 weeks ago #47710 by Ben Woodcock
I have resolved this by adding the following code to an overridden j06000viewproperty.class.php
If there is a simpler way it'd be good to know.

$output[ 'PROPERTY_NAME' ] = $current_property_details->property_name;
$output[ 'STREET' ] = $current_property_details->property_street;
$output[ 'TOWN' ] = $current_property_details->property_town;
$output[ 'REGION' ] = $current_property_details->property_region;
$output[ 'COUNTRY' ] = $current_property_details->property_country;
$output[ 'POSTCODE' ] = $current_property_details->property_postcode;
$output[ 'TELEPHONE' ] = $current_property_details->property_tel;
$output[ 'FAX' ] = $current_property_details->property_fax;
$output[ 'EMAIL' ] = $current_property_details->property_email;

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

More
2 months 2 weeks ago #47711 by Vince Wooll
It's many years since that template was created, it's quite possible that those items are redundant now, Ben. I'd need to have a look at the code sometime to be sure.

Since it was written, the property header script was extended much more, and the property details script rewritten several times, meaning that the address is never used in that area now.

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

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

More
1 week 3 days ago #47771 by Corne
Good day

could you please tell me where in the viewproperty.class did you add that code, to witch line?

thank you

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

More
5 days 22 hours ago #47774 by Vince Wooll
Just a reminder folks, this is the community support forum, where users get together and support each other. If you'd like support from me, please raise a ticket.

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

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

More
5 days 22 hours ago - 5 days 22 hours ago #47775 by Ben Woodcock
Hi

After line 112, which is: $pageoutput = array();
Last edit: 5 days 22 hours ago by Ben Woodcock.

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

More
5 days 18 hours ago #47776 by Corne
Thank you, its working, wanted to show the property type in the details.

$output[ 'PROPERTY_TYPE' ] = $current_property_details->property_type_title;

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

Powered by Kunena Forum

ABOUT US

vince picDeveloped and maintained by Vince Wooll, 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. Between 2010 and 2018 he was an integral part of the project and made many significant contributions.

Whilst not formally part of the Jomres project, Rodrigo Rocco and Vince 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 Valentina Template Override Package.

Jomres and the Jomres Logo is trademarked and can't be used without written consent from the owner.

www.jomres.net 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.