Quantcast
Channel: BAXWRDS - Planet Drupal
Viewing all articles
Browse latest Browse all 10

Adding Links in Drupal with the l() Function

$
0
0

In Drupal you should know that you never want to hardcode a local URL into your nodes or blocks. Firstly as your site expands the node may show from places you do not currently imagine thus breaking your paths. Secondly if you try to bypass this by using a full/direct URL, you are going to be up shit creek without a paddle when you migrate the URL. The link l() function should be used for adding links so that manipulations, like localization and URL determinations, can happen on the output.

read more


Viewing all articles
Browse latest Browse all 10

Trending Articles