DrupalBin
Submit Code
About
Recent Posts
Fix for Latest item + title list
Support Ticketing System module: code excerpt from 6.x-1.x-dev support.module lines 2843 to 2941
Fix for Create product reference field
Create product reference field
Re:
Fix for Code
Code
Code
bellHead's fields error
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
test
theme
user
views
more tags
Home
node.tpl.php
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
load node.tpl.php by path
February 6, 2009 - 1:03am — Anonymous
function
blueprint_preprocess_node
(
&
$vars
)
{
// template name for current node id
$suggestions
=
array
(
'node-'
.
$vars
[
'nid'
]
)
;
// additional node template names based on path alias
node.tpl.php
Read more
CCK Text field snippet within node-<type>.tpl.php works
November 27, 2008 - 4:12am —
Sheppard
/*
* Code for BassPlaya
* I've tested this locally and it works for me
* the first part of the condional is if it's a view it will truncate it
* to 8 chars.
CCK
node.tpl.php
template
Read more