Galaxy specific points of extension
Once published, it is possible for the Galaxies site specific database and front-end scripts to be modified although the implications of this should be considered.
Be aware that during upgrades, only the scripts in the default public_html template set are updated and updates will be responsible for updating your customised scripts.
When a new Galaxies site is created, the template site directory is copied, and a new instance created on your server. All PHP files in this directory will be a reference to a copy of the script in
There are two strategies for templates updates:
- Create a new template set in
public_html_templatesand select it in your Galaxies site's site settings
- Overwrite the reference script in the
Typically, the master copies of files can be found in the following directory:
The Galaxies site reference files can be found in the following directory:
Custom CSS files can be imported into the Galaxies site using the “Import CSS” and “Export CSS” buttons in the Galaxies site designer.
Please note: that as the CSS file must be parsed before being used by Jadu, please ensure that all statements are finished with a semicolon and all properties are written long hand.
Creating custom functionality for a Galaxies site CMS is the same in principle as for Continuum CMS. Please refer to the "Points of extension" chapter.
Note that all files are stored in the same directories as Continuum CMS, regardless of whether the custom functionality will eventually be used within Continuum CMS or a Galaxies site CMS. However all database additions need only be made to the Galaxies site CMS database.
Creating Galaxies Site Widgets
Site widgets in Jadu Galaxies sites are snippets of code that can be embedded within the columns of the Galaxies site.
Widgets are accessed in the Galaxies Designer using the “Open widget lightbox” button. Custom widgets are uploaded using the file input on the “Upload” tab.
When creating a widget its important to bear the following in mind:
- The file name is used to create the widget name in the Control Center.
For example, the file “about_us_widget.php” would be saved as “About us widget”.
- A description of what your widget does should be contained within a HTML comment at the top of the script.
If you need your widget to make use of the widget styles applied using the Galaxies Designer, you must use the following template.
<div class="widget_wrap"> <div class="widget"> <div class="navheading">My example heading</div> <ul> <li class="widget_link">Example list item</li> </ul> <p class="widget_p">Example paragraph.</p> </div> </div>