Skip to main content

Drupal : How to write the theme's region variables to the page.

If you're assigning your region to page.tpl.php, you don't need to worry about creating a variable for your region and assigning content to it; PHPTemplate handles this automatically. All you need to do is write the variables to the page, by editing your theme's page.tpl.php file. For each new region you've defined, include in page.tpl.php a print call. For the 'floater' region defined above, this would look like:

.

Of course, you'll probably want to use HTML, CSS, and possibly PHP (e.g., if tests) to get your new regions looking how you want them.

Comments

Popular posts from this blog

Real time Sinhala Unicode converter

Following Sinhala unicode translater is a very useful tool for all the Sinhala web users who needs a quick sinhala unicode typing. The main advantage of this tool is that user can type the sinhala characters using English (commonly known as Singlish) Use the following link to access the online unicode converter. http://www.ucsc.cmb.ac.lk/ltrl/services/feconverter/t1.html

Convert MPEG to AVI using mencoder in Ubuntu

1. Install mencoder using : $ sudo apt-get install mencoder 2. Move to the folder which contains the .mpeg /.mpg file 3. run the following command :         mencoder INPUTFILE.mpeg -ofps 25 -ovc xvid -oac mp3lame -lameopts abr:br=192 -srate 48000 -xvidencopts fixed_quant=4 -o OUTPUT.avi ** in the example I'm converting INPUTFILE.mpeg to OUTPUT.avi