Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [chaos-tool-suite]

The module contains a set of APIs and tools to improve the developer experience.

Filter by
Sorted by
Tagged with
56
votes
2answers
20k views
31
votes
2answers
11k views

What's the difference between Page manager and Panels?

I'm writing this question, because I see confusion all over the Drupal community about "what is Page manager", and "what is Panels".
6
votes
2answers
14k views

How to load a node edit form using Ctools module in Drupal 7

I am trying to load a node edit form into a modal frame using Ctools. The following is the function I am using. So far the $op = 'view' part is working fine, but I cannot get the node edit form to ...
3
votes
1answer
2k 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 out?"...
8
votes
2answers
5k views

How to theme Panels properly?

I am using Page Manager and Panels, providing custom node panels with selection rules by type (e.g. one panel variant for article-, one panel variant for blog-content type). This works smooth so far, ...
5
votes
1answer
12k views

Drupal 7 - How to get AJAX response displayed in a ctools modal?

I want to create a ctools modal popup when a button is pressed. function custom_form( $form, &form_state ) { $form['btn'] = array( '#type' => 'button', '#value' => t('add'), '#...
4
votes
1answer
63 views

How do I include linked data to a Page in Page manager?

Given two pieces of data, for example two entities, two nodes; when viewing one of them, how do I pull in data for the other one into Page manager/Panels?
1
vote
1answer
687 views

Using ajax with pager in ctools modal window

Continuing my work from here, I have a modal window that displays a text field and submit button. When the form is submitted, a Solr search is run using ajax, and the first ten results are displayed ...
4
votes
0answers
962 views

Difference between using features, strongarm & ctools exportable api [closed]

Whats the difference between using features, strongarm or the ctools export api to export config settings? I cannot use the features modules so I need to find an alternative because its not part of ...
10
votes
3answers
3k views

AJAX calls in CTools Content Type Plugin?

I'm building a CTools Panels Content Type (i.e., that thing you insert into panels when adding content, not a type of node) and I am trying to use a form item's #ajax attribute to set some default ...
2
votes
5answers
693 views

Split node edit tab in several tabs with panels (or programmatically)

I have a content type with many fields, so that loading node/%node/edit is a pain ! In order to split node edit form in smaller forms (menu tabs), I used Page Manager. What I did so far Enable the ...
2
votes
1answer
2k views

Create jump menu with more options using programmatically

I am using Drupal 7 and CTools. I want to create a jump menu using Ctools. I have checked the example code provided in the Ctools module. And it is working fine for one link only. How do I add more ...
4
votes
1answer
11k views

How do I create a form in a modal dialog with Drupal 7?

There seems to be many solutions for implementing a modal dialog including Ctools, Colorbox, Simple dialog, and Ctools Auto-modal. I'm not sure which is the best to use for simple coding through the ...
4
votes
1answer
2k views

Caching Panel page variants

I don't believe I have never run into this before, but I have a Panels page with a few variants based on selection rules. Is there a way that you can serve up cached results for the whole page (not ...
2
votes
1answer
354 views

How to create different Panels for Add and Edit node?

There is a default "add/edit node" panel inside the Pages content. When I use it, it utilize the its variant for both add and edit forms. I would need to differentiate between both of these two ...
5
votes
2answers
2k views

How to display a form in a panel page?

My goal is to display a form in a page made with panels. The form will be between content panes. The single page (made with page manager & panels) will be like below: Content Pane Form Content ...
2
votes
1answer
634 views

RSS not appearing in meta tag

An RSS-feed on my site doesn't show up in the HTML <head> as it is supposed to, which makes it very difficult to find. Here's my situation: A view is displaying the latest blog posts. This view ...
1
vote
2answers
465 views

Ajax not output to Ctools modal when using pager

So in my continuing quest to display a form with Solr search results in a Ctools modal window and use a pager, I've managed to get everything to display fine after the initial search, but when I use ...
1
vote
1answer
522 views

Views 3.8 hook_views_default_views() stopped working

I have a default view made using the views hook hook_views_default_views(). It was working right and when I updated to Views 7.x-3.8 it stopped working. It is not shown in structure -> views, the ...
0
votes
1answer
2k 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
1k views

Define a Panels visibility rule programatically

I'm trying to define a Panels visibility rule (access plugin) programmatically but I'm running into a problem. My code is below. This code works as a Selection Rule (on the Access tab), but when I ...
0
votes
1answer
238 views

Table not rendered using ajax_render in ctools modal window

This is a continuation from this question,where I'm wanting to display a form for searching Apache Solr and displaying the results with a pager. I've modified my approach to have the search run from ...
0
votes
2answers
1k views

hook_context_default_contexts() ?

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 ...