0
votes
0answers
2 views

Create a view with nested relationships in Drupal 6

I'm trying to create a view that uses a hierarchical set of multiple relationships. The parent > child relationships are as follows: Festival > Series > Events All of these are nodes; taxonomies are ...
0
votes
0answers
6 views

How to view to user only the node that referenced to him?

I have a Content Type with a user reference field. I want that the user can display\access only to the nodes that referenced to him. Can I do this with Views? I already tried the modules Node ...
0
votes
0answers
6 views

How to use text field for taxonomy term reference

I have a website that accepts RETS real estate feeds, and I'd like to set up a taxonomy for the City field value. I then need that taxonomy as a term reference field on the real estate listings ...
0
votes
0answers
5 views

how to use s3fs in php code

I've included S3FS module in Drupal 7. I'm able to store files by using S3FS as a field of ContentType. Now, I need to store a file on S3 bucket when a cron job is executed. How can I access S3FS in ...
0
votes
0answers
6 views

hook_block_view_alter not called (D8)

I am trying to change the way "Search results" header is rendered in D8. Unfortunately HTML is hardcoded in SearchController and not themeable. I figured I could use hook_block_view_alter to change ...
0
votes
0answers
4 views

How to Filter Node Reference Field Values Using Multiple Views?

I have a node reference field called field_parent_dept. I re-use this field in several content types. The list of nodes that can be referenced are provided by a view. The values are filtered based ...
0
votes
0answers
7 views

Save image using a token works wrongly

I have a Feeds Importer which import node from a xml remote document. The content type I importing the nodes to has a multivalue image field and in it I set to rename the file name to: ...
0
votes
2answers
15 views

Drupal as an RestAPI

I have been using Drupal for a while to build medium to large CMS systems; love it. From time to time I have to build a RestAPI. Usually I use either Laravel, Lumen or Slim. The only reason why I ...
0
votes
0answers
8 views

Why do i do not see “edit” node when i add manually a new node?

i've created a content type of a a book form, using this form, i can create a new node named : book, with title, author, price of the book..etc, when i use this form everything is good, a node is ...
0
votes
0answers
3 views

weird behavior on submit entity reference view widget items

When creating a content type (i use seven as admin theme) i have 2 fields they are entity reference. I use entity reference view widget to select the items in both fields. In first field appears a ...
0
votes
0answers
16 views

How do I display an entity type? [on hold]

I am writing a module, where I get an entity type, and view it. This is my code. namespace Drupal\news\Controller; use Drupal\Core\Url; use Drupal\Core\Entity\EntityInterface; class newsController ...
1
vote
1answer
13 views

Overriding an entity add/edit form through alterroute

I want to create my own version of the add/edit form for an entity defined in contrib module (drupal_commerce). I assumed i'd be able to adapt the example here ...
0
votes
1answer
20 views

How do I export/import views?

I know how to do it in Drupal 6/7, but I cannot find where to export/import views in Drupal 8. From which admin page is possible to do it, in Drupal 8?
0
votes
1answer
8 views

How can I output aliases in a print function, so I can render links using aliases instead of nid?

I have a theme using a views tpl file that is making it impossible for a View to link to node content using the node’s aliases' that i’ve set up. For example it is linking to the default node/36 ...
1
vote
1answer
12 views

Using Services, why is the resource name appended to the endpoint?

If I want an operation of GET api/v1.0/users and api/v1.0/pages: Using the Services module to create a REST API, if I define a service with an endpoint of api/v1.0/users and enable the user resource ...
0
votes
1answer
14 views

Show Node fields on Drupal Form

I'm working on a form where I have added Company field as entity reference and which is type of auto complete. Is there any way, which can show other attribute of company content type like phone ...
1
vote
1answer
17 views

Get the values of views fields in a Twig template

I have created a view that outputs 3 fields for each row. Just using views, i can get the output to look something like this: <li>[Field1 Value] [field2 value] [field3 value]</li> I ...
0
votes
0answers
6 views

Why node access integration with Views gives me no results if related nodes doesn't exists?

I have a View of users + some fields from related node entity (configured in 'Relationships' View UI section. By default there are no referencing nodes. This leads to empty View result, but I still ...
-1
votes
0answers
8 views

Need to export iframe using views ticker data?

I am using Drupal 7. I have created JOBS content types. I am using Views Ticker module to show the jobs order lists. Now my client asked that jobs order lists Show to IFRAME. Because they will copy ...
0
votes
0answers
18 views

dpm in submit handler not working?

I have a very interesting problem. I have 2 dev machines (both mac, running XAMPP). In my project I have a submit handler for a custom entity form. When I try to dpm() (or kpr, or dsm, ...) the ...
1
vote
1answer
19 views

Wildcards for matching path

I am using the Parsely module and I want Parsely to ignore certain paths. I achieve this by setting the paths to be ignored field in parsely's settings page. I am able to use the * wildcard, and I ...
0
votes
0answers
6 views

Assign a workflow made to a content type

I had defined a new workflow which has 3 states and I want to assign it to a content type. I had tried to make a workflow file type in manage field but when I try to edit it I can not choose my ...
0
votes
1answer
14 views

How to re-use text values in a webform?

I am using webform and with all the tons of modules available so far there was virtually nothing I had to compromise on. One thing I am stuck with is re-using user text input. Is this possible ...
0
votes
1answer
18 views

Exporting fields for content type

The configuration export feature of Drupal 8 would seem to be a very useful feature. However, I'm not sure I completely understand how it works. For example, if I do a single export, choose "Content ...
0
votes
0answers
18 views

How can I add custom footer menu links? [on hold]

How can I add custom footer menu links in Drupal 8? This is template for my main menu called menu--footer.html.twig. {{ menus.menu_links(items, attributes, 0) }} {% macro menu_links(items, ...
0
votes
1answer
9 views

Drupal commerce Alter product variation view

I want to alter product variation view and want to display a new form which value depends on variation price. I can add the field to the node using hook_node_view_alter() but i want to add it to the ...
0
votes
0answers
6 views

Dynamically Change Field group lable

I have Field Group and Field Collection module installed In my content type i am using Field collection to make the collection of information to be added and in that filed collection i have made ...
0
votes
1answer
14 views

How do I implement the equivalent of hook_url_inbound_alter()?

I'm working on a module which will resolve URLs to entities by altering inbound URLs so that if they contain an entity ID with following pattern "-{entity_id}" user will be redirected to correct URL. ...
0
votes
2answers
20 views

How to make a page where two content types are combined

It should be a portfolio website. I'm going to place there information about projects I was engaged in and products I designed. The relationships between project and product nodes are those: ...
0
votes
1answer
46 views

Building a full featured gallery with voting system

I'm looking for a way to build a simple gallery node type in Drupal, with vote (with Votingapi and Fivestar)per image enabled. (1 vote per image, per node, per user, and users are able to vote on any ...
0
votes
0answers
7 views

Change page title on Tagclouds generated page

I'm using the Tagclouds module to generate a list of items grouped by taxonomy. The URL looks like this: http://example.com/tagclouds/list/2 This works fine. However the automatic generated title of ...
1
vote
1answer
18 views

How to restrict content for Anonymous users after they viewed more than two articles?

After an anonymous user viewed more than two or three articles, I want to redirect such user to the login/register page. Any suggestions about how to make this work somehow?
1
vote
0answers
20 views

How do I filter a menu to only show menu items translated into current language?

In my Drupal 8 project I have a menu containing menu items in english. Some of the items have a german translation. How do I filter the menu to only show the german items when viewing the site in ...
0
votes
1answer
17 views

Node language in views contextual filters

I have a multi-lingual site. On the article page has a block with other articles. How to bring in the article section with the same language as the current node? Interested in is the use of contextual ...
0
votes
0answers
14 views

Adding Encryption to a Specific Field in an Existing Product Form

I'd like to add encryption to one of the fields in a product form on my site. I want to do this because my hosting provider doesn't send outbound email using TLS and users receive emails with this ...
0
votes
1answer
23 views

Edit form creation [on hold]

I have a form in a block for creating new details: function add_property_block_view($delta = '') { $block = array(); if ($delta == 'add_property_form') { $block['content'] = ...
0
votes
0answers
4 views

How to make users select different view-slideshows to view their images

A section on my website allows users to upload lots of pictures. I have created 3 different views that use 3 different slideshow modules to show the images (set under the image styles) I now need a ...
0
votes
0answers
22 views

How do I set a specific image header for each page?

I am trying to have a header with a different image for each page of my site. I believe I should be creating a block. I don't want to create x blocks for x pages, and I prefer to do it ...
0
votes
0answers
8 views

Drush Omega-guard command not recognised

I can't run "drush omega-guard" I am now using DevDesktop. I have installed Drush fine. And used Omega-wizard to create the subtheme. $ drush status PHP executable : /usr/local/bin/php ...
0
votes
0answers
9 views

Custom submit handler for theme settings form

I am creating a new D8 theme and having slideshow functionality in it. For slideshow, we have title, description and image field in the theme settings form. I am able to alter the theme setting form ...
0
votes
0answers
8 views

How to pass arguments to DS block field?

Block field is a view block which accepts one argument to filter results. How can I pass an argument to this block field ?
0
votes
2answers
20 views

How to logout a specific user programatically?

I need to logout a specific user programmatically whose uid is known to me. I think I need to destroy the session. Is there any table in drupal store that value?
-3
votes
2answers
26 views

Article page in Drupal

I am new in Drupal. I create a article and add a image field, but I don't know how to resize the image. Can anyone help me how to do it?
0
votes
1answer
30 views

How do I hook into t()?

Drupal uses t() in various places. I was wondering if there was a way to hook into this function. Basically, if Drupal calls: t("some string"); I wanted to modify this string and add "BOOM" at the ...
0
votes
1answer
18 views

How to test performance of my site using jmeter

I want to test performance of my site using jmeter i found this link https://www.phase2technology.com/blog/using-jmeter-to-test-performance-of-drupal-with-authenticated-users/ provided i am not ...
1
vote
2answers
31 views

how do I get the user ID other than the one for the current logged in user?

How do I the user ID of the account profile that an administrator user is currently viewing/editin? I can't use \Drupal::currentUser() as it always returns the administrator details. I tried ...
0
votes
1answer
50 views

Email sent to customer from Drupal has RED LOCK icon in the email

I'm using Drupal Commerce. Overall it's working well. I have SSL setup and enforced so users HAVE to use 'https' (via .htaccess). I'm able to test fill out the form and it submits. PayPal gets the ...
0
votes
2answers
20 views

How do you add a form to a content type?

I have a view that had a list of equipment. Each equipment node in the view needs a form so I can upload equipment drawings. I would like the form to belong to the node because it makes it easier ...
0
votes
0answers
10 views

How to simulate radio button functionality within a form

I have a form which has 3 radio buttons, each providing a fieldset. o Choice 1 Fieldset of options v o Choice 2 Fieldset of options v o Choice 3 Fieldset of options v In order to achieve ...
0
votes
1answer
9 views

Corresponding Type and Size of Data Types in Drupal in order to create a table field in PostgreSQL

I was trying to create dynamically a table in Postgres using db_create_table function. $schema = array( 'description' => t ('Contains a particular templates data inputted from the MyID ...

15 30 50 per page