-
AuthorPosts
-
Hung Dinh Friend
Hung Dinh
- Join date:
- September 2014
- Posts:
- 4408
- Downloads:
- 11
- Uploads:
- 189
- Thanks:
- 309
- Thanked:
- 3310 times in 3 posts
October 26, 2011 at 7:05 pm #170338Userguide – JA Masshead Module for Joomla 1.7JA Masshead Module is used to display masshead title like the JoomlArt masshead. Title and description could be specify configured for any page
Module ConfigurationIf you are new to Joomla!, please follow the instruction in the guide below to install module in your Joomla! 1.7 system.
How to install module for joomla 1.7
Back-end Setting
Parameter Explanation
- Default Title: set the default tile for this module. The title will be displayed incase the Extra configuration field is not set
- Default Description: set the default descriptionfor this module. The title will be displayed incase the Extra configuration field is not set
- Configuration Condition: This field allows you to assign masshead to display in specific pages by using Itemid of that pages
The field uses 2 format:
Format 1:[Masshead option="com_name" view="view_name" layout="layout_name" task="task_name" id="id" title="Title" ]Description here[/Masshead]
Format 2:
[Masshead Itemid="page_id_1,page_id_2,..." title="Title" ]Description here[/Masshead]
Front-end Appearance
Note: There are some cases that you should pay attention when configuring the module.
- If configuration field is empty:
- If this is an article view: use Article title as Mass title, use default description set in backend of the module to display as Mass description
- If this is an Menu view: use page heading as Mass title, use default description set in backend of the module to display as Mass description
- If this is an Menu view and the page heading of the menu = null: use default title and description set in backend of the module to display as Mass title and descript
Example:
Example:
To view Page heading of menu, from backend of your site, navigate to: Menus –> Main menus –> select a Menu –> Page Display Options –> Page heading
Front-end Appearance
Example:
Front-end Appearance
- If configuration field is found:
- Use that value
- Support multiple config, each config on a line; eg:
- If config set multiple condition, the module will return value in the first condition true
- The Mass title and description should be displayed the same in the all defined page id in the back-end of masshead module
- If config set multiple condition, the module will return value in the first condition true
- Validate masshead data, if each part of masshead data is empty, it is assigned to default value:
- If masshead title is empty: masshead title = default title
- If masshead description is empty: masshead description = default description
- Use extra parameters
- Extra parameters can put in config as name=”value” and access through variable $masshead[‘params’][‘name’] by overwritting module layout in template
- Access the param background:
[Masshead option="com_name1" view="view_name1" layout="layout_name1" task="task_name1" id="id1" title="Title1" ]Description 1 here[/Masshead]
[Masshead option="com_name2" view="view_name1" layout="layout_name2" task="task_name2" id="id2" title="Title2" ]Description 2 here[/Masshead]
[Masshead Itemid="page_id1_1,page_id1_2,..." title="Title page 1" ]Description page 1 here[/Masshead]
[Masshead Itemid="page_id2_1,page_id2_2,..." title="Title page 2" ]Description page 2 here[/Masshead]
Example 1: using format 1:[Masshead option="com_name1" view="view_name1" layout="layout_name1" task="task_name1" id="id1" title="Title1" ]Description 1 here[/Masshead]
How to get condition values for: option, view, layout ….
Firstly, you have to disable Search Engine Friendly URLs option. To do that, from the back-end of your site, go to: Site –> Global Configuration –> then navigate to SEO Settings —> set No for field: Search Engine Friendly URLs
When done, from front-end, go to page where you want to add condition in masshead module, you will see the condition of the page where you can get to configure for the masshead module.If you add all the conditions so the code for the Configuration Condition should be:
[Masshead option="com_content" view="category" layout="blog" id="84" title="Enter your mass title" ]Enter your mass description[/Masshead]
Example 2: using format 2:
[Masshead Itemid="page_id1_1,page_id1_2,..." title="Title page 1" ]Description page 1 here[/Masshead]
How to get condition values for: Itemid?
You do the same with the guide in the Example 1 but now, the condition is page_id.If you decide to add the condition in the module so the code for the Configuration Condition should be:
[Masshead Itemid="238,499" title="Using Format 2" ]Display Masshead in defined page id = 238 and 499[/Masshead]
Example:
[Masshead Itemid="238"]Display Masshead in defined page id = 238 and 499[/Masshead]
Example:
[Masshead Itemid="238" title="Using Format 2"][/Masshead]
[Masshead Itemid="page_id" title="Title" background="image url"]Description[/Masshead]
[PHP]<div class=”jamasshead” <?php if(isset($masshead[‘params’][‘background’])): ?> style=”background-image: url(<?php echo $masshead[‘params’][‘background’] ?>)” <?php endif; ?>> [/PHP]
Example:[Masshead Itemid="238" title="Using Format 2r" background="images/stories/masshead/mh-5.jpg"]Display Masshead in defined page id = 238 and 499[/Masshead]
Front-end
John Wesley Brett ModeratorJohn Wesley Brett
- Join date:
- July 2013
- Posts:
- 2142
- Downloads:
- 17
- Uploads:
- 26
- Thanks:
- 175
- Thanked:
- 645 times in 426 posts
February 4, 2012 at 1:39 pm #436916View the JA Tiris User Guide for more information
1 user says Thank You to John Wesley Brett for this useful post
-
AuthorPosts
This topic contains 2 replies, has 2 voices, and was last updated by John Wesley Brett 12 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum