Hi Support
We want to be able to redirect non-logged in users to our custom login URLs first if they are not logged in. For example, we want to send a notification when they have received a new message using our internal messaging system built with Toolset, but if they are not logged in they should be sent first to the custom login URLs for the specific WPML languages (en and de):
hidden link (English)
hidden link (German)
After successful login, they should then be redirected to the originally requested URL.
The same kind of background logic should apply when URLs try to access full single posts of the Toolset custom post types: nanny, family, nanny-ad, job-ad, message.
I have seen various posts on the Toolset forum which seem to indicate that this should be possible. I cannot find a plugin which matches our requirements.
I envision some complications involved with our current use of Toolset Access. For example, we have a Toolset View "Find a Native Nanny Guest Search and Results View" which allows a "basic" viewing by guest role of the custom post type "nanny-ad", but the Page containing this view is only accessible for guest role. The Toolset View "Find a Native Nanny Search and Results View", however, is on a Page only accessible to logged in users of one of the family roles (family, subscribed_family, lapsed_family) in order to view the complete single nanny-ad post type. This page access is controlled using Toolset Access. So I can't "ban" guest role from seeing the post type nanny-ad.
Analogously, we have a similar issue with post type job-ad, which currently shows basic fields from post type job-ad in the view "Find a Job Guest Search and Results View" on a Page only accessible using Toolset Access by role guest, and a view "Find a Job Search and Results View" which is only accessible on a Page controlled by Toolset Access using role "native_nanny".
It seems I may have used what now appears to be a "workaround" of controlling access to Pages rather than checking whether a user is logged in, before accessing any of the custom post types nanny, family, nanny-ad, job-ad, message.
Is there a way to achieve our goals? For example by adding something to the single Content Templates perhaps?
I hope my explanation is clear. Please let me know if something is unclear.
Kind regards
Simon