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
26 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
1answer
20 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
23 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
35 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
15 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
42 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
61 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
17 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
1answer
68 views

How to enable target_blanc for links in ckeditor

I use the ckeditor (core) 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 ...
0
votes
0answers
29 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
50 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
0answers
27 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 ...
1
vote
2answers
117 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
30 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
20 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?
0
votes
1answer
18 views

Re-use fields in a content type

I have a content type with 4 different sections to it. At the bottom of each section, there are 2 "Call to action" links. These links all point to the same 2 urls. I'd like to be able to set up 2 ...
0
votes
1answer
30 views

Referencing logged user and node relations.

I am trying to solve a problem with no luck: I have 4 objects in Drupal: -Company user (role company) -Mod user (role moderator) -Node Project -Node Person (not a user entity) Company user can ...
-1
votes
1answer
44 views

How to create a link for field value?

I am using views in that views i can able to give only title field as a link.I want to give field value also as link.while clicking on field link i need history of that field example-In my ...
0
votes
2answers
35 views

How to add User edit link in main menu [duplicate]

Site link here, in this 9 is the user id.it is different according to register users. When add link in main menu there is an option Path textbox in that text box if i add "user/9/edit" then link ...
0
votes
0answers
45 views

Get title from Route

I am trying to print out a few links on a custom page template. I would like to use the title and url from each route. I am trying to print out the title from the route. I know I can get the url ...
0
votes
1answer
29 views

Scroll to links for articles on page

I would like to create a block and place that on the right hand side of my site. Within the block I would like to have a list of links. The links would scroll the viewport down to that article. The ...
1
vote
0answers
41 views

One-time registration email link

I need to send to specific persons one-time registration email links, in order to create users with specific roles. The "normal" registration should be available as well.
0
votes
1answer
36 views

how to use panel to display content types but using condition? [duplicate]

I have two content types. Liquor product which have fields [Title, origin, effects, side effects, price, how to drink, etc.. ] Liquor store fields are [store name, address, contact no.] I am used ...
1
vote
1answer
33 views

Best way to migrate inline images in content fields to drupal 7

I am trying to create say "Articles" manually using scripts. Basically I am reading data from mysql table and creating nodes programmatically by looping the tables. However in mysql content field ...
1
vote
1answer
73 views

Setting current node url as default value for “Link” field

I have a content type with a field type Link. I would like to set default text and url for the field. Under: Structure » Content types » MY CONTENT TYPE » Manage fields I tried entering # and ...
0
votes
0answers
19 views

How I can connect a menu link with a LINK that exists in an another menu link?

I have a menu link menulink2 that when clicked goes to admin/bla/blabla. I have also another menu link menulink1 that do not go nowhere. Now I want menulink1 when clicked to go on the same link that ...
0
votes
0answers
18 views

Is it possible to ajaxify an existing link in Drupal Forms API?

I have table with it's pager links. When you click the pager link, it's default functionality is that the page reloads. I want to ajaxify it so that it will not be time consuming , waiting for the ...
1
vote
1answer
32 views

i18n-Frontpage: inconsistent links to non-default language

I am running across some inconsistent behaviour regarding the links to the frontpage of my multilingual site. The following is happening: mysite.com -> English frontpage, correct mysite.com/en -> ...
0
votes
1answer
35 views

Use separately the links of $links

How to separate the links of the variable $links (in nodes and comments) to be able to place them in various places ? Thanks in advance
0
votes
0answers
38 views

Links always visible by the anonymous

Generally speaking, how to return the links always visible by the anonymous, even if these lead to an action which requires to be registered? For example, for the links in comment (to answer, flag ...
1
vote
1answer
47 views

Access to other custom php pages

I am new to Drupal, so please bare with me. I have a Drupal site that is working fine. Now what I want to do is allow access to folder which contains some custom php script. I tried to put the ...
0
votes
1answer
17 views

Wrap html in link based on uri component of other field

I need to wrap a div in a template file in an a tag whose href comes from a file field. My markup would be something like this: <a href="/path/to/file"> <h1>Title</h1> </a> ...
1
vote
1answer
23 views

Views image field linked with nofollow attribute

I have a view that renders a list of articles. Each article has a title, a main image and a trimmed part of its body. I have both the title and the image are linked to the content i.e the article's ...
0
votes
1answer
26 views

Displaying a Value while linking a Key with the Linked Field Module

I am using the linked field module to try to display a particular field as a link on a content page (I am not working within a View). The field is a select list with associated urls in the key. For ...
1
vote
1answer
19 views

Add custom link to a page

I am not able to find out how can I add a custom link at the bottom of a page (like in the image below - "hlee's blog"). When I click on the 'Edit' tab, there is not html/code for that link. I need to ...
0
votes
1answer
49 views

How to create links which pass arguments to a page?

I am making a website which displays table from a database. For every row of the table I want to provide a link(or button) which will be placed in the last column and will redirect to a page ...
1
vote
1answer
17 views

removing the link in the listings title

I have removed the title node module element from my listings and replaced it with a text field. The problem is that the text field still works as a link. How do I get rid of the link?
0
votes
1answer
30 views

Adding <a href ..> around link or mail

I have a custom module which prints html in hook_block_view. The text that my hook_block_view returns(in block['content']) might contain links and mail addresses. Is there a drupal(or PHP) function ...
1
vote
0answers
59 views

How to validate link field using link module validation in custom form [closed]

I'm using the link module. I've created custom form with a link field. How can I validate this URL in my custom form? Should I use links helper function to check if link is valid (e.g. ...
1
vote
3answers
36 views

Include Views output in href

I am trying to create a custom button in Drupal 7. The link which the href should be equal to is dependent on the context such as the current UID. I have created a view which normally has a plain ...
1
vote
2answers
43 views

Entity reference link module

I am using entity reference field in a content type with select list widget allows you to add the title of a node in the content type, however the title dose not work as a link to the node. I would ...
1
vote
2answers
53 views

Display popup message when i hover on taxonomy link to display description

I used Hierarchical Select module in my academic web site for student to select course from dropdown menu and it is works good but i have problem, for each course i want to add course description as ...
0
votes
1answer
42 views

Create node content from external HTML

After a few attempts browsing the web, I don't figure out how to download HTML from a given url, and create node content from it. What I would achieve is quite simple : Have a link-like field in my ...
1
vote
0answers
23 views

flag node when clicking on a link in a view (not a flag link)

I have a view which displays nodes information on a table, each row is a node, in each row I have two links, one opens a node file field in a new window, the other one open a colorbox showing the node ...
1
vote
1answer
52 views

Can I make both Site name & Site slogan to be one single link?

I use the Mini Panels module and have created an header with both Page elements "Site name" & "Site slogan". The Site name (H1) is a clickable link that leads to the home page, but the site ...
1
vote
1answer
28 views

Adding a field with an automatic link in a content type from entity registration module

I'm using Drupal to create a website which allows an "employer_role" user to create a "Post Job" content type that has a field type of registration from entity registration module and inside that ...
0
votes
3answers
42 views

Is there a way to link a menu item to the edit page of the last article?

I want to create a menu item linked to the edit page of the last article. I created a view and added filters to get the last article. I added only the field node path to the view. But how can I get ...
-4
votes
2answers
41 views

How can I use the Freelinking module for creating links to external sites?

How can I use the Freelinking module in order to create links to external websites? I'd like to find an example. What I found online says that external links should look like this: ...
1
vote
1answer
24 views

How to implement a horizontal set of translation links for every node?

I want to add a hardcoded translation block to my page.tpl.php, to link to a translated version of every node + a translated interface. The Language Switcher Dropdown module did the trick, but I want ...