Submitted by admin on Fri, 07/10/2009 - 03:21
<?php
print '<pre>';
print_r(get_defined_vars());
print '</pre>';
?>
<?php
print '<pre>';
print htmlspecialchars(print_r(get_defined_vars(), TRUE), ENT_QUOTES);
print '</pre>';
?>
Submitted by admin on Thu, 07/02/2009 - 17:52
Muestra como se usa el theme table de drupal
Submitted by admin on Wed, 07/01/2009 - 01:28
Bueno, al fin saldé esta cuenta que tenía pendiente desde que conocí las ActionApps allá por el 2004.
Como saben, las AA sólo se pueden paginar en modo canal o usando el módulo de sitio. No había forma de paginar una vista embebida en una hoja shtml, ¡simplemente no había!
A continuación muestro los pasos para lograrlo.
1. Añadir en la linea 714 del archivo itemview.php3 lo siguiente:
Submitted by admin on Mon, 02/02/2009 - 02:01
/*******tabs primarios********/
ul.primary {
border-bottom:1px solid #14497E;
border-collapse:collapse;
height:auto;
line-height:normal;
list-style-image:none;
list-style-position:outside;
list-style-type:none;
margin:5px;
padding:0 0 0 1em;
white-space:nowrap;
}
Submitted by admin on Thu, 11/13/2008 - 15:11
Supongamos que tu campo de orden tiene el id =
text...........1 (debe
ser tipo integer)
y supongamos tambien que el codigo de tu slice (canal) sea
<!--#include
virtual="/apc-aa/slice.php3?slice_id=374fbb87065cd45dc015554cc626b235"-->
Entonces deberias poner algo como
<!--#include
virtual="/apc-211/slice.php3?slice_id=374fbb87065cd45dc015554cc626b235&sort[0][text...........1]=a"-->
si lo quieres ascendente o
<!--#include
Submitted by admin on Wed, 03/19/2008 - 12:58
Interesante presentación sobre el estado de Drupal en el 2008 y los futuros desarrollos para la versión 2007.
http://buytaert.net/state-of-drupal-presentation-march-2008
Tiene un archivo pdf con la presentación completa, muy interesante!.
Submitted by admin on Wed, 03/19/2008 - 12:54
Un buen dato de cuánto podemos cobrar por desarrollar en Drupal
============
Tomado de http://drupal.org/node/141187
Creating a Drupal theme requires three distinct skillsets:
1. Graphic design (for web)
2. Web layout & design (HTML/CSS)
3. PHP coding (basic)
If we're talking about two or three different individuals, that's two
or three different rates.
Submitted by admin on Tue, 03/18/2008 - 16:52
En sites/all/modules/imagecache/
function theme_imagecache($namespace, $path, $alt = '', $title = '', $attributes = NULL) {
$attributes = drupal_attributes($attributes);
$imagecache_path = file_create_url(file_directory_path() .'/imagecache/'. $namespace .'/'. $path);
return '
';
}
En template.php
function renacal_imagecache($namespace, $path, $alt = '', $title = '', $attributes = NULL) {
$attributes = drupal_attributes($attributes);
Submitted by admin on Mon, 03/17/2008 - 12:58
description
This describes how to override the default SEARCH THEME FORM* layout when using phptemplate based themes and the search.module with Drupal 4.7 and Drupal 5.x.
* The SEARCH THEME FORM is the Search form that that appears in your page header, when enabled. Refer to the NOTES below for overriding the block search form and main page search form.
You may find it easier to just edit the page.tpl.php file with your customised theme search form layout, but, here is an alternate method if you prefer to keep it seperate.
Step 1 of 2
Submitted by admin on Mon, 03/17/2008 - 12:54
Customising the primary and secondary links
Description
These examples illustrate how you customise the default layout of primary or secondary
Notes
* For use within your page.tpl.php file.
* The example snippets converts your primary/secondary links to an unordered list
* Please discuss or suggest tips at this thread on the forum discussing how to customise primary/secondary links
Drupal 4.6 / 4.7
Primary links snippet:
Pages