solved Any examples of adding an item to pending?

SteveX
SteveX
@ultrajam
7 years ago
2,583 posts
I have profiles on a quota which are created by a power user.

I'd like to add a "publish" button to those profiles, and have them added to a pending queue.

Would I be able to add to pending from within a view function when the publish button is clicked? Are there examples anywhere of how I would try that from within a function?

Thanks


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 12/24/17 03:17:47AM
brian
@brian
7 years ago
10,136 posts
This would need something custom to basically flip the "profile_active" key on the profile data from "0" (inactive) to "1" (active). The pending system does not work with profiles.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
7 years ago
2,583 posts
Thanks Brian, that does help :)


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

Tags