After enabling the module it automatically check "Create a block for this node". If you uncheck the box and then save it won't create the block but it strips the node of its CSS formatting so you have to create a #block-node-xx CSS section with the same formatting as the .node-xx . Also if you check the "Create a block for this node" then save, and then go back and uncheck it still strip the CSS. I got around that by creating a new CSS section for each node.

CommentFileSizeAuthor
#2 nodeblock.pdf541.86 KBdudeonthebayou

Comments

Johnny vd Laar’s picture

I don't really understand what you mean. Can you explain if you are having this problem while displaying the node as a block or when displaying the node as a page. Can you also provide the HTML that you are having a problem with?

dudeonthebayou’s picture

StatusFileSize
new541.86 KB

My problem is not how the block is displayed but how the node that doesn't have nodeblock enabled is displayed after its saved.

I have attached a pdf file with my example.

It appears that even if the nodeblock is not enabled on the node it still converts it to a div insted of keeping it as a article.

Johnny vd Laar’s picture

I see that your node template uses an article tag. This is not from the default node.tpl.php. Can you explain to me how you got this there? Does this come from another module or from your theme? And how is the file named?

dudeonthebayou’s picture

I am using the ZEN theme. I am not sure where the Article tag is coming from because I don't use the Article content group. I have two defined content groups that I use.

this is my template.

<body>
    
<div id="centered">
    
    <div id="page">
        
        <div id="top_bg" class="clearfix">
            <div id="cbclogo" class="clearfix">
                <a href="http://www.communitybiblecutoff.com"><img src="/sites/all/themes/communitybiblecutoff_com/images/cbc_logo_trans.png"></a>
            </div>
            
            <div id="static_top_filler" class="clearfix">
            </div>

        
        <div id="static_top_menu" class="clearfix">
        <?php if ($page['cbcmenu']): ?>
        <div id="main-menu-wrapper" class="clearfix">
            <div class="main-menu-inner">
                <?php print render($page['cbcmenu']); ?>
            </div>
        </div>
        <?php endif; ?>     
        </div>
            
        </div>

	<div id="main_area_wrapper" class="clearfix">

            <div id="front_page_splash_image_area">
            <div id="main">
                
                <div id="content" class="column" role="main">
                    <?php print render($page['highlighted']); ?>
                        <?php print $breadcrumb; ?>
                        <a id="main-content"></a>
                        <?php print render($title_prefix); ?>
                        <?php if ($title): ?>
                            <h1 class="title" id="page-title"><?php print $title; ?></h1>
                        <?php endif; ?>
                        <?php print render($title_suffix); ?>
                        <?php print $messages; ?>
                        <?php print render($tabs); ?>
                        <?php print render($page['help']); ?>
                        <?php if ($action_links): ?>
                        <ul class="action-links"><?php print render($action_links); ?></ul>
                        <?php endif; ?>
                        <?php print render($page['content']); ?>
                        <?php print $feed_icons; ?>
                 </div><!-- /#content -->
            </div>
            <div id="mysidebar" class="clearfix">
                        <?php
                        // Render the sidebars to see if there's anything in them.
                        $sidebar_first  = render($page['sidebar_first']);
                        $sidebar_second = render($page['sidebar_second']);
                        ?>

                        <?php if ($sidebar_first || $sidebar_second): ?>         
                        <aside class="sidebars">
                        <?php print $sidebar_first; ?>
                        <?php print $sidebar_second; ?>
                        </aside><!-- /.sidebars -->
                        <?php endif; ?>
            </div>     

            </div>
        </div>
        
        <div id="static_bottom_area" class="clearfix">         
        </div>
        
    </div>
</div>
</body>
Johnny vd Laar’s picture

Status: Active » Fixed

Ok i've found the bug. The preprocess function always runs even when the node isn't shown as a nodeblock.

I've fixed the bug here:
http://drupalcode.org/project/nodeblock.git/commitdiff/20fdf7a6b8c099599...

Dev version should be available in a few hours. Let me know if this solves your problem.

dudeonthebayou’s picture

Yes now it works right. Thank you so much.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.