Basic Instructions | Intermediate Instructions | Advanced Instructions
Basic Instructions
Creating a Standard Content Page
- Open a menu in the menu manager.
- Click the New button to add a menu item.
- Set the menu item type to CW Quick Pages > Page
- In the menu item's CW Quick Pages tab, enter the page title and page content.
- Save the menu item.
Creating a Contact Page
- Open a menu in the menu manager.
- Click the New button to add a menu item.
- Set the menu item type to CW Quick Pages > Contact
- In the menu item's CW Quick Pages tab, enter the page title and page content.
- In the menu item's Contact Info tab, enter the contact information to be displayed. *
- Save the menu item.
Creating an Event Page
- Open a menu in the menu manager.
- Click the New button to add a menu item.
- Set the menu item type to CW Quick Pages > Event
- In the menu item's CW Quick Pages tab, enter the page title and page content.
- In the menu item's Event Info tab, enter the event information to be displayed. *
- Save the menu item.
Intermediate Instructions
Overriding the Layout of a Standard Content Page
- Copy
/components/com_cw_quickpages/views/page/tmpl/default.php
to/templates/{YOUR_TEMPLATE}/html/com_cw_quickpages/page/default.php
- Modify as needed.
Adding Multiple Layouts for Standard Content Pages
- Copy
/components/com_cw_quickpages/views/page/tmpl/default.php
to/templates/{YOUR_TEMPLATE}/html/com_cw_quickpages/page/default.php
- Rename the file to something other than
default.php
. (Example:newlayout.php
) - Modify as needed.
- Repeat as needed with different layout names.
- When adding a new standard content page, in the CW Quick Pages tab of the menu item, select the layout you wish to use.
Overriding the Layout of a Contact Page
- Copy
/components/com_cw_quickpages/views/page/tmpl/contact.php
to/templates/{YOUR_TEMPLATE}/html/com_cw_quickpages/page/contact.php
- Modify as needed.
Adding Multiple Layouts for Contact Pages
- Copy
/components/com_cw_quickpages/views/page/tmpl/contact.php
to/templates/{YOUR_TEMPLATE}/html/com_cw_quickpages/page/contact.php
- Rename the file to something other than
contact.php
. (Example:newcontactlayout.php
) - Modify as needed.
- Repeat as needed with different layout names.
- When adding a new contact page, in the CW Quick Pages tab of the menu item, select the layout you wish to use.
Overriding the Layout of an Event Page
- Copy
/components/com_cw_quickpages/views/page/tmpl/contact.php
to/templates/{YOUR_TEMPLATE}/html/com_cw_quickpages/page/contact.php
- Modify as needed.
Adding Multiple Layouts for Event Pages
- Copy
/components/com_cw_quickpages/views/page/tmpl/event.php
to/templates/{YOUR_TEMPLATE}/html/com_cw_quickpages/page/event.php
- Rename the file to something other than
event.php
. (Example:neweventlayout.php
) - Modify as needed.
- Repeat as needed with different layout names.
- When adding a new event page, in the CW Quick Pages tab of the menu item, select the layout you wish to use.
Advanced Instructions
Creating Your Own CW Quick Pages Menu Item Type
This requires at least a basic understanding of Joomla! MVC architecture.
The quickest way to do this is to use the Contact menu item type as an example. Notice that in /components/com_cw_quickpages/views/page/tmpl
there are 2 files for the contact layout: contact.php
and contact.xml
.
The file contact.php
defines the layout of the page, while contact.xml
defines the menu item type as well as the parameters to be used in the menu item.
- Copy
/components/com_cw_quickpages/views/page/tmpl/contact.php
to/templates/{YOUR_TEMPLATE}/html/com_cw_quickpages/page/contact.php
- Copy
/components/com_cw_quickpages/views/page/tmpl/contact.xml
to/templates/{YOUR_TEMPLATE}/html/com_cw_quickpages/page/contact.xml
- Rename
contact.php
andcontact.xml
in your template to some other name, making sure that everything but the file extension is the same. (Example:newtype.php
andnewtype.xml
) - Mofiy the new PHP file and XML file as needed.
- Click here for more more information on adding parameters (fields) in the XML file.
* Note: To display a map, you must enter the latitude/longited coordinates. These can be obtained at http://www.latlong.net/.