Place ones operate off of extended properties. You'll need to mark the place with An ExtProps var using something like the place settings contribution, and do some sort of enable screen. This will mark the place with the ExtProps that controls visibility of the tab. Does that make sense?
1 person found this helpful
There was an example of this in the jivesoftware/GitHub4Jive · GitHub repo:
So I was able to get the ext props to work to show the place-level action link correctly.
The ability to show a content level app-action was a bit trickier. Here's what works:
<action id="com.jmfamily.ghostpublishcontentaction" path="jive/actions/content/*?filter=equals(context.containerID,1001)" label="Ghost Publish" view="ghost-publish-content-action"/>
<action id="com.jmfamily.ghostpublishplaceaction" path="jive/actions/places/group?filter=equals(context.extprops.ghostpublish,true)" label="Ghost Publish" view="ghost-publish-place-action"/>
I took tracing through the code, but I found a number of context parameters on a content object that aren't documented. This doc says parentObjectID should be there but its not (maybe on a place?). But for content, the context.containerID works like a charm.
Through some extensive means, I also figured out a way to make links user-specific based on permission group membership using extprops (I know this will be ootb in the cloud soon).
- Create a webhook on user login
- from your services layer, call jive and find out if the user is in the required permission group
- set extprops on the user like "myspecialgroup":true
- then the filter for the for the action should be filter=equals(user.extprops.myspecialgroup, true)
One caveat to this solution...you can't specify the type and id of the container...so there may be some overlap since the container id isn't unique across all containers.
I dug into the code that parses the filter and found that it should be able to handle multiple filters in the path. However, I could not find a way to use an ampersand in the path as it breaks the app.xml when installing the add-on.
I tried this exact capability a few weeks ago and ran into similar issues. assing in multiple filters isn't supported... :/ but the request has been logged.
Hi Tim Mila
I am having the same issue. we are on 7.0.2 on premise. I want to display app action link in only one social(secret) group. so I have used the following filter criteria..,But the link is not displayed. May I know how you resolved the issue? Have you created ext props as mentioned above?