Download & Extend

Use context to set the custompage

Project:Custom Page
Version:6.x-1.12
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Is it possible to assign a custompage template using context.
I know you can set a context by custompage, but Id like to do it the other way around.

thanks.

Comments

#1

Interesting idea.

Do you have a specific use-case, in mind that we can test the implementation against?

Thank you.

#2

Now, I may be missing something, because I have not used this mod extensively and just playing around with it now, but here's what im thinking...

Say you have a few content types A,B,C, and D and a couple views.
and you want to apply the same custompage template to nodes of content types A and B and a views page.
You can use context_ui to set a context for these pages. But if there was a context reaction where you could choose a custompage, it would apply that template to these pages.

Im not sure if this would work because you are allowing context to be set by custompage, but since you can set context by path also, you could do away with the path in the custompage settings and just use context to choose the path and set the page template.

In my particular case I'm using a custom mod that sets a context by taxonomy term. you could then have different templates depending on term/section.
http://drupal.org/node/343110

the use cases are endless I think.

does that make sense?

#3

Status:active» postponed

This does make sense, but needs to be implemented.

#4

Subscribing...

#5

How would this be different from Context Layouts? I don't see the distinction.

#6

I originally posted this before context layouts was around, which I have been using lately.
I never ended up going with this module.

#7

Status:postponed» closed (duplicate)

I assume best practice is to use Context Layout and therefore closing the issue.

#8

I think there is a bit of overlap between custom page and context layouts.

The distinction I make when I try to think which I should use is,

  1. Use context layout for when you need a custom layout that is repeated throughout the site.
  2. Use custom page when you need a once off page that you would have to create lots of regions that will only be used once.

I am a lot more familiar with context layouts then custom page though so I could be not understanding custom page to its full extent.