-
AuthorPosts
-
November 21, 2011 at 5:14 pm #170927
I’m having problems setting any new module positions or blocks in T3 blank v1.06 and Joomla 1.7.2.
I need to add a new module position above the main component in “middle” block. I have defined a new block in a new layout.xml file as so:
<blocks name=”middle” colwidth=”20″>
<block name=”midTop”>midTop</block>
<block name=”right1″>position-7</block>
<block name=”left1″>position-5</block>
</blocks>and added a new midTop position to templateDetails.xml. The position shows up in module manager for the template, but module is not visible on site. Neither are any blocks defined or module positions visible using index.php?tp=1 ( default blocks and positions are visible!)
I’ve been through the wiki ( which is out of date by the way) and nothing has helped.
Can someone please describe the steps needed to accomplish this.
claytoncollie Friendclaytoncollie
- Join date:
- March 2011
- Posts:
- 4
- Downloads:
- 0
- Uploads:
- 3
- Thanked:
- 1 times in 2 posts
November 21, 2011 at 7:06 pm #425791<em>@ourmanflint 284102 wrote:</em><blockquote>I’m having problems setting any new module positions or blocks in T3 blank v1.06 and Joomla 1.7.2.
I need to add a new module position above the main component in “middle” block. I have defined a new block in a new layout.xml file as so:
<blocks name=”middle” colwidth=”20″>
<block name=”midTop”>midTop</block>
<block name=”right1″>position-7</block>
<block name=”left1″>position-5</block>
</blocks>and added a new midTop position to templateDetails.xml. The position shows up in module manager for the template, but module is not visible on site. Neither are any blocks defined or module positions visible using index.php?tp=1 ( default blocks and positions are visible!)
I’ve been through the wiki ( which is out of date by the way) and nothing has helped.
Can someone please describe the steps needed to accomplish this.</blockquote>
Open up the template.css file in the root template directory and define the position, height, and width. Basically copy code form something like #ja-search and then change the values. It sounds like the module position is active but the browser has no idea how to render it once you visit the URL.
Make sure the ID tags match what you defined in the header.php file when you added the new code.
something like this:
#midTop {
float: right;
width: 200px;
height: 200px;
}November 21, 2011 at 10:07 pm #425812Unfortunately no! The div does not show up when I scan the page with Firebug. I’ve wasted a day with this with no success, so I’ll be moving away from T3 for this project, which is unfortunate as it does seem to offer some great features.
claytoncollie Friendclaytoncollie
- Join date:
- March 2011
- Posts:
- 4
- Downloads:
- 0
- Uploads:
- 3
- Thanked:
- 1 times in 2 posts
November 21, 2011 at 10:17 pm #425814i had a similar problem on another template and somehow i found code from another guy.
in the layout section where you are making changes replace your block code “midTop” with this
<block name=”content-bottom”>bottom1,bottom2</block>
then change to content-top and then change the module position names to whatever you like. when you go to make the actual module, instead of selecting it from the drop down list, just type in the actual module position name and it will work. **make sure to add it to the templateDetails.xml file in the template root folder before that.
i think T3 only responds to new module/block position if you use the specific wording like “content-top” or “content-bottom”. it reminds me of unlocking secret players in Mortal Kombat on super Nintendo.
November 21, 2011 at 10:36 pm #425816WTF! Thanks that did work.. the big questions remain why?, and why is there nothing about naming conventions anywhere in the wiki?
November 22, 2011 at 2:15 pm #425903You can use as folowing:
<div id="logo"></div>
<jdoc:include type="modules" name="top" />
</div> -
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by portstracking 13 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum