Questions tagged [drupal-ctools]

Drupal - Chaos tool suite = This suite is primarily a set of APIs and tools to improve the developer experience.

Drupal - Chaos tool suite (ctools). This suite is primarily a set of APIs and tools to improve the developer experience.

Learn more about Drupal - Chaos tool suite here (ctools).

45 questions
6
votes
2 answers

Drupal Page manager: Can I provide a variant in my module?

I have a module that provides a number of pages to the Page Manager module using hook_default_page_manager_pages(). This works out fine. But now I would also like to provide a variant for the system included node/%node page. But I can't find any…
mtrolle
  • 2,234
  • 20
  • 19
5
votes
1 answer

drupal 7: page manager/panels and hook_node_view

I'm trying to run some custom code on a particular type of node when it is viewed. Just a little bit of code I used to implement with nodeapi. This works fine in Drupal 7, but since I am overriding the node_view page in ctools page manager it…
joevallender
  • 4,293
  • 3
  • 27
  • 35
5
votes
2 answers

Drupal: How to make a fieldset dependent using CTools

I am using Ctools Dependency to make a fieldset hideable. This is part of my code: $form['profile-status'] = array( '#type' => 'radios', '#title' => '', '#options' => array( 'new' => t('Create a new profile.'), 'select'…
farzan
  • 1,160
  • 2
  • 14
  • 25
4
votes
1 answer

drupal ctools - how to show view in modal

I'm wondering how to show a view into a modal? Could someone give me an example? Further more I like to call the view out of an action.
user633163
  • 41
  • 1
  • 3
4
votes
2 answers

"context" on a drupal page

This question is a general one, and I've already posted a version of it here. I'm hoping, though, that I'll have a better chance of getting a response, and of being useful to more people, by asking in this forum. Associating content together when it…
ldweeks
  • 175
  • 2
  • 13
3
votes
0 answers

How to integrate webform into multi form wizard into drupal 7

I am trying to integrate webform into multiform wizard (CTOOLS MULTISTEP WIZARD) in D7 but its not working, I don't have any idea how to integrate it (I am creating my own multi-form wizard in that i want to integrate webform) the following steps…
3
votes
1 answer

Drupal CTools access check

I want to create a ctools access check for my panel selection rule. What I wanna do, is to check a field value in a content type. The field is named field_layout with the options 3,2,1. I created the access check and settings and the rule is showing…
Basti
  • 666
  • 2
  • 11
  • 29
2
votes
2 answers

How do you close a manually created and opened ctools modal in Drupal 6?

Given this code that creates and opens a ctools modal in a Drupal 6 site: var content = 'my content'; var title = 'my title'; Drupal.CTools.Modal.show(); $('#modal-title').html(title); $('#modal-content').html(content); Drupal.attachBehaviors();…
Justin
  • 2,914
  • 5
  • 41
  • 66
2
votes
1 answer

Combining Page Manager and Mini Panels

I understand how I can use the Ctools Page Manager to override the system edit form for a specific content type. And I understand how I can use the Panels Dashboard to create a Mini Panel which can be embedded into a Panel Page. But I am not clear…
RJL
  • 51
  • 1
2
votes
1 answer

Drupal : how to add a JavaScript file in Ctools modal popup

how to add a JavaScript file in Ctools modal popup ? I added the js file (datatables.js) in the .tpl.php file but it does not work? The popup does not detect this file? drupal_add_js(drupal_get_path('module', 'my_module') .…
rami
  • 51
  • 3
2
votes
0 answers

How to pass and receive values from popup ctool?

I would like to pass in values from a form via 'get' button that would put what I had in my form textbox1 to the popup modal form textbox1 and then have textbox2 that in modal form to return a value to a secondary textbox2 in my original form. so…
lifejuggler
  • 460
  • 6
  • 17
2
votes
0 answers

How to display customized form errors in a Ctools modal form in drupal 7

Given a ctools modal popup in Drupal 7, and a form being displayed in it, in the mymodule_myform_validate() function, what I want to do is replace the normal drupal_message pink display of form errors at the top of the form with an error message…
JAyenGreen
  • 1,385
  • 2
  • 12
  • 23
2
votes
1 answer

Drupal Panels - Write a ctools style plugin for a specific view pane

Is it possible to write a ctools style plugin for a specific view pane? When I try to create a normal style plugin, I want any of my content panes to be able to use it.
Basti
  • 666
  • 2
  • 11
  • 29
2
votes
1 answer

Drupal: "Unable to create CTools CSS cache directory. Check the permissions on your files directory."?

I am new to drupal, and am trying to help a friend with their drupal site, even though I specialize in Wordpress. i did some research on this and found results saying that by changing the permisions to 777 it would fix the issue. I did that, and it…
Nerdy3000
  • 25
  • 1
  • 4
1
vote
1 answer

Drupal 7 - "illegal choice" error for ajaxed select field (not using Drupal FAPI #ajax)

Trying to figure out how to solve an "illegal choice has been detected" error when using non FAPI ajax methods to replace a select list. Example on node create form, there's a link below a select list to open a custom form in a ctools modal window…
stongo
  • 31
  • 4
1
2 3