Linked Questions

1
vote
1answer
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.
1
vote
1answer
354 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?
2
votes
0answers
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 ...
1
vote
1answer
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 ...
3
votes
3answers
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 ...
5
votes
2answers
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 ...
8
votes
3answers
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 ...
6
votes
3answers
964 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 ...
2
votes
4answers
599 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 ...
1
vote
2answers
880 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 ...
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
2answers
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 ...
0
votes
2answers
561 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?
0
votes
1answer
477 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 ...
0
votes
1answer
272 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 ...

15 30 50 per page