Linked Questions

1 vote
1 answer
1k views

How do I load classes using the ctools plugin class loader? [duplicate]

Perhaps, the question should be how do I implement ctools plugins using classes to extend different types of an object? I can't find a simple explanation.
Adam S's user avatar
  • 5,031
1 vote
1 answer
372 views

Any way of not to render the pane in panel using custom module? [duplicate]

I dont want to use PHP visibility rule to add a custom condition but I want to hide a pane based on some condition. How can I do that?
Sumit Madan's user avatar
  • 3,473
2 votes
0 answers
50 views

What is a ctools plugin? [duplicate]

What is a ctools plugin? Why would one want to use a ctools plugin ? What advantages does it have over the current hook system? Is there currently documentation regarding usage of ctools plugin? I ...
chrisjlee's user avatar
  • 6,550
1 vote
1 answer
5k views

How to restrict access to content based on roles (multiple levels) and show a public preview?

I'm looking for a reliable solution for the following situation: a membership site with multiple levels of access for users (based on roles, say anonymous, and levels 1 through level 4) need to ...
arjan's user avatar
  • 1,463
3 votes
3 answers
2k views

How can I define a selection rule to use for Panels variants in code?

I have some custom PHP code that I would like to use as a selection rule for about 30 different variants. In the future, I may need to update this code, so rather than add the code 30 times, once for ...
Patrick Kenny's user avatar
5 votes
2 answers
2k views

Panels page variant that targets a single node

I am a little new to Panels, but I am using it to manage layouts for different content types and it is working out really well. However I want to be able to create a page variant that will only target ...
BobbyDank's user avatar
  • 354
8 votes
3 answers
1k views

Is there a way to intercept a list of NID's created by a view and use them as a filter for another view?

I am at the point in Drupal experience where I am attempting to solve site design challenges at the custom code level using Drupal and Views APIs. As usual, my apparently simple attempt to solve a ...
Ashlar's user avatar
  • 5,115
6 votes
3 answers
1k views

Panels visibility rule: Hide if value is in the query string

I am trying to use a visibility rule in Panels to hide a block based on whether the query string has a parameter (value=5) or not. Panels provides a String: URL path visibility rule by default, but ...
Patrick Kenny's user avatar
0 votes
2 answers
1k views

Is there a way to add new custom selection rules for panels?

I find the pre-supplied list of selection rules to create panel variants to be quite lacking. For instance, if I am using panels to override taxonomy term pages, and I have some arbitrary boolean ...
Adam Friedman's user avatar
0 votes
1 answer
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 ...
Patrick Kenny's user avatar
2 votes
4 answers
602 views

Structured layout in Drupal

I'm having trouble understanding how to approach layout in Drupal. I want to create a structure where (authorized) users with no designing skills can add content by simply adding content selecting a ...
Anders Svensson's user avatar
1 vote
2 answers
889 views

How to create a panel for a argument path

How do you create a panel for a url that looks like product/%nid/title. The Title should be from the node. The node paths have already been setup with pathauto. What i have so far in my panel The ...
sasdev's user avatar
  • 335
0 votes
2 answers
581 views

How do I put registration form in panel in Drupal 7

I would like to know how to put a registration form or any other form to make a new content type in panels. I know the first thing to do is to put the registration form in a block. How can I do that?
newbie's user avatar
  • 368
0 votes
1 answer
496 views

php code in block - Load node

I have previously used <?php print $node->field_listing_artist[0]['taxonomy_term']->description; ?> on page.tpl.php. What this does is prints the description of the related taxonomy term ...
IamOnStage's user avatar
0 votes
1 answer
277 views

how do I theme rounded corners in Panels 7.x-3.3

I looked through older questions & answers and some examples about styling rounded corners and they seemed valid but when I look into the code in Panels 7.x-3.3 I see an entire function that ...
fndtn357's user avatar
  • 605

15 30 50 per page