-
AuthorPosts
-
October 8, 2010 at 2:36 am #155057
anyone know how to add a new block?, I try modifying the file
plugins system jat3 base-themes default page default.php
<? Php $ this-> genBlockBegin ($ this-> getBlocksXML (‘middle’))?>
<? Php $ this-> genBlockEnd ($ this-> getBlocksXML (‘middle’))?>changing middle to middle2 in both sentences.
Obviously add to the XML layout I’m using, but the result was
very bad, did not recognize the modules.Maybe I miss some kind of statement or modify another file.
Anyone know how to add a new theme block, just above the
content. Something like this:Regards
toymaker Friendtoymaker
- Join date:
- April 2010
- Posts:
- 123
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 10
- Thanked:
- 45 times in 32 posts
October 8, 2010 at 6:54 pm #358243Hi,
You are completely lost my friend… please do read the T3 Framework Guides, it will really help you understand the way you should add a block without writing a single line of php code, which is one of the benefits of the framework itself.http://wiki.joomlart.com/wiki/JA_T3_Framework_2/Guides
Peace,
Gabriel1 user says Thank You to toymaker for this useful post
October 8, 2010 at 9:22 pm #358258Sorry did not achieve the desired style guide does not solve anything me. Probably something I’m not reading, or just what I’m doing wrong but not what it is.
I can relocate the blocks and add new blocks, these blocks are kept in their assigned positions (Top, Middle, Bottom). I can not make blocks out of those positions. I do not know how to add blocks to the position of the content
<?xml version="1.0" encoding="utf-8"?>
<layout name="desktop">
<!--Extra css load for this layout-->
<stylesheets>
</stylesheets>
<blocks name="top" style="xhtml">// ADD block here is good to TOP position <-----------
<block name="header" type="header" main-inner="1"></block>
<block name="mainnav" type="mainnav" main-inner="1"></block>
<block name="top-panel" type="modules" style="raw" main-inner="1">top-panel</block>
<block name="cpanel" type="usertools/cpanel"></block>
<block name="topsl" type="spotlight" main-inner="1">user1,user2,user3,user4,user5</block>
<block name="topsl" type="spotlight" main-inner="1">user1,user2,user3,user4,user5</block>// -------------->
</blocks><blocks name="middle" colwidth="35">
// ADD block here is good to MIDDLE position <-----------<block name="right1">right</block>
// -------------->
</blocks><blocks name="bottom" style="xhtml">
// ADD block here is good to BOTTOM position <-----------
<block name="botsl" type="spotlight" main-inner="1">user6,user7,user8,user9,user10</block>
<block name="navhelper" type="navhelper" main-inner="1"></block>
<block name="footer" type="footer"></block>// -------------->
</blocks>
</layout>
Where I can add a new block appears above the content? Try this (and many sentences), without any results:
<blocks name="content" >
<block name="right1">right</block>
</blocks>
Could tell me how to do it, I think I’ll have to modify any PHP file, and it is apparently not possible to add a new position unless it is registered in the base template.
Regards
toymaker Friendtoymaker
- Join date:
- April 2010
- Posts:
- 123
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 10
- Thanked:
- 45 times in 32 posts
October 8, 2010 at 10:15 pm #358259Here…
<blocks name="middle" colwidth="35">
// ADD block here is good to MIDDLE position <-----------<block name="right1">right</block>
// -------------->
</blocks>
Looking at your code, colwidth=”35″ in the red line means left or right colums will span 35% which will leave the content section with the rest…
The T3 Guides point out the following…
<blockquote>Purpose: this parameter sets a default column width for the left, component body and right blocks inside the middle block. Left and right blocks use a column width of 20%, and main body will use the remaining 60%</blockquote><em>@razielini 197591 wrote:</em><blockquote>
I do not know how to add blocks to the position of the content</blockquote>
This other post will help you achieve that.
http://www.joomlart.com/forums/topic/adding-modules-to-middle-content-position/#post-352989Some side recomendations for you:
- Please do read guides carefully…
- Please invest at least a small amount of time searching the forum before making a question. Sometimes, things you are looking for, might already been answered before.
- And please, use the thankyou button when someone takes the time to answer. It will show people you have good manners and that you know how to use a forum properly. 😎
Peace,
Gabriel -
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by toymaker 14 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum