Fork me on GitHub

Questions about Xanthia block control  Bottom

  • Hi,

    I have downloaded the newest Postnuke RC (7.6 RC4) and am experimenting with the block control. When I go into the block admin menu, my choices for blocks are left, right, and center.

    I use the news as my default module when viewing the hompage. What I want to to is add a block position called topleft that only appears on non-News modules in conjunction with the normal left blocks.. IE, this is an extra block that shows up on the left side.

    An example of this is something I created on my 0.726 site with the nuclei blocks hack.

    You can see the front page left blocks here: http://www.dealsites.net

    When not on the front page, you can see the addition of a forums post block at the top with the same left blocks: http://www.dealsites.net/livedeals.html


    I created a new block position called top left that uses
  • Put this:

    Code

    <!-[$TOPLEFT]-->


    Into your master.htm. Then make sure you have a template assigned to the block zone in 'content wrappers' and that the zone is active. You should then be able to add the blocks to the top left position for all modules and see them show up on your pages.

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • I put that in my master.htm. Now I see on my main index page the left blocks with the addtion of the "top left block". When I go to my Topics page (which I'm using for testing) I only see the topleft block. I don't see the regular left blocks.

    Ie:

    1. On my News module page I see the left blocks and the topleft block. I don't want the topleft block to appear.

    2. On my Topics module page, I only see the topleft block. I don't see the blocks that should be assigned to the left position.
  • 1. Using block control - remove the top left block from the news module

    2. You'll need to add all your other blocks in block control as well, or they won't show up.

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • 1. I can't figure out how to "remove" the top left block from the News module and leave the existing left blocks.

    2. If I want the topleft block on ALL modules except for News, are you saying I have to go into block control and manually add all blocks to every module?

    I guess I'm looking for a way to easily say: Add the topleft block to ALL modules except News.

    I accomplished this in my old theme with the nuclei blocks and this code:

    Code

    if ($index != 1 && (pnModGetName() != "PNphpBB2"))
          blocks('w');
        blocks('l');


    That sure did seem simple.
  • What you me and everyone else is up againt is the fact that block control is not very intuitive, to begin with. Don't give up though, when you do get it you will think it's magic. I've just done a theme with 20 blocks and they are all templated.

    The quickest way to get what you want is add the block to all modules and then remove it from News.
  • 1. Xanthia > Block Control > click the 'N', modify the blocks
    2. Xanthia > Block control > highlight all the blocks, select all modules from the dropdown, click sumit.

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide

This list is based on users active over the last 60 minutes.