Search Options
close
Search the following clips:
All Clips
Sign Up
Install
Learn More
Login
add regions to Drupal 6
trianta
follow
0
4-18-2008 7:33 PM
47 views
tags:
drupal
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
Hacked STOP Signs (Photos)
Happy New Year You All Clippers!
BOB FROM ACCOUNTING WAS JUST HERE,
What social media means to me...
SIGNS OF IMPENDING DISASTER
Ten Psychology Studies from 2009 Worth Knowing About
Moonbeams
Bad Dog
The Funniest Cats of 2009 (Videos)
McAfee: Use With Extreme Caution
visit the
Top Clips page
View the Top Clips from
April 18, 2008
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/06f6e4eb-8a28-4617-86cc-525ddaef80a0/9E3C19B8-3808-43A3-B007-7023C49E5A36/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://drupal.org/node/242107" href="http://drupal.org/node/242107" style="font-size: 11px;">drupal.org</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://drupal.org/node/242107"><H3>To add regions for Drupal 6.x</H3></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://drupal.org/node/242107"><P>ADD the following code to you themename.info file: </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://drupal.org/node/242107"><CODE>regions[left] = Left sidebar<BR />regions[right] = Right sidebar<BR />regions[content] = Content<BR />regions[header] = Header<BR />regions[footer] = Footer<BR />regions[newregion] = New Region</CODE></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://drupal.org/node/242107"><P>The contents of the .info file is cached in the database so altering it will not be noticed by Drupal. To clear it, do ONE of the following:</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://drupal.org/node/242107"><P>Then, in your page.tpl.php file, define where you would like you regions to be using a print call like so: </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://drupal.org/node/242107"><CODE><SPAN><SPAN><?php </SPAN><SPAN>if (</SPAN><SPAN>$newregion</SPAN><SPAN>): </SPAN><SPAN>?></SPAN></SPAN><BR /> <div id="new-region" class="region"><BR /> <SPAN><SPAN><?php </SPAN><SPAN>print </SPAN><SPAN>$newregion ?></SPAN></SPAN><BR /> </div><BR /><SPAN><SPAN><?php </SPAN><SPAN>endif; </SPAN><SPAN>?></SPAN></SPAN></CODE></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://drupal.org/node/242107"><P>You need to replace "newregion" with what you named your region. The id, class and any other html can be changed to anything.</P></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/9E3C19B8-3808-43A3-B007-7023C49E5A36/blog/" title="blog or email this clip"><img src="http://content9.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK