If you use a selection rule to override the front page using the standard Drupal string of "<front>", the selection rule is borked when it's displayed, e.g.:
This panel will be selected if Node being viewed is type "Category", and Current path is "&amp;lt;front&amp;gt;".

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

travisc’s picture

Instead of using a path how about using some PHP

$homepage = FALSE;
if (drupal_is_front_page()) {
  $homepage = TRUE;
}
return $homepage;

this should work i think...

DamienMcKenna’s picture

@travisc: the selection rule does work correctly, the bug is in relation to how the summary information is displayed.

merlinofchaos’s picture

Project: Panels » Chaos Tool Suite (ctools)
Version: 7.x-3.x-dev » 7.x-1.x-dev

This would be a CTools issue.

jenlampton’s picture

Title: Selection rule borks display of "<front>" » Selection rule for "Is Front Page"
Component: User interface » Page Manager
Category: bug » feature
Priority: Minor » Normal

I think it's a very common use case that people want to select on "is this the front page" or not. How about we provide a selection rule so we don't have to use PHP code?

jenlampton’s picture

Status: Active » Needs review
FileSize
1.4 KB

added new rule.

jenlampton’s picture

Issue tags: +Needs backport to D6

tagging for backport.

merlinofchaos’s picture

Status: Needs review » Fixed

I feel silly for never having thought about this rule!

Committed to D6 and D7 after fixing the form for D6.

Automatically closed -- issue fixed for 2 weeks with no activity.