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

0
votes
1answer
16 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
22 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
27 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
23 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
21 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
17 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
18 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
25 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
18 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
21 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
18 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
16 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
40 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
30 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
71 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
73 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
17 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
12 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
16 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
23 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
26 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
30 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
23 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
35 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
27 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
59 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
34 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
60 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
193 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
37 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
32 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 ...
1
vote
1answer
34 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
46 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 ...
3
votes
1answer
123 views

Using Views Slideshow to display images with specific url links

I'm new to Drupal and I'm using version 7. I have created a Banner content type, to which I have added an Image field and a Link field (using the Link module). I have allowed theupload of multiple ...
0
votes
0answers
47 views

Links stopped working for logged in admin user

Please help me with this urgent problem: after some modifications all links on my site stopped working. I can hover them and see the url, but on click nothing happens. No WSOD, no error page, just no ...
0
votes
1answer
57 views

Remove link from active page in menu

I need the active page in my menu not to be a link. So let's say I'm on the services page, I need my menu structure to look like this: <ul class="menu"> <li class="first leaf"><a ...
0
votes
1answer
54 views

flex slider with unique links and no links

I have a flex banner that displays images from a content type I have created for the banner. In my banner view I can only link the image to the original image, the banner page or nothing. My goal is ...
1
vote
1answer
100 views

Lightbox2 doesn't open html content and links

I installed Lightbox2 module and I tried to link an image to a webpage, say google.com, this is my code <a href="https://www.google.com/" rel="lightframe[][This is Google]"><img ...
-2
votes
1answer
39 views

Link node/teaser to view [closed]

could anyone tell me how to link a node/teaser to a view? I have an overview page to give a list of all models available (done with view and one content type) and from there I want to send the ...
0
votes
1answer
14 views

Link in main menu does not point to specified path

I'm trying to add a link to my site's about page to the main menu as an "About" link. I have configured it in the following manner: Menu link title: About Path: node/2 Description: (none) Enabled: ...
0
votes
2answers
44 views

How to give href links in custom modules for multilingual site?

I've created a custom module,having a href links like follows. Let's say the following link appears on example.com/somepage/another-page/nid t('<p><a class="stn" href="/my-page">Back to ...
1
vote
1answer
57 views

Why does “my blog” menu link disappear when I use a view with the path blog/%?

When I create a view with the path blog/%, the menu link "My blog" disappear from the main menu but still exists in the database. The view works exactly as expected when I go to /blogs and click the ...
0
votes
0answers
20 views

Fill a field with a specific number when clicking on a link

I have changed my node.tpl.php file a little bit, <div class="content clearfix"<?php print $content_attributes; ?>> <?php // We hide the comments and links now so that we can ...
1
vote
2answers
47 views

Link tags in template file auto closing.

I’m having an issue wrapping a link around some output in a template file. I have the right template file; and I can put text like ‘start here’ and ‘end here’ and it prints out where I want the ‘a ...
0
votes
1answer
12 views

how to create a link field which validates to a set of nodes?

Is there a way to set the Validation for a Link field so that authors are only allowed to link to a pre-determined certain set of nodes? IOW: when authors add a link field to a Node I want them to be ...
0
votes
0answers
22 views

Alter all user profile link

I am using Drupal commons distribution for a community site. The site has many private groups. When a user is browsing a private group and they click on a profile link (or user picture linking to ...
0
votes
0answers
14 views

Hide views row on referenced node

I have a content type called call-to-action box, which has fields: Title, Body, Image, Link which allows the user to create some boxes which is shown in the sidebar, and links to a the page given in ...