I have always thought that my users should first and foremost think of Jomres as a booking toolkit. Whilst I can provide you with the basic elements of a booking website, I leave it to my users to build their own unique sites using the extensive development tools and features available.

This blog post is a quick reminder to my users, prompted by a ticket, about a little known feature in Jomres :

Including script content in another template

 

This feature is incredibly useful, but surprisingly under-utilised, so let me put that right now.

Many people know about using shortcodes to add Jomres items to various pages/modules/widgets however this feature allows you to put one 06000 task's content into a different Jomres template.

It uses more or less the same syntax as the shortcodes, so there's nothing new to learn and this feature means that you don't need to make script changes to totally restructure a template's layout.

Go ahead and see the bottom example in the manual page, it shows you how to have a completely different property details page without needing to edit any scripts, just a template file.

To see a list of possible shortcodes, see this page in the manual. Note that this article page is not exhaustive because each site is likely to have different plugins installed, therefore each site's possible shortcode list will be different. To see your own Jomres installation's go to Administrator > Jomres > Tools > Shortcodes.

Beside the obvious "no need to modify scripts" advantage of this development feature, there's the extra advantage that you can build complete template sets of Jomres templates, utterly restructuring how it looks and feels, and then copy those templates from one server to another very easily. This makes the templates update-safe using template overrides and ridiculously simple to copy to another site if you have a network of Jomres sites.

 

 

 

Documentation