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
1answer
23 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 = "/' . ...
0
votes
0answers
13 views

How to add a link to a block title region? [on hold]

A block title can be linked via Block Title Link module. But how do I add a link to a block title region? Is there a way to do this?
0
votes
0answers
20 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
votes
0answers
12 views

How display video url without extension in videojs

i create a website of streaming movies, i have installed the module Videojs and her library. i have created a content type called : Movies i have read the readme.txt file of videojs module i ...
1
vote
2answers
29 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
8 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
18 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
11 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
40 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
60 views

Drupal 8 - 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
29 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 ...
0
votes
0answers
14 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 ...
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
73 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
147 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
57 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
36 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
25 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, ...
0
votes
0answers
10 views

How can I parse an URL from the Link module?

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
37 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
26 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
82 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
27 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()) ); ...
1
vote
1answer
47 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
33 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 ...
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
20 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
25 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
22 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
43 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 ...
1
vote
1answer
36 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
108 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
66 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
130 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
18 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 ...
0
votes
0answers
48 views

Add element to the “Add new comment” link

I'm using a Bootstrap theme and would like to add a glyphicon to the "Add new comment" link so that it comes out something like this: <a href="..."><span class="glyphicon ...
1
vote
2answers
166 views

Edit “Read more” and “Add new comment” links in teaser in Drupal 8

I'd like to add a couple classes to the "Read more" and "Add new comment" links in my article teasers in Drupal 8. I'd do this in Drupal 7 by doing something like this in my theme file: function ...
1
vote
0answers
20 views

Additional parameters in check_plain()

I created link field in cck and add the URl like with apostrophe (https://www.sample.com/test's_data/test.pdf). But the View output displayed as ...
3
votes
2answers
390 views

How to set target=“_blank” for links in CKEditor

I use CKEditor in Drupal 8. I want that every link will open in a new tab of browser. I want that the code look like this <a href="#" target="_blank">my link</a> But if I use the ...
0
votes
0answers
31 views

Custom Content Type Won't Save Link value

I've created a custom content type, several of the fields are links, but for some reason when I try to add a value to a few of the links, they aren't saving their values. It's strange because I ...
2
votes
1answer
86 views

How do I create an ajax link?

I want to create an ajax linking a view (front page, for example). I create an ajax edit link to edit content directely in the node. I success to add a link but when i click to it, a popin was ...
0
votes
1answer
62 views

Migrating link fields to Drupal 8

I am trying to migrate a link field field_url from a Drupal 7 site to my Drupal 8 one. The link field is compound, it has a title and a url value. In my process plugin I am selecting the right values ...
3
votes
2answers
537 views

Add class to content field (link)

I want to add a class to the <a>-Tag of a Field that consists of a URL-link and a link text (it's a field of type "Link") and the name of the field is content.field_c_button_link So with twig in ...
0
votes
1answer
38 views

Convert links in content to internal form?

If I create a hyperlink inside a text field (such as node body) with an internal path uri such as "node/1234" or "index.php?q=taxonomy/term/5678", then I can use an input filter such as pathologic to ...
0
votes
2answers
27 views

How to add a class to term reference link? [duplicate]

I want to add a css class through Manage Display to a term reference field's anchor tag. Is there any module available for achieving the same?