CMS
Tips: Print out available variables
Submitted by admin on Vie, 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>'; ?>
- Inicie sesión o regístrese para enviar comentarios
theme table de drupal
Submitted by admin on Jue, 07/02/2009 - 17:52Muestra como se usa el theme table de drupal
<?php //$header=array('primero', 'seguro'); $header= array(array('data'=>'primero','width'=>'200px'),array('data'=>'segundo','width'=>'600px')); $rows[]= array(array('data'=>'1','align'=>'center'),array('data'=>'2','align'=>'right')); $rows[]= array(array('data'=>'3','align'=>'left'),array('data'=>'2','align'=>'right')); print theme('table',$header, $rows, $attributes = array(), $caption = NULL); ?>
- Inicie sesión o regístrese para enviar comentarios
Paginación de vistas en ActionApps
Submitted by admin on Mié, 07/01/2009 - 01:28Bueno, 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:
global $items; $items[] = $CurItem->get_item();
2. Agregar el archivo adjunto view2.php3 dentro de la carpeta /apc-aa/
3.
- Inicie sesión o regístrese para enviar comentarios
- Leer más
css para tabs primary & secondary generadas por el módulo Views
Submitted by admin on Lun, 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;
}
- Inicie sesión o regístrese para enviar comentarios
- Leer más
Como ordenar con vistas tipo canal
Submitted by admin on Jue, 11/13/2008 - 15:11Supongamos 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
- Inicie sesión o regístrese para enviar comentarios
- Leer más
Drupal 2008
Submitted by admin on Mié, 03/19/2008 - 12:58Interesante 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!.
- Inicie sesión o regístrese para enviar comentarios
¿Cuánto cuesta desarrollar en Drupal?
Submitted by admin on Mié, 03/19/2008 - 12:54Un 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.
- Inicie sesión o regístrese para enviar comentarios
- Leer más
Cómo se usa imagecache
Submitted by admin on Mar, 03/18/2008 - 16:52En 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);
- Inicie sesión o regístrese para enviar comentarios
- Leer más
Personalización de formularios de búsqueda
Submitted by admin on Lun, 03/17/2008 - 12:58description
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
- Inicie sesión o regístrese para enviar comentarios
- Leer más
Personalización de enlaces primarios y secundarios
Submitted by admin on Lun, 03/17/2008 - 12:54Customising 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:
<?php if (is_array($primary_links)) : ?>
- Inicie sesión o regístrese para enviar comentarios
- Leer más