Crysy
|
Hi,
How i can add position 5 in left and position 6 in wright in 4 and 5 column ?
Like this whebsite : www.nrha.com
Thank you for your help.
Crysy
|
|
jrgweb
|
Hey Crysy - You need to add 2 positions.
Edit the templateDetails.xml file as follows:
<position>leftside</position>
<position>rightside</position>
Then edit the index.php file as follows: (this is an example only. your code may be different)
<body class="<?php echo $pageclass ? $pageclass : 'default'; ?>" >
<div id="art-main" class="<?php echo $pageclass ? $pageclass : 'default'; ?>">
<div class="art-sheet clearfix <?php echo $pageclass ? $pageclass : 'default'; ?>">
<header class="art-header <?php echo $pageclass ? $pageclass : 'default'; ?>"><?php echo $view->position('position-30', 'art-nostyle'); ?>
<div><?php echo $view->position('leftside'); ?></div>
<div><?php echo $view->position('rightside'); ?></div>
<div class="art-shapes">
</div>
Then create 2 custom classes as follows:
.left {
margin-left: -60px;
}
.right {
float: right;
margin-right: -60px;
margin-top: -270px;
}
You'll get something like this:
http://joomlapageclass.jrgweb.net/
This was just a quick example. You can achieve this in a few differet ways.
|
|
Crysy
|
Hi Jrgweb !
Thank you for your answer !
But can you help me for insert position :
this is my code :
</head>
<body>
<div id="art-main">
<header class="art-header"><?php echo $view->position('position-30', 'art-nostyle'); ?>
<div class="art-slider art-slidecontainerheader" data-width="1000" data-height="300">
<div class="art-slider-inner">
<div class="art-slide-item art-slideheader0">
</div>
<div class="art-slide-item art-slideheader1">
</div>
</div>
</div>
I make some tests but nothink work fine....
Thank you for your help.
Crysy
|
|
jrgweb
|
@Crysy - Have you added any new positions and do you know how to edit the index.php?
|
|
Crysy
|
Hi jrgweb,
Yes i try to put in index.php :
</head>
<body>
<div id="art-main">
<header class="art-header"><?php echo $view->position('position-30', 'art-nostyle'); ?>
<div><?php echo $view->position('leftside'); ?></div> FOR EXEMPLE
<div><?php echo $view->position('rightside'); ?></div>
<div class="art-slider art-slidecontainerheader" data-width="1000" data-height="300">
<div class="art-slider-inner">
<div class="art-slide-item art-slideheader0">
</div>
<div class="art-slide-item art-slideheader1">
</div>
</div>
</div>
Every where i try .... but not work fine.
Can we try send my template by mail ?
Thank you for your help.
Crysy
|
|
jrgweb
|
@Crysy - email me at jrgweb@ gmail.com
|
|
Crysy
|
Many Many thank to Jrgweb for his help !!
Thank you agin for all.
Crysy
|
|