Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • Bob Meetin Friend
    #163701

    I need to add a custom module for ja droid that sits directly above the main body so that the template behaves like a standard two column template with the special module (call it user20 whatever) sitting above the body and the right column starting at the same position as the top of the new module. The default user5/user6 will not work. See the diagram.

    khoand Friend
    #390256

    Hi,
    – You add this code into default layout (login backend–>Extensions–>Template manager–>ja droid–>goto layout tab–>edit default layout)

    <block name="content-top">content-top</block>
    before


    <blocks name="middle" colwidth="33" main-inner="3">

    – You set position of module is “content-top”

    Bob Meetin Friend
    #390280

    Silly me, I rotated the image to add text for right column then forgot to rotate it back. You got it right anyway, thanks.

    This worked, but rather than add the code before the middle column blocks name I added it as the first items after <blocks …>. I tried adding it before but it would not display. It’s working now wonderfully, thank you.

    khoand Friend
    #390353

    Sorry about my mistake. You add the code into middle blocks.

    Bob Meetin Friend
    #422330

    I had another opportunity to add a custom module for droid so came back to this post.

    1) I created 2 sample modules and positioned them as “above-component” and “below-component”, left the titles enabled.
    2) Disabled everything in “left” position just to remove anything that might cloud the picture.
    3) Modified the layout of this vanilla-ish template, added the sample blocks in various positions around middle so that it looks like:

    <block name=”above-component”>above-component</block>
    <blocks name=”middle” colwidth=”33″ main-inner=”3″>
    <block name=”below-component”>below-component</block> <!– This looks wrong but I could not get it to display so tried –>
    <block name=”right1″>left</block>
    <block name=”right2″>right</block>
    </blocks>
    <block name=”below-component”>below-component</block>

    Result – The positions are not displaying anywhere in the template. See: http://www.dottedi.us/18 (this is a demo for testing). I looked at the html source and don’t see anything that is hidden. Is there another config file which must be edited to make the positions display? Anything else missing?

    khoand Friend
    #422416

    1) I created 2 sample modules and positioned them as “above-component” and “below-component”, left the titles enabled.

    You add this code into default layout


    <block name="content-top">above-componnet</block>
    <block name="content-bottom">below-component</block>

    after

    <blocks name="middle" colwidth="33" main-inner="3">

    2) Disabled everything in “left” position just to remove anything that might cloud the picture.

    Do you mean remove left position?

    Bob Meetin Friend
    #422436

    Left column – I disabled modules in the left position, no more, for a cleaner look.

    It wasn’t clear to me that the position names were reserved, so I had just assumed that I could use the same syntax. That being said, renaming to content-top and content-bottom did the trick.

    Also knowing this I did a search of the file system for content-top and found the file that controls the blocks, ~/www/plugins/system/jat3/base-themes/default/page/default.php. That will help for other reasons.

    Thanks again.

    khoand Friend
    #422545

    To add/remove positions, you read http://wiki.joomlart.com/wiki/JA_T3_Framework_2/Guides#Layout_Variations.
    Could you give me username+password of your backend? I will check it

    Bob Meetin Friend
    #422614

    We’re in good shape now, so really no need to go any further. Knowing that the name was literally defined, I call it reserved, was the key:

    <block name="above-component">above-component</block> <!-- Fail -->
    <block name="content-top">above-component</block> <!-- Success -->

    Now I also understand where to change the source for the block name as well.

    Thx…

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 2 voices, and was last updated by  Bob Meetin 13 years ago.

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