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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Questions about Xanthia block control
-
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
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 -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 240
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. -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
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 -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 240
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. -
- Rank: Developer
- Registered: Feb 23, 2005
- Last visit: May 09, 2010
- Posts: 399
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. -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
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
- Moderated by:
- Support
