Skip to main content
Improve title and add module link
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

Customizing where How to showdisplay a block for some paths but not if they match some other path also?

Let's say I have nodes with the following paths:

/chapters/university-of-florida/classrooms/class1
/chapters/university-of-chicago/classrooms/class2
/chapters/ucla/classrooms/cla

I'd like to display a custom block I created on these URLs, but I don't want it to show on:

/chapters/university-of-florida/
/chapters/university-of-chicago/
/chapters/ucla/

Any ideas how to accomplish this? Note that there will be new chapters and classrooms being added all the time, so I don't want to have to manually specify the paths.

I think the ContextContext module could work here, but I am not sure how to specify the exclusions...

Any tips?

Customizing where to show block

Let's say I have nodes with the following paths:

/chapters/university-of-florida/classrooms/class1
/chapters/university-of-chicago/classrooms/class2
/chapters/ucla/classrooms/cla

I'd like to display a custom block I created on these URLs, but I don't want it to show on:

/chapters/university-of-florida/
/chapters/university-of-chicago/
/chapters/ucla/

Any ideas how to accomplish this? Note that there will be new chapters and classrooms being added all the time, so I don't want to have to manually specify the paths.

I think the Context module could work here, but I am not sure how to specify the exclusions...

Any tips?

How to display a block for some paths but not if they match some other path also?

Let's say I have nodes with the following paths:

/chapters/university-of-florida/classrooms/class1
/chapters/university-of-chicago/classrooms/class2
/chapters/ucla/classrooms/cla

I'd like to display a custom block I created on these URLs, but I don't want it to show on:

/chapters/university-of-florida/
/chapters/university-of-chicago/
/chapters/ucla/

Any ideas how to accomplish this? Note that there will be new chapters and classrooms being added all the time, so I don't want to have to manually specify the paths.

I think the Context module could work here, but I am not sure how to specify the exclusions...

Any tips?

edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
Source Link

Customizing where to show block

Let's say I have nodes with the following paths:

/chapters/university-of-florida/classrooms/class1
/chapters/university-of-chicago/classrooms/class2
/chapters/ucla/classrooms/cla

I'd like to display a custom block I created on these URLs, but I don't want it to show on:

/chapters/university-of-florida/
/chapters/university-of-chicago/
/chapters/ucla/

Any ideas how to accomplish this? Note that there will be new chapters and classrooms being added all the time, so I don't want to have to manually specify the paths.

I think the Context module could work here, but I am not sure how to specify the exclusions...

Any tips?