DrupalBin
Submit Code
About
Recent Posts
Code
Fix for Fix for Code
Fix for Code
Code
Node type whitelist
an axe coach accessories
coach purses married
Fix for de las ghd alturas
de las ghd alturas
Code
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
taxonomy
test
theme
views
more tags
Home
page.tpl.php
Re:
June 6, 2011 - 11:24am — Anonymous
freelance writer
custom
links
next
node.tpl.php
Nodel
page.tpl.php
previous
Fix for trying to add a new variable to my page.tpl.php
May 2, 2011 - 11:39am — Anonymous
//this is inside my template.php file
// removing a superfluous [] fixed it.
function
mytheme_preprocess_page
(
&
$variables
)
{
$variables
[
'bg_img'
]
=
'http://gocompost.localhost/sites/all/themes/jonn
page.tpl.php
theming
Read more
trying to add a new variable to my page.tpl.php
May 2, 2011 - 11:34am — Anonymous
//this is inside my template.php file
function
mytheme_preprocess_page
(
&
$variables
)
{
$variables
[
'bg_img'
]
[
]
=
'http://gocompost.localhost/sites/all/themes/jonny/css/cath.jpg'
;
}
page.tpl.php
theming
Fix for Add Preious/Next Link
February 12, 2010 - 6:07pm — Anonymous
<h3>mytheme_preprocess_node(){}</h3>
<?php
function
myTheme_preprocess_node
(
&
$vars
,
$hook
)
{
switch
(
$vars
[
'node'
]
-
>
type
)
{
case
'nodeType'
:
if
(
$vars
[
'node'
]
-
>
body
)
{
$resultn
=
custom
links
next
node.tpl.php
Nodel
page.tpl.php
previous
Read more
Add Preious/Next Link
February 6, 2010 - 11:21am — Anonymous
<h3>mytheme_preprocess_node(){}</h3>
<?php
function
myTheme_preprocess_node
(
&
$vars
,
$hook
)
{
switch
(
$vars
[
'node'
]
-
>
type
)
{
case
'nodeType'
:
if
(
$vars
[
'node'
]
-
>
body
)
{
$resultn
=
custom
links
next
node.tpl.php
Nodel
page.tpl.php
previous
Read more
Sample page.tpl.php
August 2, 2008 - 1:30pm — Anonymous
<?php
// $Id: page.tpl.php,v 1.28 2008/01/24 09:42:52 goba Exp $
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
page.tpl.php
Read more
Amorfati's page.tpl.php
April 16, 2008 - 1:14pm — Anonymous
<!
DOCTYPE html
PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
>
blocks
page.tpl.php
Read more
add node type as body class
March 12, 2008 - 12:28pm — Anonymous
page.tpl.php
<html>
<body class="
<?php
print
(
$node
-
>
type
)
?
$node
-
>
type
:
'notype'
;?
>
"</body>
</html>
page.tpl.php
theme
Fix for adding a view name class to page.tpl.php
November 13, 2007 - 2:07am —
jGirlyGirl
// in template.php
function
_phptemplate_variables
(
$hook
,
$vars
)
{
switch
(
$hook
)
{
case
'page'
:
foreach
(
views_get_all_urls
(
)
as
$key
=>
$value
)
{
if
(
$_GET
[
'q'
]
==
$value
)
{
css
page.tpl.php
template.php
theming
views
Read more