As per our conversation I have found that the custom php content type is only getting past the unknown context.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 290815-3-panels_optional_context.patch | 3.31 KB | sdboyer |
| #2 | panels_optional_context.patch | 1.32 KB | gordon |
As per our conversation I have found that the custom php content type is only getting past the unknown context.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 290815-3-panels_optional_context.patch | 3.31 KB | sdboyer |
| #2 | panels_optional_context.patch | 1.32 KB | gordon |
Comments
Comment #1
gordon commentedI did some more research and I found that adding a single like would allow you to select which context to use. This is perfect as I don't need to workout which context I need to grab.
I am not sure if this will work with a panel that has no contexts, but for my purpose it is exactly what I want.
Comment #2
gordon commentedActually to fix this was very easy.
I fixed the use of optional context, and made a change the configuration forms so that if there is no required context it will display the optional context so you can specify a context of not to be past to the php code.
'
I have added to the custom_php an optional context of "any" so all contexts will be displayed.
Comment #3
sdboyer commentedOK, so...I'm a bit baffled as to how your patch is working for you :P
Attached is a patch that takes the final step that, at least for my master -dev working copy, fixes this problem.
Comment #4
sdboyer commented(after gordon's via-irc-thumbs-up)
Great. Committed.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
denis_sle commentedI'm using the last dev version ( panels-5.x-2.x-dev November 17, 2008) and I can see context only as admin user,
here is the code for custom php:
for regular (loggedin) user , this code return:
for admin user it return full context, all
Comment #7
denis_sle commentedComment #8
Chris Einkauf commentedComment #9
sun.core commentedSorry, but Panels for D5 will not see any further fixes, since Panels for D6 simply advanced too much and no one cares for D5.