Use Isolate in front-end templates #42
Answered
by
aaronbushnell
patbrumfield
asked this question in
Q&A
-
|
Is it possible to access any of Isolate's logic via front-end templates/twig? I'm looking to create a front-end experience where users log in and then have access to only specific entries. Open to any ideas here! |
Beta Was this translation helpful? Give feedback.
Answered by
aaronbushnell
Feb 11, 2022
Replies: 1 comment 2 replies
-
|
Hey @patbrumfield, you should be able to use any of the variables in IsolateVariable.php on the front-end. Not sure if any of them are useful for your particular case, but you can call them like... {{ craft.isolate.getUserEntries(currentUser.id) }}
{{ craft.isolate.getIsolateEntries(currentUser.id) }} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
aaronbushnell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @patbrumfield, you should be able to use any of the variables in IsolateVariable.php on the front-end. Not sure if any of them are useful for your particular case, but you can call them like...
{{ craft.isolate.getUserEntries(currentUser.id) }} {{ craft.isolate.getIsolateEntries(currentUser.id) }}