forked from bembelimen/Joomla-Intro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
63 lines (41 loc) · 2.2 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
CONTENTS OF THIS FILE
---------------------
* Introduction
* Installation
* Configuration
INTRODUCTION
------------
This small Plugin allows you to set an Introsite to your Joomla! 2.5. This Introsite will show when the User visit your Frontpage the first time.
The Plugin will set an Cookie, so the Introsite will not show again until the browser get closed.
The Introsite is not indicated on Sublinks. This is done for Searchengines, because they should not list the intro content for every link on the searchresults.
INSTALLATION
------------
Install as usual...
see http://docs.joomla.org/Installing_an_extension
CONFIGURATION
-------------
Goto Extensions => Plug-in Manager and activate the Plugin. Now you've got two ways to set your individual Introsite.
The first way:
Open the Plugin in the Plug-in Manager. On the right side you will see an textarea, where you can put in the HTML for your Introsite.
You don't have to work with head or body, because the Plugin will inject your Code to the component.php of your Template, so the html structure of your Template will be used.
The second way:
You can work with your own intro.php which have to be stored in your templatefolder. The Plugin check the path and include the intro.php, if there one.
In this intro.php you have to set the head by your own and can inject CSS, Scripts, or what ever you want to use in your intro.
Your own intro.php can look like the following example
<?php
/**
* @package Joomla.Site
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/your.css" type="text/css" />
</head>
<body>
<div id="intro">Introsite with separat intro.php in the templatefolder</div>
</body>