Use context to set the custompage
loze - September 11, 2009 - 20:15
| Project: | Custom Page |
| Version: | 6.x-1.12 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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.

#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?