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
0answers
11 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
19 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
18 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
31 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
19 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 ...
2
votes
0answers
20 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
25 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
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
35 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
28 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
26 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
20 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
19 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
32 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
28 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
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
19 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
48 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
101 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
78 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
24 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
13 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
17 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
31 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
29 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
48 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
24 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
51 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
29 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
105 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
39 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
67 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
278 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
42 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
34 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
51 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
165 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
50 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
72 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
57 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
145 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
44 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
15 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: ...