Page Title Block

lost305 - June 12, 2009 - 14:21
Project:Color Paper
Version:6.x-2.0-beta4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello

I love the design. This is something I was looking for, for a very long time.

I have an issue though.

When I place a block in the page title section it doesn't show up.
I figured it was possible because the option was there.
It would be very awesome to be able to have certain blocks display in that section.

Please let me know if this can be done so I can check what's wrong.

Thank you for your time and theme.

#1

lost305 - June 12, 2009 - 17:07

I realized that the blocks weren't showing in the main page but they showed everywhere else.

An hour later I got it working. This might not be the best solution for most people but I don't need the welcome message or the mission message displayed so I took those off along with the IS THIS THE FRONT PAGE line from the page.tpl.php file.

I turned this....

                <div id="left-section">
                  <?php if ($is_front): ?>
                    <div id="mission-folded-corner">
                      <h1 class="page-title"><?php print t('Welcome to') . ' ' . $site_name; ?></h1>
                      <div id="mission"><?php print $mission; ?></div>
                    </div> <!-- /#mission-folded-corner -->
                  <?php else: ?>
                    <div id="page-title-folded-corner">
                      <?php if (!empty($title)): ?><h1 class="page-title"><?php print $title; ?></h1>
                  <?php endif; ?>
                      <?php if (!empty($page_title)): ?>
                        <div id="page-title-region">
                          <?php print $page_title; ?>
                        </div> <!-- /#page-title-region -->
                      <?php endif; ?>
                    </div> <!-- /#title-folded-corner -->
                  <?php endif; ?>
                  <?php if (!empty($content_top)): ?>

into this..

                <div id="left-section">
                    <div id="page-title-folded-corner">
                      <?php if (!empty($title)): ?><h1 class="page-title"><?php print $title; ?></h1>
                  <?php endif; ?>
                        <div id="page-title-region">
                          <?php print $page_title; ?>
                        </div> <!-- /#page-title-region -->
                    </div> <!-- /#title-folded-corner -->
                  <?php if (!empty($content_top)): ?>

Like I said, this might not be the best solution for most but it's what I wanted. I should also mention I don't know anything about coding so don't take this solution to heart.

Peace

 
 

Drupal is a registered trademark of Dries Buytaert.