WebsiteBaker Support (2.12.x) > Modules

MiniGallery not loading

(1/1)

tobyw7:
I am wondering how to load MiniGalleryv2 on a page. I have set the page type to the module gallery and even uploaded some pages.
I have set the page here http://shillingtoncong-church.org.uk/pages/gallery.php

Page title is set in the Settings.

Do I need a short code or something in the template file?

I saw some messages with people having problem since update to 2.12.2?

The template file is converted to WB template from a regular template and I am using the following to load in the page "body"

<?php page_content(1); ?>

dbs:
Hi, you have this line in the <head> of your index.php?
--- Code: ---register_frontend_modfiles('css');
--- End code ---

CodeALot:
(No he did not.)

In fact, copying an existing HTML-file, adding a page_content(1) to it and calling it a WB-template is not enough.
 
What I suggest you do first: compare the structure of a 'real' WB template index.php to that of your HTML file. Copy the essential lines to make it function as a WB-template.
(For instance:

--- Code: ---<?php 
if (function_exists('register_frontend_modfiles')) {
        register_frontend_modfiles("jquery");
register_frontend_modfiles('css');
register_frontend_modfiles('js'); 

    ?>
--- End code ---
)
If you have no idea how to do that, feel free to e-mail me your 'template' :)

tobyw7:

--- Quote from: CodeALot on May 18, 2020, 11:22:30 AM ---(No he did not.)

In fact, copying an existing HTML-file, adding a page_content(1) to it and calling it a WB-template is not enough.
 
What I suggest you do first: compare the structure of a 'real' WB template index.php to that of your HTML file. Copy the essential lines to make it function as a WB-template.
(For instance:

--- Code: ---<?php 
if (function_exists('register_frontend_modfiles')) {
        register_frontend_modfiles("jquery");
register_frontend_modfiles('css');
register_frontend_modfiles('js'); 

    ?>
--- End code ---
)
If you have no idea how to do that, feel free to e-mail me your 'template' :)

--- End quote ---

Ah yes, sorry... back when I ported the template this wasn't required but looking back over the old documentation this now makes sense. https://help.WebsiteBaker.org/en/designerguide/enhanced-template-elements.php

I've now added the additional elements and it's now working :)

Thanks both.

Navigation

[0] Message Index

Go to full version