Views base url

Module Drupal Illustration Voir sur Drupal.org
Nb téléchargements : 5963

Components

  • Code
  • User interface
  • Documentation
  • Miscellaneous

Images


Licence

https://www.gnu.org/licenses/old-licenses/gpl-2.0.html

permet d'avoir un site base url token dans views

Release

Status : Published
Projects : Modules
Maintenance status : Actively maintained
Development status : Under active development
Project categories : Content display
Supported Branches : 2.1., 3.0.
shield Stable releases for this project are covered by the security advisory policy.




Description

This module provides a site base URL token in Views. The main purpose of this module is to create a link with absolute path through "Global:Custom text" option.

Why use this module:

You can also create custom links though Drupal l() function, in this case you have to use Views PHP module. The code is stored in database, hence it will not be cached. PHP execution through eval() is slow. This module eliminates this problem.

Usage:

  • Select field formatter in view, and add "Global: Base url"
  • Select "Exclude from display" option.
  • Create custom link by adding a "Global:Custom text"
  • Create link like this: <a href="{{ base_url }}/home">My home page</a>

Other features:

  • Create custom internal absolute link in Views
  • Respect url aliases - link will be rendered as alias (if alias exists)
  • Create image links. Just use image field replacement pattern (say {{ field_image }}) in link text
  • Respect current language of the site - links will be generated based on current of the site

Dependencies:



Toutes les informations proviennent du site drupal.org