Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Travis CI build status
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 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:
Project information
- 7,282 sites report using this module
- Created by subhojit777 on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
7.x-1.2
released 8 August 2015
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-1.x-dev updated 6 Jul 2016 at 20:22 UTC