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
2
votes
1answer
463 views

What is the best way to tell anonymous users apart?

My company wishes to split their website so that anonymous users are given slightly different sites based on a question when they first visit. I intend to use a cookie to store the answer to the ...
0
votes
0answers
355 views

Ctools rebuild form after modal-form submit

I have a form with a table that displays a number of rows (each row contains user info). On form submit I edit all the users that are displayed in the table. Above the table I render a ctools link "...
0
votes
1answer
56 views

How do I target different types of anonymous user after a gateway page?

So there are a whole bunch of useful tools in Drupal for changing how a website looks depending on a number of factors, including which page you're on, what roles you have, whether you're logged in or ...
1
vote
1answer
520 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 ...
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 ...
0
votes
0answers
79 views

How to add css class to local action menu item created with page manager variant 301 redirect?

I add some local action links with Page Manager using HTTP response code variant of type 301 redirect. Anybody knows a way to add a unique class to such a link?
1
vote
1answer
285 views

Updates: keep panels pages, views, etc.. updated via hook_update_n?

im having a little trouble keeping a project update. I track the code via a private git repo, and for each update I follow those steps (first on stagin, then on production): update all the 3rd pars ...
0
votes
1answer
87 views

Pagers of two different contents are conflicting

There are two contents in my website, say CA and CB, I created a view for each one and it displays 10 items and for the rest of the items pager is used. CA is in the sidebar first region and CB is the ...
1
vote
0answers
259 views

form_alter hook in a ctools content-type plugin not called

I'm writing a ctools content-type plugin to use it as a panels pane. In my plugin code I try to use the form_alter hook at render for the login_form (not for the edit forms). But the hook seems not to ...
2
votes
1answer
191 views

Missing group audience field(og) from node add form by panel

I have 2 content types, and they are Organization(group) and Contact(group content) From Contact, I add the group audience field and bundle with Organization. When I use the node/add/contact from ...
0
votes
1answer
495 views

Node Form Not submitting on ctool modal

I have a custom form, on submission of which I am calling ctools modal with a node form(content type: turn). Code for Custom Form. function _my_module_name_files_listing_form($form, &$...
0
votes
2answers
1k views

AJAX error when ctools_modal_command_dismiss() is called

So I'm having a problem with dismissing a Ctools modal within a form submit's callback function. Once I have processed any submit data, I'd like to dismiss the modal without redirecting the page (easy ...
0
votes
1answer
255 views

Panelizer page manager variants not selected

I have installed the page manager, panels everywhere and Panelizer. A long time ago I set up a few content types and managed them with Panelizer, it all works fine. I've made a site_template variant, ...
0
votes
2answers
556 views

Drupal 7: Display latest articles by an author with bio

I have a content type called "Author" and have an author field on other content types which has a reference to the "Author" CT. (e.g. News Article having an author field) The "Author" CT has these ...
1
vote
0answers
103 views

modal pop after a user click 3 times in any links on a site

I am trying to make pop a modal window after a user as click on 3 different links on a site. I am not too sure how to achieve it. I am using this JS script to track the click window.onload = function(...
1
vote
0answers
608 views

How to load all contexts of a Panels page?

The Panels Ajax Tab module is loading panes (minipanel pane) on panel pages via Ajax: $pane = panels_mini_block_view($name); echo $pane['content']; This will get the contexts defined on the ...
4
votes
1answer
253 views

How to make a style plugin available only for certain types of panes?

I'm trying to simplify the admin UX on a site with a few different custom style plugins. I have plugins A, B, C, and D. I want plugins A and B only to be able to be applied to menu block panes. I ...
0
votes
1answer
449 views

How to render ctools_custom_content_type_edit_form with ctools_modal_form_wrapper()

I have a scenario where I would like to reload/re-render the ctools_custom_content_type_edit_form after closing another ctools modal. To do so, I've bound an ajax object to the .close element within ...
0
votes
2answers
180 views

How to change category for Panels IPE

How would I change the category from "Fielded panes" in Panels IPE to something else? I can accomplish this through the following code: function template_preprocess_panels_add_content_modal(&$...
-1
votes
1answer
2k views

Ajax modal form window not loading

I already had success in ajax loading a form into a modal window with Ctools but now it fails and I do not why. Maybe someone can help me?! The problem: I create a link on a page which should open a ...
0
votes
1answer
127 views

Override ctools function [closed]

I'm using the Multi-Step Registration module to have a wizard in my user registration. The wizard works fine. You can also select a wizard trail to see in which step you are. As you can see it ...
2
votes
1answer
506 views

Drupal 7 - HTTP/AJAX/JSON responses at same URL with Accept Header (like D8)

Drupal 8 has this new amazing in-built functionality for handling requests from browsers and via AJAX at the same URL using the Accept header, which makes the CTools way of adding "nojs" to URLs, and ...
1
vote
1answer
25 views

Listing content inside an OG based on a tag name provided in the URL

I have a site divided in 4 organic groups: Product Corporate Data Users Users belonging to a group are able to post content in that group as well as read it. Every group has its page accessible ...
2
votes
1answer
268 views

How to get Page Manager to react on path alias before node/%node

I have a CTools Page Manager Panels Variant that I want to apply to a whole load of different content, based on paths. Basically I want this Page Manager Page to handle all paths matching: foo/*/* ...
1
vote
2answers
414 views

CSS fix for stacked gear icons in Drupal Panels? [closed]

When using the Panels module within Drupal, I often end up with multiple gear icons stacked on top of each other, inaccessible to the Drupal admin. For example, take a Panels page with this structure:...
1
vote
1answer
347 views

How can I alter ctools access plugin expectancies?

How can I tell a access plugin to expect a different argument plugin? Surely there isn't a one to one ratio. So I'm working with panels. I've written a custom argument plugin that will take the node ...
0
votes
1answer
295 views

Retrieveing config for a custom ctools content type

I've created a custom ctools content type to make a custom pane for my node/%nid panel. The content type has an edit form with some configuration options for the pane, that I would like to access from ...
2
votes
1answer
305 views

How do I pass the nid of the current node to the first step multistep modal form?

I am using the ctools plumbing to create a nodal form. This is what the relevant part of my code now looks like: /** * Implements hook_entity_view_alter(). */ function mymodule_entity_view_alter(&...
0
votes
1answer
70 views

How do I include a class in a link inserted in an entitiy's link area?

I want to insert a link to a ctools modal popup with a custom style (class) into the link area at the bottom of an entity (e.g. a node). I do this using hook_entity_view_alter. This is how the ...
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 ...
0
votes
1answer
223 views

CTools modal with webform unable to close

I'm using the CTools modal with a webform, the form comes in via ajax. When a user is logged in, all works normally. If an anonymous user clicks on the link for the modal, I'm seeing the following ...
0
votes
1answer
1k views

Call to undefined function ctools_ajax_text_button()

What I need is a link to click and open a form in a modal. Call to undefined function ctools_ajax_text_button() in ctools\includes\modal.inc on line 184 This is how I'm calling the function in ...
0
votes
2answers
22 views

How to clear export_module for a view

I am unable to export a particular view via Features UI because this view is supposedly default by a different module. In features.ctools.inc line 164 - 172: // If this object is provided as a ...
0
votes
1answer
447 views

Targeting text field on node edit form from ctools modal

I have a multivalue image field, and using FileField Sources, I've added a link that displays a ctools modal window that allows a user to search Apache Solr for images. The results are displayed in a ...
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!
1
vote
1answer
203 views

Get the value of a field of the taxonomy term referenced with an Entity Reference field

I have a taxonomy vocabulary "Partners", with boolean field field_1. When I create a user, I attach to it a term from the vocabulary "Partners" with an Entity Reference field. Is there a way to get ...
1
vote
0answers
100 views

Relative URL in the Page Manager

This must be something simple but I cannot figure out how it should be done. I have a page created by Page manager (and Panels) on the url [page-path]. I have added a custom content with an url in it:...
1
vote
1answer
94 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 /...
1
vote
1answer
90 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
1answer
44 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
1answer
23 views

How to discard unsaved changes to a variant?

While working on a variant for /node/%node I did something that now causes a 'The requested page "/admin/structure/pages/edit/node_view" could not be found.' error and am unable to access any of the ...
0
votes
1answer
77 views

Multilingual Valid Path (Domain Access)

I have a path controlled by page manager & domain access selection rules. Let's say I'm on the Main (US) version of the page, and I need to know of the spanish version of the page is valid. /...
1
vote
0answers
389 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 ...
1
vote
0answers
257 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 ...
3
votes
2answers
1k 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() { $items['...
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 ...
0
votes
3answers
471 views

Admin Landing Page - How to create?

Ok, I know there is a tutorial out there somewhere for this, I used it once before. Now, no matter how I search, I can't find it. Basically, I want to create this: In other words, an admin landing ...
0
votes
1answer
2k views

How to open modal form on page load [duplicate]

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 ...
1
vote
1answer
921 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, ...
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 ...