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
7 views

How to remove the comma between Link multi-value field

I am using the Link module's link field. When I create a multi-valued field, it automatically adds a comma between them. I would like to remove this comma. For some other field types, such as term ...
0
votes
0answers
24 views

I need a way to auto-alias node/# internal links in nodes

Say I have a simple node that contains some text and an internal link like this very one somewhere inside the text and I want it to be a node/# link but to be aliased automatically "To the eyes" of ...
0
votes
0answers
25 views

Drop down of site pages for admin to choose

I have a content type which has a link (text type), and admin can manually insert his link. My site pages consist of the pages that work with views module (views page), and also pages that are ...
1
vote
1answer
19 views

Save my link configuration with drush or else?

I just modified my database so I can translate 2 link from a block that I made. The translation won't show up until I go here admin/structure/menu/item/1022/edit and press Save. I would like to know ...
1
vote
1answer
25 views

Views - Edit, view, delete node in dropdown

In facebook, on every post, there is a little arrow in the corner with content about that post. Is there a Drupal Module which allows me to achieve this? What I want to do is: I have different ...
0
votes
1answer
39 views

Link's href value gets lost

I am trying to make a link on node by returning this array(The array is being formed in the function by the name buildLinks() ): $links[$key] = array( 'title' => $definition['title'], ...
2
votes
1answer
29 views

How to link (a menu item) to the RSS feed

In our Drupal installation there is a menu item for the RSS feed, pointing to path de/rss for the German feed. This path appears unchanged in the frontend and is invalid, hence results in a 404. The ...
0
votes
1answer
13 views

Add button to teaser on specific content type

I have a custom content type for Real Estate I have a custom view on the homepage that displays the 5 most recently added real estate properties and displays basic information about this property ...
0
votes
1answer
35 views

How to create menu when dynamic routes [duplicate]

This link https://www.drupal.org/node/2122201 suggest us to make use of route_callbacks when we are using dynamic routes.Can someone tell me how to make use of this route name in *.links.menu.yml file ...
0
votes
1answer
25 views

Menu in Drupal8

I am currently using below code to generate routes: foreach($this->hardcopyEntityManager->getHardcopyEntities() as $entity_type => $entity_definition) { $route = new Route( ...
0
votes
2answers
29 views

Drupal add link to another page in header of a block

In Drupal 7 I created a views page, and I want users to have the option to view the results either as a list, or with thumbnails (like on a lot of websites). The only way I can think of doing that is ...
0
votes
1answer
14 views

Flexslider broken links

I have a very weird problem with flexslider. Everything was working ok, but suddenly flexslider stopped to show the images im adding. My observations are: Flexslider rewrites urls to the path, ...
0
votes
1answer
25 views

Link module: Confused about how to use link fields

I got the Link module because I thought it would help me manage links in my pages. But I have the following two problems: When I enter links in the "Links" form on the page-editing page (the ...
0
votes
0answers
25 views

How to make administration menu display child links without child url

My question is probably a little confusing, so I'm gonna explain with an example. Whenever I create a parent link like "admin/test/execute", the administration menu will display the link and if I ...
1
vote
0answers
9 views

Panels: Targeting content to panel-2 from submenu placed in panel-1

On my site in Main Menu among other links I have a link called Photos that leads to photos. In Taxonomy I've created vocabulary Photocategory to categorize my Photos. I want to create Page (for ...
0
votes
0answers
26 views

Hide “edit” and “delete” links

I am adding images to a mega menu and they are lining up nice, but when an anonymous user is viewing the site, the "edit" and "delete" links are visible over the image. Is there a way to hide them?
0
votes
0answers
10 views

Translate path for custom module

I've got my custom module with my custom path in English (eg. my_en_news) and it's working. Now, if someone switches the language via the language icons they are being redirected to the other language ...
4
votes
1answer
33 views

I need to add rel=“nofollow” to the button provided by “views load more” module

I need to add rel="nofollow" to the button "Load More" provided by Views Load More, but the problem is that the anchor is created in views_load_more.module (line 91) this way: $li_next = ...
1
vote
0answers
29 views

Views automatically adds = inside link when output as link

I am trying to create a view of the latest posts from a vbulletin forum through external.php. As external.php can publish both in RSS and XML format, I have installed views_xml_backend in order to ...
1
vote
3answers
26 views

Node/website architecture visualization

I am seeking to build a website which contains quite a lot of information. All this information will be structured in a specific way. As such I am looking for a way to represent this ...
1
vote
1answer
30 views

open image files in new tab in views

I'd like to open my image fields which are linked to file in new tab. In veiws I mean. I set the image field as: Rewrite the output of this field -> checked Output this field as a link -> checked ...
1
vote
1answer
42 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
29 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
14 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
28 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
22 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
29 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
20 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
13 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
25 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
37 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
36 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
33 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
34 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
53 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
43 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
28 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
44 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
39 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
38 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
24 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
22 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
60 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
43 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
27 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
21 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
27 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
58 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
36 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
190 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 ...