Logo
  • Home
  • Products
    • JEvents
      • JEvents Feature Summary
    • Club Addons
      • Club Addon Features
      • RSVP Pro
      • Managed Locations
      • Managed People / Resources
      • Club Themes
        • Iconic
        • Extplus
        • Flatplus Theme
        • Ruthin
        • Map
      • Social Networking
      • Silver Addons
      • Bronze Addons
      • Free Addons
  • Downloads
    • Download JEvents
    • Translations
      • Addon Translations
    • Gold Downloads
    • Silver Downloads
      • Club Themes
    • Social Networking
    • Newsletter Integrations
    • Bronze Downloads
    • Free Downloads
  • Support
    • Forums
    • Documentation
      • JEvents
      • Club Addons
    • Contact Us
  • JEvents Club - Buy
  • Blog
  • FAQs
    • Latest Events - Custom Format Strings
    • Event Detail - Layout Editing
    • Importing Events in CSV format
    • Quick Install Guide
    • Getting Started with Calendars and Categories
    • Custom Module Positions in JEvents
    • Custom Overrides of Language Strings
    • Customising Layouts
    • Time Formatting in JEvents
    • Recreate the Iconic Layout from the Demo Site
    • How can I remove the @ symbol?
    • Time formatting is not working everywhere?
    • Setting Cron Jobs - Non Technical Explanation
    • Joomla 1.5 to 3.x Migration
    • Something Went Wrong!
    • Maps not appearing
  • Demo
    • All Events
    • Events at the Zoo
    • Events at the Opera
    • Date Range
    • Location List
    • Major Events
  • LOGIN
You are here: Home Docs News JEvents and JA Wall Integration
18
April
2016

Adding a Newsleter Signup of Other Module to Your Offline Page

Before you launch your site have you ever wished you could show a Joomla module e.g. a Newsletter signup to gather interest of offer more information to visitors, possibly  a countdown to the launch.

You can do this fairly eaisily (but it does require a small coding change to your template).

 

1. Edit the file /templates/YOURTEMPLATE/ofline.php (or if that doesn't exist edit the file /templates/system/ofline.php

2. Add this code

<h2>Launching soon - please sign up for more information</h2>
<?php
    jimport("joomla.application.module.helper");
    jimport("joomla.plugin.helper");
    jimport('joomla.filesystem.folder');
    jimport('joomla.filesystem.file');

    $document = JFactory::getDocument();
    $renderer = $document->loadRenderer('module');

    $result = null;
    $modules = JModuleHelper::getModules("offline");
    foreach ($modules as $module) {
        $content = $renderer->render($module, array(), $result);
        echo $content;
    }
?>

3. Ad your module to a custom module position called 'offline' and set it to display on all pages.

Posted by:

Geraint Edwards

Categories: Tutorials

  • Cookies
  • Contact Us
  • Sitemap

JEvents is brought to you by GWE Systems Ltd.   GWE Systems Ltd is Registered in England and Wales under Company Number: 06190845.

Registered Office: Ysgubor Uchaf, Llanfwrog, Ruthin, LL15 2AP, United Kingdom.

Copyright 2022 © JEvents - Events for Joomla

  • Home
  • Products
  • Downloads
  • Support
  • JEvents Club - Buy
  • Blog
  • FAQs
  • Demo
  • Home
  • Products
  • Downloads
  • Support
  • JEvents Club - Buy
  • Blog
  • FAQs
  • Demo

Login Form

  • Forgot your password?
  • Forgot your username?
  • Create an account

JEvents Club Access Code

When you are logged in as a JEvents club member you will get an access code that will allow you to update your club addons using the Joomla updater.

Announcing EasyLayouts

GWE Systems Ltd, the company behind JEvents, is excited to announce the preview release of EasyLayouts - the tool that makes it easy to create layouts for your Joomla content and custom fields.

See our blog post for an exciting special offer to our Gold Members