Some questions regarding custom sources #13434
-
I'm stuck in the scenario where I have 1 main structure for a website and a lot of team specific structures. I'm looking for ways to:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Admin users will see all sources.
All condition rules will be applied, just like element query params (
That’s not possible currently because element IDs are likely to differ from environment to environment. We should be able to make it possible to set the value to an environment variable though, as we did with relation condition rules, but that will be a breaking change that would need to wait for Craft 5.
Do you mean that each team has their own entire Structure section? Or just a subset of entries within a single larger Structure section? |
Beta Was this translation helpful? Give feedback.
-
I mean each team has their own entire structure section. It's not my favorite route to go, but I need the ability to "contain" user profiles to limit them to the content relevant for them. Putting it all in 1 structure would be my preferred way to go, but there are no options to limit user profiles to entries, only to sections, so it's a matter of working with what we have. Was seriously contemplating in duplicating entry types just for the sake of being able to use them in Custom sources, which again, feels like a dirty work around. I guess my best guess for now is to to create a dropdown list in the main structure, only visible for admins and use that dropdown to select the right "team" bucket, then use that value in a Custom source. There used to be a plugin that got me a little closer: https://plugins.craftcms.com/isolate?craft4 but this one is not maintained anymore. |
Beta Was this translation helpful? Give feedback.
-
@brandonkelly would it be possible to add the structure view type of all the entries were in fact in a structure section? Kind of hard to work with multi-level entries this way. |
Beta Was this translation helpful? Give feedback.
Admin users will see all sources.
All condition rules will be applied, just like element query params (
craft.entries().section('news').authorGroup('editors')
will return entries that are in thenews
section AND whose authors are in the user groupeditors
).T…