Connexionn bloc above the header


Author Message
hbhf

Posted: 11/8/2012
Quote message 

Hello,

I need to add a connetion bloc outside of the sheet on the top the page (above the header). Is this possible?

Thanks
 
jrgweb

Posted: 11/8/2012
Quote message 

Hey hbhf, Yes this is possible.

1st. create a new module position in the templateDetails.xml like so:
<position>topbanner</position>

2nd. In the index.php add the top line right below the <body> or below <div id="art-main" but above the art-sheet.

;
height: auto;
}

<body>

<?php echo $view->position('topbanner'); ?>
<div id="art-main">
<div class="art-sheet clearfix">
<header class="art-header clearfix"><?php echo $view->position('header', 'art-nostyle'); ?>
<div class="art-shapes">

</div>


3rd. Create a custom style and insert in the template.css file. A custom style may look something like this:

.art-connection {
background-color: transparent;
width: auto;
height: auto;
}

You can style it anyway you desire.
Now if you want to include the style in the index.php instead of joomle module class suffix, you can do this;

<body>

<div class="art-connection">
<?php echo $view->position('topbanner'); ?>
</div>
<div id="art-main">
<div class="art-sheet clearfix">
<header class="art-header clearfix"><?php echo $view->position('header', 'art-nostyle'); ?>
<div class="art-shapes">

</div>

To view your module positions, enter ?tp=1 in the url
This will only work if you have it activated in joomla template manager.


 
hbhbf

Posted: 11/8/2012
Quote message 

Thanks jrgweb. This seems complex! I'll try it any way :-)
 

Reply


NAME *
EMAIL
SMILIES :-) :( :-D 8-) :*) :-/ :-{} :-X :-O :-@ O:) :-P :-< :-( :-| ;-) 
CODES [Quote] [B] [I] [U] [Code] [IMG] 
BODY *  
VALIDATION *