logo
down
shadow

DRUPAL QUESTIONS

How to replace a placeholder string stored in an object/array property in a Drupal Twig template with the current year?
How to replace a placeholder string stored in an object/array property in a Drupal Twig template with the current year?
To fix this issue I'm assuming your array/object is passed to the template as the variable myObject.You can render the string in the text property while replacing the placeholder as follows:
TAG : drupal
Date : January 11 2021, 05:14 PM , By : Aki Björklund
How to get a specific translation of drupal node with graphql
How to get a specific translation of drupal node with graphql
Hope this helps After some experimentation I see it's not working yet with Drupal JSON API, but I got it working with the Drupal GraphQL module. This can be used with Gatsby and gatsby-source-graphql instead of gatsby-source-drupal. The query would l
TAG : drupal
Date : January 02 2021, 06:48 AM , By : Alex
Theming Drupal 8 - Loop through all posted articles and print specific section
Theming Drupal 8 - Loop through all posted articles and print specific section
Does that help I recommend to use Views. Configure you view (filter by content type, etc.), you have a lot of parameters to achieve what you need.Set the view to show "Content" and give it a view mode (you can use the default teaser, full, or create
TAG : drupal
Date : January 02 2021, 06:48 AM , By : Roel van Dijk
Duplicate a Drupal installation from one server to another
Duplicate a Drupal installation from one server to another
it should still fix some issue Copy up all the files from development to live, and mysqldump your database and run that on the live server. Then all you have to do is change the settings.php file to point at the right database, if for some reason 'lo
TAG : drupal
Date : January 02 2021, 06:48 AM , By : Sumedh
How do you like to define your module-wide variables in drupal 6?
How do you like to define your module-wide variables in drupal 6?
To fix this issue I haven't seen any one storing static values that are array objects.For simple values the drupal way is to put a define in the begining of a modules .module file. This file is loaded when the module is activated so that is enough. N
TAG : drupal
Date : January 02 2021, 06:48 AM , By : Anna
Drupal Nodereference in a custom form
Drupal Nodereference in a custom form
should help you out Starting learning ahah here: 39;add another item39; in non-CCK Drupal formsSomeone who try investigate this: http://drupal.org/node/266584comment-870376
TAG : drupal
Date : January 02 2021, 06:48 AM , By : bdurbin
How to create a user in drupal
How to create a user in drupal
Does that help Users are stored in the users table.Use the Drupal API to add users.
TAG : drupal
Date : January 02 2021, 06:48 AM , By : GunnarHafdal
Is OpenAtrium really slow?
Is OpenAtrium really slow?
seems to work fine If you're running it on a shared host with no memory, don't have a PHP code cache (e.g. APC or similar), and don't have Apache tuned, then it's probably slow.If, on the other hand, you are running it on a Mercury optimized VPS imag
TAG : drupal
Date : January 02 2021, 06:48 AM , By : Willem van Schevikho
Ubercart add to cart trigger?
Ubercart add to cart trigger?
fixed the issue. Will look into that further You should be able to implement hook_add_to_cart in a custom module, which will get called exactly as you describe above.
TAG : drupal
Date : January 02 2021, 06:48 AM , By : Navin
Changing the Admin Theme in Drupal 6 Directly in Database
Changing the Admin Theme in Drupal 6 Directly in Database
To fix this issue List of themes you can find in {system} table, filter by type = theme, there you can set status = 1Default theme you can find in {variable} table, filter by name = theme_default, change it to you theme name, as it is written in syst
TAG : drupal
Date : January 02 2021, 06:48 AM , By : Monev
How safe is it to use Drush?
How safe is it to use Drush?
To fix the issue you can do I've used it for a long time and know several others that have done so without any problems. So I wouldn't be worried if I were you. But I haven't tested all the stuff like SQL queries and other db stuff you can do with dr
TAG : drupal
Date : January 02 2021, 06:48 AM , By : Boris
Month navigation sidebar in blog section?
Month navigation sidebar in blog section?
hope this fix your issue Drupal views can create views which allow you to select and list or summarise lists of nodes by various fields including the date related fields. You can do this by adding an argument, and then setting how the view behaves wh
TAG : drupal
Date : January 02 2021, 06:48 AM , By : user181445
Link between CCK field and view
Link between CCK field and view
hop of those help? You might be able to use the Views Arguments Extras module. It will allow the argument of the view to come from a cck field. Some more details about this module (from its project page):
TAG : drupal
Date : January 02 2021, 06:48 AM , By : ianium
Drupal CC/Views - new fields not showing up in CCK
Drupal CC/Views - new fields not showing up in CCK
it fixes the issue It should be under Content in the dropdown.It will be called field_whatever_you_named
TAG : drupal
Date : January 02 2021, 06:48 AM , By : inquiringmind
Drupal 7: Insert into content type from custom module function
Drupal 7: Insert into content type from custom module function
wish of those help There are two common ways of programmatically creating nodes in Drupal 7: without or with the Entity API contributed module.Without Entity API
TAG : drupal
Date : December 27 2020, 03:39 PM , By : Saurabh
What are the steps to switching Drupal website/server to HTTP2
What are the steps to switching Drupal website/server to HTTP2
it helps some times Turn it on in your web server in dev. Test it to make sure no unintended consequences - nothing should have to change at an app level to use HTTP/2 as the web server and browser takes care of all that for you automatically (one of
TAG : drupal
Date : December 25 2020, 04:01 PM , By : Kim
The same data on all pages of pager
The same data on all pages of pager
will be helpful for those in need You made a tiny mistake, you always ::range() from 0 to 4 elements. Instead, you should use the ::pager() method instead.Here is the same function as yours but using the pager instead of range.
TAG : drupal
Date : December 24 2020, 05:30 PM , By : Kenny
Drupal 7 Custom module with different theme
Drupal 7 Custom module with different theme
Does that help Short answer: Yes you can! It would require a lot of work, but you can.Long answer: If the requirement about the solution coming from a custom module is strict, then skip to the last part of this answer. Otherwise you're welcome to ful
TAG : drupal
Date : December 23 2020, 06:01 AM , By : ck1
How to return html markup from custom block Drupal 8
How to return html markup from custom block Drupal 8
may help you . I have created new block like a plugin in a custom module. This block must render Login/Register links. Here is the function build() code: , Just added needed attributes to the links:
TAG : drupal
Date : December 22 2020, 05:30 AM , By : Tim Benninghoff
Drupal Commerce - How to programmatically create a fixed coupon?
Drupal Commerce - How to programmatically create a fixed coupon?
Hope that helps Check out answer here:https://drupal.stackexchange.com/questions/88484/is-there-a-way-to-programatically-create-a-commerce-coupon-fixed-amount
TAG : drupal
Date : December 01 2020, 05:00 PM , By : Ian
NameError: Method not available report
NameError: Method not available report
I hope this helps you . The report service has been removed from Odoo since version 11.0.Relevant commits : c23ef9a, 3425752.
TAG : drupal
Date : November 26 2020, 06:18 AM , By : Nate Bedortha
How to make paged navigation in products more info page
How to make paged navigation in products more info page
it fixes the issue Answer to own question. Solution for Drupal 5/6 (not sure about version)Some other helpfull information https://drupal.stackexchange.com/questions/1561/is-it-possible-to-dynamically-set-views-pager-settings
TAG : drupal
Date : November 22 2020, 11:17 AM , By : Feroz
How to use commerce_cart_order_product_line_item_delete?
How to use commerce_cart_order_product_line_item_delete?
Hope that helps If you look at the function call: commerce_cart_order_product_line_item_delete($order, $line_item_id, $skip_save = FALSE)You are passing an integer when it is expecting an order object as the first parameter.
TAG : drupal
Date : November 19 2020, 04:06 PM , By : BooTeK
How to tack backup for particular view in drupal 8?
How to tack backup for particular view in drupal 8?
hope this fix your issue Goto "admin/config/development/configuration/single/export" and select the view you want to export as shown in below image. It will give you out put in yaml.
TAG : drupal
Date : November 17 2020, 09:01 AM , By : MP.
swiftmailer plugin does not exist
swiftmailer plugin does not exist
will help you So it turns out after I updated it, a previous coworker disabled it from the drupal UI, hence why it wasn't working. Enabling it from the drupal UI made it work.
TAG : drupal
Date : November 16 2020, 04:01 AM , By : Harry Truman
Drupal update to 7.51 - I can't drag and drop tables anymore
Drupal update to 7.51 - I can't drag and drop tables anymore
it fixes the issue I found that the file 'misc/tabledrag.js' has been changed and that's the cause:-
TAG : drupal
Date : November 10 2020, 11:01 PM , By : Tim
New Instagram API: empty data on /tags/TAGNAME/media/recent
New Instagram API: empty data on /tags/TAGNAME/media/recent
Does that help i wrote a module for Drupal 7 with instagram images flow (based on a configuration of a hastag). Given the Client application registered on developers site and redirect urls configured correctly i managed to get the Access_token and fi
TAG : drupal
Date : November 07 2020, 01:33 PM , By : Ryuken
Error running drush on a particular Drupal website
Error running drush on a particular Drupal website
I wish this helpful for you Try to open two instance of your terminal. In the first one, type this command to see logs drush ws --tail and run the command which throw your error in the second. You first need to know which module is causing this error
TAG : drupal
Date : November 05 2020, 06:58 PM , By : cjdavis
How can I run the Drupal project
How can I run the Drupal project
wish help you to fix your issue This question is very broad and I'm almost sure that it be will down voted and closed, but I'll try to help before that happens. :)So, to run drupal (or any similar php based) project you must have web server with supp
TAG : drupal
Date : November 02 2020, 04:01 AM , By : fstender
Drupal : Drupal6 views : Filter restriction
Drupal : Drupal6 views : Filter restriction
Hope that helps If you want to set a filter only for one display, you have to, on the configuration of that display : specify that the filters should "override" the default ones specific the specific filters you want on that display.
TAG : drupal
Date : October 25 2020, 07:29 PM , By : gorbiz
Translate a Field's Label in a Drupal Content Type
Translate a Field's Label in a Drupal Content Type
will be helpful for those in need Sorry to reopen this thread, if anyone lands here looking for a way to translate field labels for Drupal 7, read below.In Drupal 7, the core function template_preprocess_field() was introduced. Using it within our te
TAG : drupal
Date : October 24 2020, 11:12 AM , By : Andrew Mattie
DRUPAL: order exposed filter items, be carefully it is not that simple (I cannot user "Sort")
DRUPAL: order exposed filter items, be carefully it is not that simple (I cannot user "Sort")
I hope this helps . You need to follow the example of Better Exposed Filters in form_alter'ing the exposed filters form and sorting your filter's options array:
TAG : drupal
Date : October 18 2020, 11:12 PM , By : Ben Humphrys
Facebook module for Drupal 6
Facebook module for Drupal 6
it should still fix some issue The link I posted below will show you every available Facebook module there is for on drupal.org.http://drupal.org/search/apachesolr_search/facebook?filters=type%3Aproject_project
TAG : drupal
Date : October 14 2020, 01:11 PM , By : user160048
Publishing a node to a specific page?
Publishing a node to a specific page?
I wish this helpful for you You might want to take a look at the 'nodereference' field type provided by the CCK module. It allows you to add one or more fields to a content type that can reference other nodes.
TAG : drupal
Date : October 14 2020, 01:07 PM , By : Allen
Drupal 7: Query custom content type with no results
Drupal 7: Query custom content type with no results
Hope this helps Ok, for some stupid reason you can query a whole database as an unauthenticated user but not with a where clause so you need to add ->addMetaData('account', user_load(1)) before the ->range(0,1). Hope this helps someone else.
TAG : drupal
Date : October 05 2020, 01:00 AM , By : doctorbigtime
How to display the content of a variable in plain text in Twig?
How to display the content of a variable in plain text in Twig?
fixed the issue. Will look into that further Use the striptags filter :
TAG : drupal
Date : September 13 2020, 09:00 PM , By : user165781
shadow
Privacy Policy - Terms - Contact Us © scrbit.com