-
AuthorPosts
-
obliat Friend
obliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
March 18, 2011 at 4:51 pm #161631I do have K2 blog categories associated with Home in the mainmenu and Hide main content set to NO at Template>Profiles>Home and it displays at the front page.
I also have JA News Pro Linear at ja-news2 position.
Here’s the problem.
K2 blog on the Front Page appears at content-top position
JA News Pro Linear ja-news2 is at content-mass top position.When you go to template manager, under Layouts when you hit edit (on the Default) you can see
that content-top is before content-mass top in the code:Here part of the code:
<blocks name="middle" main-inner="1" colwidth="17">
<block name="content-top" style="raw">content-top</block>
<block name="content-bottom" style="raw">content-bot</block>
<block name="content-mass-top" style="raw" type="tabs">ja-news-1,ja-news-2,ja-news-3</block>But for some reason ja-news2 appers before K2 no matter positions say K2 (content-top) should be before ja-news (content-mass-top).
Am I missing something?
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 18, 2011 at 5:04 pm #382112Yes, the block ordering is not set here but elsewhere in the template code. All the xml is doing here is making sure all the blocks are loaded.
Can you not simply assign your modules to different module positions in the module manager?
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
March 18, 2011 at 5:35 pm #382114Thanks Phil, I’d do that with pleasure, but I don’t know how to do it.
JA News pro is set to ja-news2, that’s OK I mean I know it and I can change it.
But K2 blog, that is associated with Home position in the mainmenu – I don’t know how to associate K2 blog with a module and (I guess you will tell me) if I know which position on home page to choose in order to make it appear before JA News pro?
Like, may I associate it with ja-news1 for example, if this will put it before my current JA News Pro Linear, that is at ja-news2?
Thanks
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 18, 2011 at 5:41 pm #382115I am not certain what you mean. K2 blog is a layout in itself, not a module.
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
March 18, 2011 at 5:45 pm #382116Can I send you my site details so you can have a look?
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 18, 2011 at 5:50 pm #382117I am still not sure what you are trying to acomplish. Please post images of what you are trying to do.
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
March 18, 2011 at 5:56 pm #382119Simply trying to switch positions.
Now I have JA News Pro above K2 blog, and I want to put K2 blog over JA News Pro – that’s it.
See picture please.
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 18, 2011 at 6:05 pm #382120Simply publish the JA-Nowes modules in the position content-mass-bot
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
March 18, 2011 at 6:22 pm #382122Thanks, I already tried that as it was the obvious solution – but it takes half of the width – see picture.
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 18, 2011 at 6:28 pm #382123That we can fix easilly. Please post a link to your site with that option setup. Make sure css optimization is set to “No” in the template manager first so we can check the css easilly.
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
March 18, 2011 at 7:22 pm #382137My site is http://www.ecars.bg, but it’s offline now – where do I send you login details?
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 18, 2011 at 7:26 pm #382140Feel free to PM me.
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
March 18, 2011 at 7:45 pm #382145PM sent now.
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 18, 2011 at 8:49 pm #382152I couldn’t get on your test site so I setup one of my own and came up with the following fix.
First go into your template manager and change this.
<?xml version="1.0" encoding="utf-8"?>
<layout name="desktop">
<!--Extra css load for this layout-->
<stylesheets>
</stylesheets>
<blocks name="top" style="xhtml">
<block name="header" type="header"></block>
<block name="topmegamenu" type="topmega"></block>
<block name="mainnav" type="mainnav"></block>
<block name="topbar" type="topbar"></block>
<block name="cpanel" type="usertools/cpanel"></block>
<block name="slideshow" type="modules" style="raw">slideshow</block>
<block name="topsl1" type="spotlight" special="left" specialwidth="66">sl1-l,sl1-r</block>
<block name="topsl2" type="spotlight">user1,user2,user3,user4,user5</block>
</blocks>
<blocks name="middle" main-inner="1" colwidth="17">
<block name="content-top" style="raw">content-top</block>
<block name="content-bottom" style="raw">content-bot</block>
<block name="content-mass-top" style="raw" type="tabs">ja-news-1,ja-news-2,ja-news-3</block>
<block name="content-mass-bottom">content-mass-bot</block>
<block name="right-mass-top">col-mass-top</block>
<block name="right-mass-bottom">col-mass-bot</block>
<block name="inset1">left</block>
<block name="right1">right1</block>
<block name="right2">right2</block>
</blocks>
<blocks name="bottom" style="xhtml">
<block name="botsl1" type="spotlight">user6,user7,user8,user9,user10</block>
<block name="botsl2" type="spotlight" special="left" specialwidth="66">user11,user12</block>
<block name="footer" type="footer" main-inner="1"></block>
</blocks>
</layout>to this
<?xml version="1.0" encoding="utf-8"?>
<layout name="desktop">
<!--Extra css load for this layout-->
<stylesheets>
</stylesheets>
<blocks name="top" style="xhtml">
<block name="header" type="header"></block>
<block name="topmegamenu" type="topmega"></block>
<block name="mainnav" type="mainnav"></block>
<block name="topbar" type="topbar"></block>
<block name="cpanel" type="usertools/cpanel"></block>
<block name="slideshow" type="modules" style="raw">slideshow</block>
<block name="topsl1" type="spotlight" special="left" specialwidth="66">sl1-l,sl1-r</block>
<block name="topsl2" type="spotlight">user1,user2,user3,user4,user5</block>
</blocks>
<blocks name="middle" main-inner="1" colwidth="17">
<block name="content-top" style="raw">content-top</block>
<block name="content-bottom" style="raw">content-bot</block>
<block name="content-mass-top" style="raw" type="tabs">ja-news-1,ja-news-2,ja-news-3</block>
<block name="content-mass-bottom" type="spotlight">content-mass-bot-1,content-mass-bot-2</block>
<block name="right-mass-top">col-mass-top</block>
<block name="right-mass-bottom">col-mass-bot</block>
<block name="inset1">left</block>
<block name="right1">right1</block>
<block name="right2">right2</block>
</blocks>
<blocks name="bottom" style="xhtml">
<block name="botsl1" type="spotlight">user6,user7,user8,user9,user10</block>
<block name="botsl2" type="spotlight" special="left" specialwidth="66">user11,user12</block>
<block name="footer" type="footer" main-inner="1"></block>
</blocks>
</layout>Then open layouts.css and around line 103 change this
.ja-box-right { position: absolute; right: 0; }
to this
.ja-box-right { position: relative; right: 0; }
Finally go into template.css and arround line 530 remove the complete line below
#ja-content-mass-bottom .ja-module { border-top: 0; float: left; width: 49%; }
You will loose the position content-mass-bot but gain 2 new ones called content-mass-bot-1 and content-mass-bot-2
As these are now spotlight positions they will expand to fill the space available. If you use both then the page will look exactly as it did before the edits but if you put your ja-news module in content-mass-bot-1 then it will fill the entire width and give you the layout you were after.
1 user says Thank You to Phill for this useful post
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
March 18, 2011 at 11:22 pm #382167Great thanks a lot Phil. Probably needs some more tweaking or I’m not doing it correctly. Please see my screenshots with comments inside. The setup I’m looking at actually is in the third picture:
First – K2 – full width
Then – JA News Pro – full width
Then – (ex)content-mass-bottom (now 1 & 2)
So maybe that’s why I wanted to play with content-top positions to leave mass-bottom like it was having 2 columns and just place JA News below K2…- AuthorPosts
This topic contains 21 replies, has 3 voices, and was last updated by huypl 13 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum