Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • birkenstam Friend
    #186670

    Hi guys,

    i have created 2 layout a while ago.

    now i want to add some postions to my layout 2.

    please see screenshots: postion-16, postion-20, postion-21, postion-22 and footnav.
    i want to add to my layout2

    how can achive this?

    warm regards Birken


    1. layout1
    2. layout2
    pavit Moderator
    #489578

    Hi

    You need to edit some files to add new module positions at your layout

    Please take a look at the JaT3V3 Documentation about adding a module position to a layout.

    Hope that helps to solve your problem

    birkenstam Friend
    #489744

    oh very difficult to understand that documentaion, could anyone simplify the explantion?

    pavit Moderator
    #489750

    Hi

    To add new positions at the layout ( Layout2 ) you need to add a new spotlight in the layout.php

    Example

    goto this folder ja_brisktplsdefault.php

    Default Layout has these blocks

    <?php $this->loadBlock ('header') ?>

    <?php $this->loadBlock ('slideshow') ?>

    <?php $this->loadBlock ('masshead') ?>

    <?php $this->loadBlock ('spotlight-1') ?>

    <?php $this->loadBlock ('mainbody') ?>

    <?php $this->loadBlock ('spotlight-2') ?>

    <?php $this->loadBlock ('spotlight-3') ?>

    <?php $this->loadBlock ('navhelper') ?>

    <?php $this->loadBlock ('footer') ?>

    So you will need to add new blocks , in your case new spotlight blocks

    So add for example the spotlight 4 <?php $this->loadBlock (‘spotlight-4’) ?>

    Then in templatesja_brisktplsblocks copy the spotlight-1.php and rename it to spotlight-4.php

    open the file spotlight-4.php

    [PHP]defined(‘_JEXEC’) or die;
    ?>
    <?php if ($this->countModules(‘position-1’) || $this->checkSpotlight(‘spotlight-1’, ‘position-2, position-3, position-4’)) : ?>
    <!– SPOTLIGHT 1 –>
    <section class=”wrap ja-sl ja-sl-1″>
    <div class=”container”>

    <?php if($this->countModules(‘position-1’)) : ?>
    <div class=”<?php $this->_c(‘position-1’) ?>”>
    <jdoc:include type=”modules” name=”<?php $this->_p(‘position-1’) ?>” style=”raw” />
    </div>
    <?php endif; ?>
    <?php
    $this->spotlight (‘spotlight-1’, ‘position-2, position-3, position-4’) — change these to new positions name
    ?>
    </div>
    </section>
    <!– //SPOTLIGHT 1 –>
    <?php endif ?>[/PHP]

    Open templatesja_brisktemplateDetails.xml and add the new positions you created

    <position>position-18</position>
    <position>position-19</position>
    <position>position-20</position>
    <position>position-21</position>
    <position>position-22</position>
    <position>position-23</position>

    Hope was clear

    birkenstam Friend
    #490537

    Hi Pavit,

    thx for taking time for me 🙂

    does your example acctully work for me so i can just copy it?

    Warm regards Birken

    pavit Moderator
    #490542

    Hi

    I made an example ( working example ) to show how works the layout positioning

    Anyway before make any changes take a copy of the files that you will modify and try to play around the configuratons.

    birkenstam Friend
    #490544

    hi pavit,

    sorry for my stupidity but i dont understand your answer. will your example work for me?

    (i will backup offcourse before i mak any changes)

    Warm regards Birken

    pavit Moderator
    #490545

    <blockquote>will your example work for me?</blockquote>

    Yes it will works

    birkenstam Friend
    #490582

    Hi, i allredy have a spotlight-4.php and it looks like this, should i add something to it?
    [PHP]
    <?php if ($this->checkSpotlight(‘spotlight-4’, ‘position-13, position-14, position-15’)) : ?>

    <!– SPOTLIGHT 2 –>

    <section class=”wrap ja-sl ja-sl-4″>

    <div class=”container”>

    <?php

    $this->spotlight (‘spotlight-4’, ‘position-13, position-14, position-15’)

    ?>

    </div>

    </section>

    <!– //SPOTLIGHT 2 –>

    <?php endif ?>[/PHP]

    And for the deafult.php it look like this should i add this code <?php $this->loadBlock (‘spotlight-4’) ?> in it?

    [PHP] <body>

    <?php $this->loadBlock (‘header’) ?>

    <?php $this->loadBlock (‘slideshow’) ?>

    <?php $this->loadBlock (‘masshead’) ?>

    <?php $this->loadBlock (‘spotlight-1’) ?>

    <?php $this->loadBlock (‘mainbody’) ?>

    <?php $this->loadBlock (‘spotlight-2’) ?>

    <?php $this->loadBlock (‘spotlight-3’) ?>

    <?php $this->loadBlock (‘spotlight-4’) ?>

    <?php $this->loadBlock (‘navhelper’) ?>

    <?php $this->loadBlock (‘footer’) ?>

    </body>[/PHP]

    My xml file allredy have the postions in it.

    <position>position-0</position>
    <position>position-1</position>
    <position>position-2</position>
    <position>position-3</position>
    <position>position-4</position>
    <position>position-5</position>
    <position>position-6</position>
    <position>position-7</position>
    <position>position-8</position>
    <position>position-9</position>
    <position>position-10</position>
    <position>position-11</position>
    <position>position-12</position>
    <position>position-13</position>
    <position>position-14</position>
    <position>position-15</position>
    <position>position-16</position>
    <position>position-17</position>
    <position>position-18</position>
    <position>position-19</position>
    <position>position-20</position>
    <position>position-21</position>
    <position>position-22</position>
    <position>position-23</position>

    sorry but i am not a coder so i having dificulty to understand. so what should i add?

    warm regards

    pavit Moderator
    #490590

    Hi

    You have to works on default.php file

    You need to add the <?php $this->loadBlock (‘spotlight-4’) ?> to that file and save it

    birkenstam Friend
    #490688

    hi, i added <?php $this->loadBlock (‘spotlight-4’) ?> to ja_brisktplsdefault.php upöloaded it but no change.

    any ideas why?

    birkenstam Friend
    #490718

    i added the spotight 5 and 6 and fotnav and i can now see some thngs but for soem reason things in the modules dont line up properly. any ideas why?

    birkenstam Friend
    #490723

    hi again,

    after adding spotlight5 and 6 and footnav i got it nearly working please see picture lay1.jpg what i try to achive picture lay2.jpg is what i got it to look now.

    why is not lay2.jpg look like the same as lay1.jpg

    warm regards B


    1. lay1
    2. lay2
    phong nam Friend
    #490781

    Hi birkenstam,

    You did great with adding new blocks into Default layout. It seems that there ia still small issue with css styles of new assigned modules. Can you send me a PM with your admin for fixing your issue ?

    Regards,

    Leo

    birkenstam Friend
    #490933

    hi Leo.

    i have pmd you 😉

Viewing 15 posts - 1 through 15 (of 17 total)

This topic contains 17 replies, has 3 voices, and was last updated by  phong nam 11 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum