external link change
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
DESCRIPTION
-----------
This module povides an input filter which allows to add prefix and suffix
to an external url.The user has to povide the list of domains and their
corresponding prefixes and suffixes to be added to the urls.
INSTALLATION
------------
Since it is an input filter so the steps are little differnt for installing this module as compared to others
1. Install the module as normal.
(Note:Instructions for installing a module http://drupal.org/documentation/install/modules-themes/ )
2.Go to Administration » Configuration » Content authoring » Text formats
(admin/config/content/formats). A list will appear of the various input
formats your site uses. Find one in the list with which you want to use this
module, and click the “configure†link for that format.
(Note: More info about filter and text formats is available at http://drupal.org/documentation/modules/filter )
3.On the next page, find the section labelled “Enabled filters.â€
Check the box next to “External link change†Scroll down a bit to
the “Filter processing order†section and ensure that External link change
is at the top is of the list; if it is not, rearrange the filters using the
draggable arrows in the left column (or the Weight menus, if you have
JavaScript disabled) so that it is. Click the “Save configuration†button at the bottom.
4.Now the module is installed.
Note:The reason for having this filter at the top is that it will work more optimally
without having to process a url twice
CONFIGURATION
-------------
Now the module is installed you have to configure the module .There are things
you need to provide in the configuration ;A list of domains
,a list of prefixes and a list of suffixes. so here are the steps
1.Go to Administration » Configuration » Content authoring » Text formats
(admin/config/content/formats). Find the format you wish to set
"external link change" options for, and click the corresponding “configure†link.
2.In the settings form you will find three text fields namely domain ,prefix and suffix.
add a comma seperated list of domains and a corresponding list of prefixes and suffixes
which you want to use. For example: If you want to add prefix and suffix to the
google and yahoo urls then enter these values in the configuration fields
Domain: google,yahoo
prefix: pregoogle,preyahoo
suffix: &googlesuf,&yahoosuf
After saving the configuration the urls will look like this
Original: http://www.google.com
http://www.yahoo.com
Changed: pregooglehttp://www.google.com&googlesuf
preyahoohttp://www.yahoo.com&yahoosuf
As you can see from example how the module works,Remember to place
the prefix and suffix to the corresponding position of domain like
prefix and suffix for google are place at first position and similarly
prefix and suffix for yahoo are palced at second position ,prefix and suffix
for third domain will be at third position and so on.
Also keep in mind not to add a space between the list of domain,prefixes and suffixes.
Only use "," as a seperator. Also you can use word "null" if you don't want to add any
prefix or suffix for a domain
