Usted está aquíConsejos para composición
Consejos para composición
- Filtered HTML:
- Las líneas y los párrafos se reconocen automáticamente. Las etiquetas <br /> para el salto de línea y <p> y </p> para abrir y cerrar el párrafo se insertan automáticamente. Si los párrafos no se reconocen, simplemente añada unas cuantas líneas vacías.
- Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
Etiquetas HTML permitidas: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
Este sitio admite contenido HTML. Aprender todo el HTML es una tarea ardua e intimidante, pero aprender unas cuantas «etiquetas» HTML básicas es muy sencillo. Esta tabla proporciona ejemplos para cada etiqueta que está activa en el sitio.
Para más información, puede ver las especificaciones HTML de W3C o usar su motor de búsqueda favorito para buscar otros sitios que traten sobre HTML.
Descripción de la etiqueta Teclea Obtiene Las anclas se usan para hacer enlaces a otras páginas. <a href="http://www.fcalzado.es/blog">Tanto por saber...</a>Tanto por saber... Enfatizado <em>Enfatizado</em>Enfatizado Fuerte <strong>Fuerte</strong>Fuerte Citado <cite>Citado</cite>Citado Texto codificado que se usa para mostrar código fuente de programación <code>Codificado</code>CodificadoLista desordenada: use <li> para comenzar cada elemento de la lista <ul> <li>Primer elemento</li> <li>Segundo elemento</li> </ul>- Primer elemento
- Segundo elemento
Lista ordenada: utilice <li> para comenzar cada elemento de la lista <ol> <li>Primer elemento</li> <li>Segundo elemento</li> </ol>- Primer elemento
- Segundo elemento
Las listas de definiciones son similares a otras listas HTML. <dl> da comienzo a la lista de definiciones, <dt> da comienzo a cada término definido y <dd> da comienzo a la descripción de la definición. <dl> <dt>Primer término</dt> <dd>Primera definición</dd> <dt>Segundo término</dt> <dd>Segunda definición</dd> </dl>- Primer término
- Primera definición
- Segundo término
- Segunda definición
Los caracteres menos habituales se pueden introducir directamente sin mayor complicación.
Si tiene problemas, intente usar entidades de caracteres HTML. Un ejemplo de esto es &, que se usa para conseguir el carácter &. Tiene una lista completa de las entidades HTML en la página de entidades. Entre los caracteres disponibles están:
Descripción del carácter Teclea Obtiene Ampersand && Mayor que >> Menor que << Comillas "" Cómo usar código PHP personalizado
Custom PHP code may be embedded in some types of site content, including posts and blocks. While embedding PHP code inside a post or block is a powerful and flexible feature when used by a trusted user with PHP experience, it is a significant and dangerous security risk when used improperly. Even a small mistake when posting PHP code may accidentally compromise your site.
If you are unfamiliar with PHP, SQL, or Drupal, avoid using custom PHP code within posts. Experimenting with PHP may corrupt your database, render your site inoperable, or significantly compromise security.
Notes:
- Remember to double-check each line for syntax and logic errors before saving.
- Statements must be correctly terminated with semicolons.
- Global variables used within your PHP code retain their values after your script executes.
register_globalsis turned off. If you need to use forms, understand and use the functions in the Drupal Form API.- Use a
printorreturnstatement in your code to output content. - Develop and test your PHP code using a separate test script and sample database before deploying on a production site.
- Consider including your custom PHP code within a site-specific module or
template.phpfile rather than embedding it directly into a post or block. - Be aware that the ability to embed PHP code within content is provided by the PHP Filter module. If this module is disabled or deleted, then blocks and posts with embedded PHP may display, rather than execute, the PHP code.
A basic example: Creating a "Welcome" block that greets visitors with a simple message.
Add a custom block to your site, named "Welcome". With its input format set to "PHP code" (or another format supporting PHP input), add the following in the Block body:
print t('Welcome visitor! Thank you for visiting.');To display the name of a registered user, use this instead:
global $user; if ($user->uid) { print t('Welcome @name! Thank you for visiting.', array('@name' => $user->name)); } else { print t('Welcome visitor! Thank you for visiting.'); }
Drupal.org ofrece algunos fragmentos de código PHP de ejemplo, o usted puede crear los suyos propios con algo de experiencia en PHP y conociendo su sistema Drupal.
- Full HTML:
- Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
- Insert view filter allows to embed views using tags. The tag syntax is relatively simple: [view:name=display=args]
- For example [view:tracker=page=1] says, embed a view named "tracker", use the "page" display, and supply the argument "1".
- The display and args parameters can be omitted. If the display is left empty, the view's default display is used.
- Multiple arguments are separated with slash. The args format is the same as used in the URL (or view preview screen).
- [view:my_view]
- [view:my_view=my_display]
- [view:my_view=my_display=arg1/arg2/arg3]
- [view:my_view==arg1/arg2/arg3]
- Texto enriquecido: