A hyperlink or link is a reference to data that the reader can directly follow, or that is followed automatically.

learn more… | top users | synonyms

1
vote
0answers
12 views

User login link is always visible in menu

I have created user login link in the user account menu but the link is visible all the time(even for logged users). The user profile menu link and the user logout links are displayed properly(they ...
1
vote
1answer
19 views

Multiple buttons to link to different page and different query

I have a page in my site (from a custom module) with a hook_menu (red boxes). The code for the menu is as follows: $items['upcoming_games/' . date('Y-m-d')] = array( 'menu_name' => ...
1
vote
1answer
10 views

Link field with Browse Server button

Is it possible to add the Browse Server button on Link Field? So user can link to and see internal file or image? I have tried the Linkit module, but that is not really what I want.
1
vote
2answers
25 views

Link field to content

In my view I have 4 fields including an image. I want to link a field other than image field to the content but there is no such option as for the image field i.e "Link to". How can I get this ...
0
votes
1answer
19 views

How to access the links variable from a template

I have created a views template for a block and I would like to insert the list of links that normally appears at the bottom of teasers and/or pages (the $links variable) into the template like it is ...
1
vote
1answer
22 views

How can I create a menu item corresponding to a link to another (external) site?

In my menu I can create an internal link corresponding to a path like → '/path/to/node'. But when trying to create a link to an external website (like → http://www.external.com), the link actually ...
0
votes
1answer
19 views

Get rid of absolut links / redirects

I just got a project from a friend: D6, 6.34, 3 languages. Theme: Sharp Sales (via Fusion via Topnotch) So quite an ancient project and I first installed a local copy, but I can't login - it keeps on ...
0
votes
1answer
11 views

Ajax Framework Using Dynamically Generated Links

I know, for links to be ajaxified they need to have a class: "use-ajax" and a proper url which has its own callback. For example: <a href="ajax-reader/nojs/1/2015-03-05" class="use-ajax ...
0
votes
1answer
22 views

Building a link with l() and t()

I'm trying to build this: <a href="/en/webform?edit[submitted][nameofthepet_webform_fieldset][webform_nume_animal_comp]=NAME-OF-PET" class="btn btn-primary btn-xs">Adopt NAME-OF-PET</a> ...
1
vote
1answer
23 views

Writing PHP code to creating menu in block show and alert

I have a menu in a block and this is my code in that block that is in sidebar second: <?php $url=$base_url.'/drupal'; echo '<ul> <li><a ...
0
votes
1answer
32 views

Adding an image to the home page

I'm using the Zen sub-theme. I don't want all the new stuff on the site showing on the home page so I'm editing page--front.tpl.php. Removed print render($page['content']). But now I want to add some ...
0
votes
1answer
22 views

How to add 'title' attributes to breadcrumbs links?

I'm currently using Crumbs module for creating breadcrumbs on my website. I added 'short title' field to nodes and show its content in breadcrumbs instead of much longer node titles. This makes ...
3
votes
1answer
30 views

Some of node links of content types are corrupted

There are about 5000 nodes in my website of different content types. After a while (updating the Drupal to 7.34 and configuring the Server by server administrator) some of node links are corrupted and ...
0
votes
1answer
29 views

All added links open as target, how to prevent it?

In my Drupal based website, all links that I added from CKeditor open as (target="_blank" Link example: (<a href="node/add/name">Name</a>) After adding, example from html source: (<a ...
0
votes
1answer
25 views

Detaching Drupal Behaviors of another module

I'm using this module External Link module which adds "ext" as a class to any anchor tag matching the regex defined via the admin UI provided by the module. I then bind a click event to trigger ...
0
votes
1answer
26 views

Is there module that allows linking or embedding attachments or images from other nodes?

I need a module that allows me to link or embed attachments and images from other nodes, using a filter syntax like [moduletag:node-id:filename], [moduletag:node-id:attachment_index], ...
0
votes
1answer
37 views

Secure Way of sending argument from one page to another

In my Drupal Page I have one l() function as follows:- l('View Comments','admin/comments', array('query' => array('commentid' => $rinap_comm['record_id']) So in this case I am passing the ...
0
votes
0answers
32 views

correct usage of token in href link text

I have a content type with a text field and want to use that text field as the text in the href link in a block on that page. The block appears as a button and I want to use the text field as the text ...
0
votes
1answer
28 views

Adding class to image-link in render array

In the render array of an image with link, i tried to add the class 'colorbox-load' to the link, i.e. the <a> tag of the link, but i can't get the adding of the class to work: $node = ...
1
vote
1answer
21 views

Display external link using theme settings

I'm using theme-settings.php to store links to external pages (like Facebook, Twitter, etc.) and the links aren't storing correctly. In theme-settings.php, I have: function ...
1
vote
1answer
21 views

Rewriting a link field to link to 2 different places depending on what's given

I have a content type which contains a website field of type "link." I am creating a view that should have the title which links to the content for each piece of content, unless a link is provided in ...
0
votes
2answers
41 views

Why is my image with URL that links to external site in a custom block not showing?

I made a custom block in header that houses the following html along with 4 more of the same html for different social media sites: a href="https://socialmediasite.com" target="_blank" img ...
0
votes
1answer
30 views

Get link for same page in different language

I want to display a link to the spanish version of a page in my template, but another module is removing the language option on my link function: l('Visit this page in Spanish', ...
0
votes
1answer
24 views

Secondary & Tertiary links next to Parent links

How can I print expandable secondary and tertiary links to the right of the parent? For mobile, the secondary and tertiary links will need to stack below the parent links. Below is an example of what ...
0
votes
0answers
19 views

Import title and description from website and put it into node?

I'm looking for a way to scrape the metadata of a website (title and description) and put it into a new node. Right now I have a link field using the OEmbed module that pulls a thumbnail from the ...
0
votes
0answers
23 views

Using OEmbed to extract metadata from websites?

I'm using the OEmbed module and I have an OEmbed field in my "add content" form where I can paste a URL and OEmbed will embed any image from that website into my node. Since I'm assuming OEmbed just ...
0
votes
1answer
51 views

How can I change URL of 'Add new comment' link on teaser?

Currently, I have a list of teasers and they have a comment count and an 'Add new comment' link. That link goes to a dedicated comment page with a URL of the form "/comment/reply/19#comment-form". ...
0
votes
2answers
31 views

Structure for a list of links

What I’m looking to do: Content type has an field (addable; unlimited entries to this field) In that field you select from a list of (mostly external) links. Each link is a sentence - has a title ...
1
vote
1answer
122 views

How do you create a link in Drupal 8?

Say I am extending The blockBase class to create a custom block, and I am implementing the blockBuild method to create some markup for my block. Something like this: class YourModuleBlock extends ...
0
votes
0answers
82 views

Re use link field (of link module) in custom module to save custom data with it

Here goes background of my issue & question related to it: I am calling link_field_info() & changing some properties of field to use it with custom name. Code - function custom_field_info() ...
0
votes
1answer
27 views

Linking to a php site located in a subdirectory of the Drupal site

So I've taken part in a very interesting Drupal project that has a multilingual Drupal 7 site and three sub-sites (all using the same domain) in sub-directories of the main Drupal site. So it's kind ...
0
votes
0answers
14 views

How can I output specific menu links from a single create menu

The goal im trying to achieve is to have a single created menu work with a header that has a left hand side menu, a logo in the center and the right hand side nav with the remaining links. I have this ...
0
votes
0answers
21 views

Link module - display icons based on file MIME

I have a Resources content type, which has a Tutorial Links field which can contain unlimited external links to tutorials. For this, I am using the Link module. Instead of displaying the URL or ...
0
votes
1answer
34 views

Best way to dynamically change only the href of a link in the main menu not the markup

I have been digging quite a bit for this and cannot believe that I am not finding way to do this as I didn't think it would be all that difficult. I would like to alter the href property of my main ...
0
votes
2answers
32 views

Views Slideshow - How to add link on Pager that can link to original page?

Views Slideshow on Drupal 7 has a feature that can “Activate Slide and Pause on Pager Hover”. How can I add link on Pager, so when click, it actually link Pager to original piece of content?
0
votes
1answer
54 views

Add class to menu link href tag?

I know that using hook_menu_link I can add classes to the <li> tags but I need to add a class to the <a> tags within the <li> of a menu. I've looked and can't find a way. Any ...
0
votes
0answers
13 views

List view to start on a specific node item

I have made an unformatted list View based on taxonomy term. I'm on D7. I'm displaying all the items on one page in chronological order (no pager). I'd like to use an image map (on a different page) ...
1
vote
1answer
27 views

Views: how to enable Title Link per role?

In Drupal 7 Views, there is an option to Link title field to the original piece of content. How can I enable the link per role? I only want to show the link for administrator and staff, so it will be ...
0
votes
0answers
55 views

Admin menu link visible to authenticated user

I am using drupal 7 and i have two types of users for my site: The administrator and the authenticated user. I want to display to the authenticated user a link in the admin menu sidebar, to see all ...
0
votes
1answer
31 views

Find all pdf links using a module

Is there a way to find certain types of links and edit them from a custom module in Drupal 7? I want to add an attribute to all pdf links throughout my site. I tried the following: function ...
0
votes
2answers
16 views

List of links in an article

I want to add a field on my type of content which allows authors to select a link in a list. If author doesn't find the good link, he can directly add it and name it. The list has to be composed ...
1
vote
1answer
141 views

Add action links in custom module page

I am writing a custom module for my project which handles a list of content (from custom db table) and content addition, following is my code. function cp_menu() { $items = array(); ...
0
votes
1answer
46 views

Pop up Information windows D7

I am new in Drupal 7. What i am trying to do is to show pop up information windows for the following case: I have a view with links (internal links to drupal site). I want by clicking on them: 1.To ...
0
votes
1answer
69 views

Add menu item in hook form submit

I have an entity, when i submit this entity i want to add the new entity created in a menu as a link. But in this menu i have a tree links so i don't know how to put my link in a specific tree. I saw ...
1
vote
2answers
317 views

add link in Colorbox caption

In my gallery, what i write as image title is the caption of my image and that is great. Now I would like to add a link (external url) to my caption, how can i do that? I already try to write normal ...
0
votes
3answers
44 views

Domain/theme name suddenly appearing in all links

I noticed that all my in-site links now have my domain/theme name inserted after the domain. For example: www.mydomain.com/mydomain/calendar www.mydomain/com/mydomain/events It used to be: ...
1
vote
0answers
36 views

How to NOT show link title, if link title is left empty

Using the link module I have one link field with the setting "Link Title > Optional Title". This allows users to enter a link url without entering a title. The problem is, the (empty) title is ...
2
votes
1answer
38 views

server migration issue

I've developed a website and deployed it in a server, I consider this server as a test server. Now, I'm in the final stage of development and I'm looking to move the website content to new server. In ...
0
votes
1answer
55 views

File browse CCK field

Is there a CCK field where I can add a link to a file, not an upload but something that will save the link as a URI.
0
votes
1answer
13 views

Links in sidebar to link to search results

I have a view in sidebar showing a taxonomy Category. There is a view on /search-page that displays search using Search API view and exposed filters. I want the sidebar Categories to link to the ...