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

Entity Admin UI as Node Tab Link

I have an entity "metric" that has specified the following admin ui config: 'uri callback' => 'metric_entity_uri', 'admin ui' => array( 'path' => 'node/%/config', '...
0
votes
1answer
32 views

Alter the access of menu link before rendering

I need to alter the access of menu links before being rendered. In Drupal 7, we used hook_translated_menu_link_alter() for it. Drupal 8 change records show that there are no direct replacement for ...
0
votes
1answer
15 views

CKEditor Link a content with rule as a hypelink with title and url to a custom field

I would like to add a hyperlink entry in a blog which points to a internal content URL with different content type which needs to be display for authenticated users. 1.) The hyperlink should show the ...
0
votes
0answers
12 views

Programmatically alter link path

Some of my pages generated by views have paths containing commas. The Drupal 8 language switcher block encodes the characters in the url replacing commas with %2C. How can I write a preprocess ...
1
vote
1answer
24 views

How to override entity:link() function?

I have an entity with entitylisthandler. In entitylisthandler, i have a function to build row like: public function buildRow(EntityInterface $entity) { /* @var $entity \Drupal\mymodule\Entity\...
0
votes
0answers
15 views

Tweetbutton module tweet icon no longer included inside links in d7

In d6, the code in the hook_link function of the tweetbutton module to handle including the tweet icon in the links was: function tweetbutton_link($entity_type, $entity, $teaser = FALSE) { $...
0
votes
0answers
16 views

Menu hierarchy expansion behavior for child-link that is a child of multiple parent links

When adding a page that will have a menu-link that is a child of parent menu-link (parent-1) you are able to select the 'Menu link title' and a 'Parent item' on that create/edit form. The link ...
1
vote
1answer
22 views

If linking entities with a multi-value entity reference field, what about properties of the association?

In this thread I need a link from base table to join table it was suggested that it is better in Drupal to join two entities with a multi-value entity reference field than to use a relational style ...
0
votes
2answers
32 views

Anchor links not working in Firefox

So I know this might not necessarily be a "Drupal" issue, but because I am using Drupal and this issue only happens in my Drupal site, I'm wondering if it has something to do with the way Drupal ...
1
vote
2answers
35 views

How do i mark html TRUE in l()

In Drupal 7 we have option to mark HTML=>TRUE. How can i do it in Drupal 8 my code is $create_icon_path = 'my_icon.png'; //my icon path $create_icon = '<img height=15 src = "/' . $...
1
vote
0answers
21 views

css last clicked link menu/no menu

I have searched and searched and found many possible solutions but none of them work for me. I have a very odd website setup (the client wants it that way) Setup (all next to each other): Main menu (...
1
vote
2answers
36 views

How do I make an internal link with CKEditor?

I am using Drupal 8. Using the standard WYSIWYG editor, when I click on the link button, I only get the option to add a url. I would have thought there would be some capabilities to look up existing ...
0
votes
0answers
14 views

How to render the main menu in alphabetical order regardless of menu link weight?

We are using the main menu of Drupal to build out the main navigation of the site. The content creators have access to add a menu link for a node in any level of the main menu and they are also able ...
0
votes
1answer
20 views

Admin links issue

So if I am in my admin section http://example.com/admin/content and I try and click on http://example.com/admin/structure The url is http://example.com/admin/admin/structure I set the base_url ...
0
votes
0answers
12 views

size chart link

I have a drupal commerce website with different products like shirts and pants etc... On product detail page I want show a link to display the size chart. For shirts the size chart is different and ...
1
vote
3answers
43 views

How to display all links of the Answers module on a single page?

I using the Answers module, which provide the various set of views as shown in the image below. But it does not provide anything where we can provide these views as a link. I mean I want all these ...
0
votes
2answers
80 views

Show menu links for anonymous users only

I need to show the user register link as a menu item in the account menu. I am able to add the link in the menu via links.menu.yml. The menu links shows up for anonymous users as well as ...
1
vote
2answers
35 views

Views: add (link to file field) to image field

In D7, I have an event content type containing an image field ("Featured image") and a file field ("Document"). I have a view of events containing documents, and would like to wrap a link around the ...
1
vote
0answers
17 views

Force all URLs to be absolute

I have installed the following modules: Pathologic Advanced Aggregation I implemented hook_link_alter() where I set $variables['options']['absolute'] = TRUE;. This helped with fixing: All ...
0
votes
0answers
11 views

Alter path of sub menu item when the user is on edit page

I want to alter the path of a sub-menu item which is been created from the core menu module from UI only. I wanted to change its path based on the url I tried implementing hook_menu_link_alter(&$...
0
votes
0answers
6 views

custom link and field update

I'm wondering if and how it can be done. I'm having a dashboard built. Basically, a quicktab using views. In one of these views, there are "custom fields" where I show icons. Some are basic edit link ...
1
vote
1answer
115 views

How to alter language item link html in Drupal 8

I am looking to modify the default output of Drupal 8 of links in a certain situation, the language switcher. Ideally I want to be able to do that in a twig template and not have to produce a massive ...
2
votes
1answer
221 views

How to get the valid URL of a Link field from within a Twig template?

I have a Link field named field_my_link (machine name). Within a Twig template I can get the link's URL value with this: {{ node.field_my_link.uri }} If inside the Link's URL there is an external ...
3
votes
1answer
63 views

Customize the HTML of a link field from a custom theme

I've a Link field named field_home_link, attached to a Content Type named Home, and I'm trying to customize how it is rendered as HTML from inside a custom theme. Instead of the default generated ...
1
vote
0answers
45 views

How to create private links to unmanaged files ?

I have created my own module with custom block to display private downloads to authenticated users. The downloads files are provided by 3rd-party system and stored in private folder of Drupal ...
0
votes
1answer
27 views

Base URL for all external links

I have site that has multiple external links. I need a way to edit them all at once. For example: I have a site www.example.com that has multiple external links like SOME-IP/getaccess, SOME-IP/...
1
vote
0answers
19 views

How can I parse an URL from the Link module? [closed]

I am developing a website, my website, powering Drupal 7 and I know that the Link module already has something like displaying a link from http://website.com/some-article-here to website.com but I ...
0
votes
1answer
45 views

Drupal 8 register link?

I have a clean Drupal 8 install with bootstrap theme. I just want to add a simple link to the registration form in the user account menu and to it only be visible if you are not logged in. The login ...
0
votes
3answers
28 views

Turn text or link field in image

Users can enter links in separate fields that lead to their facebook, youtube pages. On output i would like to use images for those fields instead of showing ugly links. Is there a module to ...
1
vote
1answer
102 views

How do I create menu links programmatically?

I need to add some links to existing menu (or to new) programmatically in Drupal 8.
0
votes
0answers
28 views

Add target attribute to link in Drupal 8 [duplicate]

How to add attributes to links in Drupal 8, or maybe there are a better way to create link? $link = Link::fromTextAndUrl( t('Link text'), Url::fromUri('http://google.com', array()) ); https://...
2
votes
1answer
58 views

Custom Drupal breadcrumbs - how to disable the last item

I have a D8 custom module providing its own breadcrumbs. The breadcrumbs are shown perfectly, but the current page (last item) is shown as a link. I want to change Change this but as I see it, the ::...
0
votes
0answers
35 views

Why are Anchor links not being rendered?

I made a Link Field, set its URL to "#contact" and its text to "Comece o seu Projeto!". On the node page, it gets rendered as <div class="field field--name-field-chamada-para-acao field--type-link ...
0
votes
2answers
26 views

7 - “/es” showing up twice in URLs

I have a bilingual website using locale. I have a content type that has the "link" field. I have an Image Slider created with Views with the link as one of the fields. The url in the link field is "...
1
vote
2answers
40 views

how to get the list of external link in drupal site? [closed]

I want to know is there any module to get list of all the external links from our drupal site or we have to configure this functionality in custom ? i tried to get the external links using PHP code ...
0
votes
0answers
13 views

why do links under the home menu point not work like ssub links from other pages?

I have a superfish drop down menu on my page and it works fine so far until I added links under the Home tab, the links don't seem to be propagated to the other pages. I have cleared my caches and I ...
0
votes
1answer
23 views

How to edit comment reply link for specific content type in Drupal 7

Is there a way I can programmatically edit comment reply links for a specific content type in Drupal 7? So I need to check for the content type before changing the links: <?php if ($node->type ...
0
votes
0answers
27 views

link to a faq item and expand it

Is there a specific way to link to an anchor on a FAQ item? I have tried just using the anchor tag #myitem and calling /faq#myitem takes me to the page but does not expand the item requested. I have ...
0
votes
1answer
23 views

How to link price to the product display?

I have a page of product teaser links (image, title, price) and I was able to successfully link all except the price to the content with the module Linked Field. The price field acts differently. The ...
0
votes
1answer
57 views

How to extend link field type in D8?

It's good to see the Link field type in D8. It takes a URL and (optionally) link text. I'm adding a multiple links field to a content type and would like users to be able to provide some styling ...
1
vote
0answers
16 views

Add content are not correctly re-parented

I decided to change Add content node/add/% from Navigation menu to Management menu. My prob is : Add a Content type Go to Add content and my new Add content's child link doesn't appear. It ...
0
votes
1answer
41 views

How to put links in a menu programmatically?

I'm using Drupal 7, and modules such as Service links and Flag. I would like to put the links proposed by these modules (share or flag) in a menu (main menu or other). Anybody know the way to ...
0
votes
0answers
20 views

Views pager with anchor on another page?

I'm creating a page that have two sections, one with an image, as a "presentation", and other at the bottom that has a list, created with a View. That list have pagers created with the "Views Simple ...
1
vote
1answer
44 views

How to select by default nodes of a content type in admin/content through a link?

I'd like to make a link to admin/content/, but when the page was displayed I'd like to have it filtered by a certain content type. The link can be like this admin/content/house so when I click it, ...
1
vote
2answers
167 views

Can we add the ?destination query parameter to a link from yml configuration?

When creating a link from yaml ie: mymodule.links.action.yml my_module.my_entity.add: route_name: node.add title: 'Add My Entity' route_parameters: node_type: 'my_entity' appears_on: ...
0
votes
1answer
76 views

How do I upload a PDF for users to download?

I am very new to Drupal. I simply want to provide a link in an article for users to download a pdf document. How do I upload the document on the admin side and then link to it in an article?
0
votes
1answer
160 views

Print node URL in a custom block template

I have a custom block that loads multiple nodes from the database and passes it to the twig template. Inside the template I loop the list printing some node details, but I need to create a link on the ...
1
vote
1answer
19 views

How to link to dblog filtered by type

In my custom D7 module, I'd like to link to admin/reports/dblog/, however, I'd like to have it filtered by a certain type so when you navigate to that link, the type is already filtered for you. Is ...
1
vote
1answer
13 views

Changing drupal project folder breaks links

I have a drupal project working in the server home directory. I want to move this from the server home directory to a subdirectory to make way for other drupal projects. I move the whole drupal ...
1
vote
1answer
35 views

Alter main menu button text and URL path depending on OG Role

I know you can change menu links depending on drupal based roles (authenticated, non authenticated...) and by using Rules module also. I am using Organic Group roles and I am having difficulties in ...