Welcome To Snipplr


Everyone's Recent Snippets Tagged template



1 ... 4 5 6 7 8
4 1317 posted 16 years ago by justinscheetz
how to render GSP template as String ? g:render is taglib in gsp (<g:render> ) but you can call it on your controller using g.render().
0 1577 posted 16 years ago by callmeblessed
2 1007 posted 16 years ago by Jdub7
1 1044 posted 16 years ago by turkeypants
0 968 posted 16 years ago by jimfred
Based on templates by luxuryluke and Kevin Hale. Basic XHTML 1.0 layout which includes basic layout structure and is prepared for jQuery. On load a 'js' class is added to the root element in order to nicely handle graceful degradation if JS is dis...
8 1555 posted 16 years ago by nighthawk
5 1254 posted 16 years ago by rblalock
Basically, this is the XHTML web standards template you see on the front page. I usually end up removing a few things, so this is just that template... but with the junk removed.
1 1183 posted 16 years ago by Jacolyte
The following code lets us designate "menu links" that will not actually link anywhere.
0 1034 posted 16 years ago by aleprieto
If you want to use a specific node.tpl.php for a node, paste or merge this code into your template.php
1 1112 posted 16 years ago by aleprieto
Allows to customize the search results page.
0 870 posted 16 years ago by aleprieto
Makes Drupal Advanced Search form non collapsible and expanded by default.
0 967 posted 16 years ago by aleprieto
A cool script for fixed Footers. Works with i6,i67,all mozilla browsers and safari.
1 1062 posted 17 years ago by FlashJunior
Substitute and update keywords like $HeadURL$, $Revision$, etc. in a file on every commit to subversion repos. 1. Set svn:keywords on repos: $ svn propset --recursive svn:keywords 'HeadURL Revision LastChangedBy Date' /path/to/repo 2. Use this...
0 1294 posted 17 years ago by zingo
This is a stipped-down version of the original page.tpl.php from Drupal 5.x's Bluemarine theme. Just add your own DIVs.
2 967 posted 17 years ago by panatlantica
I often find something like this lurking at the end of my base templates - it'll show you which queries were run while generating the current page, but they'll start out hidden so as not to be a pain. Of course, before this works, you'll need to s...
1 1412 posted 17 years ago by jonhenshaw
Use this to start of new python applications.
1 1164 posted 17 years ago by kangell
1 1044 posted 17 years ago by Wiederkehr
0 739 posted 17 years ago by chucktrukk
0 750 posted 17 years ago by chucktrukk
A per-region override. ogt_blocks is ran for a region, if a region contains blocks, we search for a theme function named theme_region_regionname(). If exists, we run that, else we just return the concatenated blocks for that region.
1 1209 posted 17 years ago by berkes
An easy debug trick: gives you a variable that you can print in any tpl.php to find out what vars you have available there.
1 1290 posted 17 years ago by berkes
used as "http://www.somesite.com/index.php?xcr=page.php" page.php is plugged into the template index.php which hold the shell of a site.
0 1749 posted 17 years ago by withremote
Something I use quite often personally
5 1380 posted 17 years ago by B-Tal
Add this template before functions in a library, in order to give a good description of what it is and what it does. Replace all in < and > with your values.
2 1292 posted 17 years ago by engel
1 ... 4 5 6 7 8