Hi, from the project page it looks as if this module would allow me to create a context for nodes of a particular type that have been created by the currently logged in user however after installing and enabling all the module I do not see the option available in context's 'conditions' select list. I must be missing something but cannot see where!

Any help appreciated!

Cheers,
Reg.

Comments

drupalreggie’s picture

Hi, I'm still struggling with this - can any lend a hand?

drupalreggie’s picture

Still no joy with solving this...

drupalreggie’s picture

Priority: Normal » Major

Any help available?

dooug’s picture

StatusFileSize
new33.26 KB

I attached a screenshot of how I assume this should work according to the help text.
Context Extras - Condition - Current User
However, this condition doesn't seem to be working for me. Debugging now.

dooug’s picture

Title: Create context for nodes authored by current user » Context "Node Author = <current_user>" always passes if another node form on page
Category: support » bug
Status: Active » Needs review
StatusFileSize
new1.24 KB

Error: I found that my condition of "Node Author" set to "" was always passing. When I enabled node comments on that node type.

Solution: Upon inspection, I realized that with node comments enabled, the hook_form_alter code for that condition was being triggered on the Comment form and always returning true.

I attached a patch that removes the hook_form_alter from the context_condition_author because I can't figure out a reason for it to be there and the condition works without it. The git commit log provides no clues.

(sorry to hijack the issue, but hopefully this solves it!)