-
AuthorPosts
-
Bob Meetin Friend
Bob Meetin
- Join date:
- September 2014
- Posts:
- 130
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 6
- Thanked:
- 5 times in 1 posts
May 7, 2011 at 1:16 pm #163701I 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 Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 7, 2011 at 4:51 pm #390256Hi,
– 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 FriendBob Meetin
- Join date:
- September 2014
- Posts:
- 130
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 6
- Thanked:
- 5 times in 1 posts
May 8, 2011 at 5:15 am #390280Silly 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.
1 user says Thank You to Bob Meetin for this useful post
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 9, 2011 at 7:47 am #390353Sorry about my mistake. You add the code into middle blocks.
1 user says Thank You to khoand for this useful post
Bob Meetin FriendBob Meetin
- Join date:
- September 2014
- Posts:
- 130
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 6
- Thanked:
- 5 times in 1 posts
October 29, 2011 at 3:52 pm #422330I 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 Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
October 30, 2011 at 10:28 am #4224161) 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 FriendBob Meetin
- Join date:
- September 2014
- Posts:
- 130
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 6
- Thanked:
- 5 times in 1 posts
October 30, 2011 at 3:45 pm #422436Left 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 Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
October 31, 2011 at 10:12 am #422545To 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 itBob Meetin FriendBob Meetin
- Join date:
- September 2014
- Posts:
- 130
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 6
- Thanked:
- 5 times in 1 posts
October 31, 2011 at 4:25 pm #422614We’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…
-
AuthorPosts
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