The Chaos Tool Suite is a module containing a set of APIs and tools to improve the developer experience.

learn more… | top users | synonyms

0
votes
0answers
9 views

One Modal Form, various destinations

I am developing a page where various links open the same popup login form (using the Modal Forms module), but the form is supposed to redirect to a different place depending on which link the user ...
0
votes
1answer
34 views

How to use ctools modal to popup some fields of a node on node view?

I want when a user is viewing a node, some of the node fields will be shown as a popup (without any buttons). How can I do it? Thank You!
0
votes
1answer
20 views

Error 'Cannot redeclare ctools_menu_add_tab()' after migrating website

After our hosting provider has migrated our website to a new server this fatal error occurs when accessing the site: Fatal error: Cannot redeclare ctools_menu_add_tab() (previously declared in ...
0
votes
0answers
16 views

Adding panels to a ctools multistep frorm

I'm trying to build a ctools multistep form, and for most of the pages, the simple form api works just fine. However, within one of the steps i'd really like to show something a bit more detailed: ...
0
votes
0answers
16 views

Modal form login error using two tabs

I am using modal form for login. There is a blocker issue that I am facing. Open two tabs in single browser. Login in first tab. Move to second tab and click on login. It create some AJAX error. ...
0
votes
1answer
21 views

Ajax ignoring my default_value

I have a drupal form that contains a select box. Next to the select box is a link that pops a ctools modal up with an inner form that adds a value to the database table that drives the original select ...
0
votes
0answers
11 views

mvf field is not working with view dependant filter

mvf field is not working with view dependant filter. I created a mvf field . I want its view filter with view dependent filter module . Its filter is working fine when the field is not in dependant ...
0
votes
0answers
59 views

Modal Multi-Page Form Validation/Callbacks

I have the following multistep form. I would like to validate the email address to confirm that it is not registered in my database. If it's not I would want to register the user (my server doesn't ...
0
votes
0answers
30 views

WSOD on 7.20 after failed attempt to update web form, media, ctools, context modules

Attempted to run security updates for those modules. Update failed. Can't login. WSOD. (Hosted on Bluehost shared server) Error Message from log: PHP Fatal error: Call to undefined function ...
0
votes
0answers
11 views

How to use token context in panels?

In panels page manager there is a token context available. But when adding such token context i only see an empty settings page. How to use it?
0
votes
0answers
19 views

How to integrate ctool Modal with VBO

I have a big problem with Views Bulk Operations and Ctools. I defined a new button in VBO such as: Print and displays it on Content View List. Into the Content View List, I check any rows into View ...
0
votes
1answer
62 views

Why is redirect after login not working?

I use Ctools Modal to show the login form to users in an overlay. If a user enters right data then he is logged in and the page is refreshed. The code: function login_overlay_menu() { ...
0
votes
2answers
27 views

hook_context_default_contexts() in Drupal 7?

I used Bulk Export to export all my Context definitions into my module in a function that implements hook_context_default_contexts(). However, my default context definitions do not appear if I delete ...
0
votes
0answers
14 views

Add multiple items text field in ctools content type plugin settings form

I Have a form in a ctools content type plugin and I want to add a textfield that allows the user to add multiple items. Can anyone offer advice on achieving this?
0
votes
1answer
202 views

How to open modal form on page load

I'm using modal form in drupal7.26 with WEBFORM module and is working fine when I click a link the form opens in new modal. What I want is to open the same WEBFORM with out clicking any link instead ...
0
votes
1answer
37 views

Check if a panel page is enabled programmatically?

I need to be able to verify if a panel page (which is just a variant of a ctools page) is enabled or disabled. How would one do this, programmatically? If it is disabled, how would one enable it, ...
0
votes
0answers
50 views

ctools modal and block edit form via contextual links

I have created modal window with ctools: function custom_menu() { $items = array(); $items['test/%ctools_js'] = array( 'page callback' => 'test_form', 'page arguments' => array(1), ...
0
votes
0answers
75 views

Javascript not loaded in loading ctools modal

I have a some modal forms, the link of those embedded in views result, link are somethings linke share/nojs/2 , I register a menu in callback of the links, It work correctly for root user, but I ...
1
vote
1answer
45 views

How to use ctools_ajax_command_redirect with $_GET parameters

Is it possible to use ctools_ajax_command_redirect with $_GET Parameters ? I am only able to redirect it to an absolute path as of now ..
0
votes
0answers
38 views

I have a Ctools Modal form. Can I open a link in the form within the modal?

I have a form that opens in a Ctools Modal. I've added a link to a sub-form in the form that I'd like to open within the open Modal and that when the sub-form is submitted, the user is returned to the ...
1
vote
1answer
66 views

How to render a Views Content Pane programmatically?

I have a view which displays all content of type "news" which is tagged with a specific tag, e.g. "world" (passed as parameter to the view). The view machine name is news. It has a display of type ...
1
vote
1answer
29 views

Why does Panels output <section> for some panes and <div> for others?

I'm just wondering what causes Panels Pages (or cTools pages? Never figured out which is which) to output some panel panes in a <section> html tag wrapper, and output the other panel panes in a ...
-2
votes
1answer
50 views

Modal form when windows is ready [closed]

In D7 i'm able to create modal form in a page with ctools and modal form . but i want to show my message in modal form after refreshing my website like welcome message something like Popop message. ...
1
vote
1answer
70 views

Alter a panel page variant provided by another module (programmatically)

How can I alter a panel page variant provided by another module in my own module? I am using Advanced Forum, and it provides a panel page to override Drupal's core forum display behavior and some ...
0
votes
1answer
40 views

How to display the profile page in Modal window

By using ctools, i am able to display a form in modal window. Now i wish to display a page(the profile page) in modal window. Below is the sample code (call by menu page callback) to display a html ...
0
votes
1answer
220 views

How can open add content form in modal form module

I want to load content form (example article content type ) in modal. As Modal module allow to open forms in modal, but by default it given this feature to some of the form. My question is how can I ...
3
votes
1answer
60 views

Is there a way to integrate revisioning with Panels + CTools content types?

I'm using CTools content types to make highly customized Panels panes. The panes together form a Panels Node (I'm using the Panels default module for this). The Panels node itself can be revisioned, ...
1
vote
2answers
51 views

Need way semi complex way to display author posts in views

So I have an interesting request and I'm hoping some of you guys here might know a decent way to solve this. On one of our homepages we have a block that shows current authors posts. This was a ...
0
votes
1answer
96 views

Drupal7: Addressfield Module: Add State (for Germany) and Drop Down Menu

How do you change the default fields in the addressfield Module for a given country? For Germany you have , while for USA you get , including a nice drop down menu with all 51 states. I want to ...
0
votes
2answers
123 views

storing value in session with ctools wizard

I have created a multi-step form using Ctools wizard and its working fine. In multi step form, there is only images, so user will select the image and click on "Continue" button for next step. In the ...
0
votes
1answer
225 views

How to add Profile2 form to ctools multistep wizard

I've been basing this off of Grashmash's article over building a multistep registration with Ctools, and I can't seem to get the Profile2 form in. I don't want to use the Field Group multistep option ...
0
votes
2answers
177 views

Instruct a CTools modal form NOT to use AJAX

I want a form to be loaded using AJAX in a modal, but when it is submitted, it should submit normally (it is posting to an external site, so it has to). Here's what I have so far: The code which ...
0
votes
1answer
153 views

ctools modal form shows ugly access denied

I have made a modal form using ctools. The form works okay when the user has access rights, but with no access rights an empty modal form is showing and I get a browser error saying "An AJAX HTTP ...
0
votes
0answers
159 views

Call drupal_add_js and drupal_add_library in ctools modal callback

I am trying to load yandex.maps on ctools modal, and i need to pass map settings to js and load yandex.api js libraries inside modal. But somehow drupal_add_js and drupal_add_library doesn't work ...
0
votes
1answer
83 views

ctools_modal_render() in a condition

I have the following code in my custom.module (using it in hook_init()): if ($js) { // Required includes for ctools to work: ctools_include('modal'); ctools_include('ajax'); } if ...
0
votes
1answer
396 views

Comment form is not working with ctools popup

I want to display a comment form in popup in drupal 7 website. I have created a custom module to display comment form in ctools modal and added a link in the views page. Comment form is displaying ...
0
votes
1answer
251 views

Ctools modal close breaks page JS

I have created a custom module which opens modal with a specific Url Pattern. I'm using the url in a view and it works well. The only problem is that I also load another piece of jQuery to create a ...
1
vote
1answer
519 views

Ctools modals without AJAX

What's the sanest way to present a Ctools modal to the user while bypassing the normal AJAX workflow? For example, how could I show a completely JavaScript-generated "Are you sure you want to log ...
1
vote
1answer
32 views

Tracking an authenticated user's first visit to a Panels page and forward them to another page on subsequent visits

I'm looking to expose authenticated user stat information to CTools / Panels. Basically, I need to have a Panel variant that says: If the user has never visited the page, display this variant, if ...
0
votes
0answers
49 views

Open menu in a ctools collapsible

With reference to the article : painless-collapsible-divs-drupal I have been trying to get the menu to work as collapsible. print theme( 'ctools_collapsible', array( 'handle' => 'Click me', ...
3
votes
1answer
323 views

Ctools multistep form cache

I, like other people on here it seems, have been trying to build a multi-step form using this tutorial about how to use the Ctools wizard to do so. My ultimate goal is to replace the registration form ...
0
votes
2answers
127 views

Visibility rules if field is filled in

We made a visibility rule to display a field when a second field has been filled, and display another field when the second field is empty. It works well, but since we updated Ctools and some Drupal ...
4
votes
1answer
118 views

Page Manager and Panels settings — where do they live?

I'm continuing my quest to make every piece of common site architecture into something that can be displayed in a View. Right now I'm on Panels panes and Page Manager pages. I have a site that is ...
0
votes
1answer
94 views

Can I use the CTools modal functionality under HTTPS adn Display Suite?

The client for a new project wants their content to display in a modal overlay. From my research so far, it seems using ctools is the way to go. My question is, some of this content will be product ...
0
votes
1answer
51 views

How to make sure that panels classes are added to a CTools pane?

I am attempting to define a CTools content pane based on the tutorial here. However, when I add my pane to the panel, no matter what region (left sidebar, header, footer) I add it to, it is printed ...
0
votes
0answers
82 views

Generate breadcrumbs for tabbed content

I inherited a Drupal 7.22 site that uses Panels 7.x-3.2 (and Panels Everywhere 7.x-1.0-alpha1 and Ctools 7.x-1.3) and I've tried Panels Breadcrumbs module for the breadcrumbs. The site has a few ...
1
vote
1answer
118 views

Process a token from panel context in a ctools content type plugin

I have a ctools content type plugin. It has a simple text field settings form. In there I am putting a token from the panel content e.g. %vn_subject:vn-subject-facebook-link. I am then rendering this ...
5
votes
2answers
105 views

What is the difference between a view mode and a style plugin?

It is possible that you can define the difference between a view mode and a style plugin. As far as I understand a view mode defines what fields are outputted and a style plugin decides how to render ...
1
vote
0answers
115 views

Modal Register form is not working

I am using the Modal forms (with ctools) module for registration and login in my Drupal 7 site. When I click login/register, I am able to log in with an already existing username, but I am not able ...
0
votes
0answers
81 views

managed_file field in ctools modal

I make a form using FAPI that contain one managed_file and I render it using ctools in a modal (so it will submit ajax) after submit the form, the field not reset it is still has the old image how ...