Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • obliat Friend
    #161631

    I 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 Moderator
    #382112

    Yes, 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 Friend
    #382114

    Thanks 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 Moderator
    #382115

    I am not certain what you mean. K2 blog is a layout in itself, not a module.

    obliat Friend
    #382116

    Can I send you my site details so you can have a look?

    Phill Moderator
    #382117

    I am still not sure what you are trying to acomplish. Please post images of what you are trying to do.

    obliat Friend
    #382119

    Simply 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.


    1. Snap1
    Phill Moderator
    #382120

    Simply publish the JA-Nowes modules in the position content-mass-bot

    obliat Friend
    #382122

    Thanks, I already tried that as it was the obvious solution – but it takes half of the width – see picture.


    1. Snap2
    Phill Moderator
    #382123

    That 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 Friend
    #382137

    My site is http://www.ecars.bg, but it’s offline now – where do I send you login details?

    Phill Moderator
    #382140

    Feel free to PM me.

    obliat Friend
    #382145

    PM sent now.

    Phill Moderator
    #382152

    I 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.

    obliat Friend
    #382167

    Great 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…


    1. mass-bot-1-2
    2. mass-bot-1
    3. mass-bot-1-and-2
Viewing 15 posts - 1 through 15 (of 21 total)

This topic contains 21 replies, has 3 voices, and was last updated by  huypl 13 years, 1 month ago.

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