I'm using pages and panels to display nodes.
Instead of using "node/nid" I'm using "case/nid" in a custom page
When I used statuses block in node/nid it works ok and attaches the status update to its node which is not the case when putting the same block in case/nid page
Using a debugging code from another post I get this:

Type: domain; Recipient ID: 0
Access granted to add a status in this context

Statuses context is arranged so that Node comes first.
How can I make case/nid works as node/nid?

Comments

icecreamyou’s picture

Status: Active » Fixed

You can change where contexts apply on their respective advanced settings pages. If you go to admin/config/statuses/contexts/node you will see options to change where it applies that look similar to how you can set where a block appears. Keep in mind that this only works if the ID is the second argument (e.g. it won't work if your URL is "some/text/NID").

Note that you should never do this for the "User profiles" context (and in fact ideally the module itself would keep you from doing so...).

Orange Studio’s picture

I did so
In admin/config/statuses/contexts/node I set "Show on only the listed pages." to case/*
Now when I post to case/1 I can see the post in case/1 and case/2 as well
And yes the NID is the second argument
I'm not using the default node view page /node/%node in panels instead, a custom page /case/%node
What I'm trying to do is to have unique posts per page as if I'm inside a node.
Thanks

icecreamyou’s picture

Status: Fixed » Postponed (maintainer needs more info)

Hmm. So what status type and recipient ID do you get now (after changing where the context applies)?

Orange Studio’s picture

Getting the same response

Type: domain; Recipient ID: 0
Access granted to add a status in this context

It works only If I'm using a path like:
node/nid
or
url alias for a node

but not when using a custom page with a custom path though the node id is present as an argument in the path
like case/nid

Thanks

icecreamyou’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new515 bytes

Confirmed. This patch should fix it.

icecreamyou’s picture

StatusFileSize
new1.18 KB

Actually I guess we should make this change for the other contexts too.

Orange Studio’s picture

I can confirm that patch in #6 works.
I had to set Apply context on specific pages at /admin/config/statuses/contexts/node to "Show on only the listed pages" and added my custom page path "case/*"
Now it works like a charm.
Thank you

icecreamyou’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.