drupal-modules

How to use pathauto and transliteration modules together?

て烟熏妆下的殇ゞ 提交于 2019-12-13 03:37:47
问题 it might be obvious, but i couldn't find out how. 回答1: There's a checkbox at admin/build/path/pathauto called Transliterate prior to creating alias . If it's not there, check to see if you have latest version. 回答2: Pathauto 2.x will use the Transliteration module. 来源: https://stackoverflow.com/questions/2865742/how-to-use-pathauto-and-transliteration-modules-together

Loading views_accordion through an ajax request

故事扮演 提交于 2019-12-13 02:56:08
问题 I am currently loading my view through an ajax request in my custom module: $.getJSON('/reports/summarized-progress/get_output_activities/'+nid, null,activities); The drupal page for the above request returns the following: $output_arg=arg(3); $html=""; $activities=views_embed_view('activities','block_activities',$output_arg); //this returns a view accordion view if(!empty($activities)) { $html.=''; $html.=$activities; $html.=''; } drupal_json_output(array('data'=>$html)); The accordion

Custom Drupal-8 module doesn't appear

一个人想着一个人 提交于 2019-12-13 02:33:14
问题 I have successfully installed my own module on Drupal8 site. I tried to access it by entering path specified in routing.yml file but I'm getting 'Page not Found' error. I'm almost sure that my module is written correctly(I was following a tutorial where the same module where accessed successfully). What could cause my issue and how can I solve it? here are my module files: 1)kalvis.info.yml name: 'Kalvis' description: 'My module' type: 'module' core: 8.x 2)kalvis.routing.yml kalvis.content:

Drupal encoding and node insert

独自空忆成欢 提交于 2019-12-13 02:15:27
问题 I have a CCK type for storing mentions (Social Media search mentions). Some of the mentions I believe are ASCII (My knowledge of this stuff is little). I retrieve data from API's, which I then using node_save to save to Drupal. My question is, what should I use to safely convert whatever I am getting into a format Drupal and MySQL are happy with? The particular db_query error I get is unhelpfull "Warning in test1\includes\common.inc on line 3538". Nice. I have traced it to be encoding, as I

D3 module on Drupal doesn't show examples

巧了我就是萌 提交于 2019-12-11 16:22:59
问题 I have installed D3.js module on Drupal 7.x, enabled the module the D3 views and D3 examples, uploaded d3.js into sites/all/libraries/d3 but when I try to access the examples, like /d3/examples/bar, I get the error: Uncaught TypeError: Cannot read property 'linear' of undefined it looks like D3 library is not loaded... I googled a lot but failed to find any hint. What am I missing here? 回答1: If you are using the version 7.x-1.0-alpha3 of D3 module then you need to download https://d3js.org/d3

How to Subscribe to DrupalCommerce 2X Events for every new Order, Product etc is created

别等时光非礼了梦想. 提交于 2019-12-11 14:24:03
问题 I need to be able to write a Plugin that gets the orders, product, etc., whenever a new Order, Product is created in DrupalCommerce 2X. but I can't seem to figure out how Commerce wants me to do it. I don't see any *events files that would give me the data. It looks like Commerce wants me to create a separate Event Flow plugin that would add the step I want, but I can't seem to find documentation about implementing my own Event Flow. Can you guide me to the right path of running my code when

Drupal excessive menu parts

懵懂的女人 提交于 2019-12-11 10:03:54
问题 In a module development (webtv) I am providing a generic block that can be configured for its contents (playlists). On the configure form there is a list of added contents (playlists) along with links "add new playlist" and "edit" existing one placed next to each entry. As the block configuration path is: "admin/build/block/configure/[my_module_name]/[block_delta]". And I am expecting to add/edit playlist form on a separate page and should be accessible on: admin/build/block/configure/[my

show administration theme when editing page in drupal

落爺英雄遲暮 提交于 2019-12-11 08:36:17
问题 I am using a custom theme for the front end of my drupal website.I created it by modifying garland theme.And I am using garland as the admin theme. When I try to edit a page from admin it shows the edit page with my custom theme (http://example.com/node/2/edit?destination=admin%2Fcontent%2Fnode). And It breaks up the layout. I want to show the admin theme for all the admin tasks. This problem also occurs on the blocks page (http://example.com/admin/build/block). Is there any custom module or

Create a Drupal view with a list of top voted nodes by month

﹥>﹥吖頭↗ 提交于 2019-12-11 07:36:31
问题 I'm using the Drupal 6 Views module to request for top nodes rated using the fivestar module. However, I can't seem to find out how I can create a view to request for the top voted node for each month and display them on a list. What I'd like as a result is a list like this: January 2011: Most voted node title an link to that node December 2010: Most voted node title an link to that node November 2010: Most voted node title an link to that node ... I'm not even sure this is possible using

drupal 7 custom content hook_theme output

大兔子大兔子 提交于 2019-12-11 07:29:16
问题 I have a custom module created in Drupal 7 and I want it to display some HTML content. Here is how I have did. But it is not working, what I do wrong? <?php /** * Implements hook_block_info(). */ function submenus_block_info() { $blocks = array(); $blocks['info'] = array( 'info' => t('The submenu zone') ); return $blocks; } /** * Implements hook_block_view(). * */ function submenus_block_view($delta = '') { $block = array(); $users = "edf"; $title = "sdfsd"; $block['subject'] = t('Submenu');