Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Be able to create a dynamic list with multiple collections #18

Open
wizhippo opened this issue Nov 10, 2018 · 8 comments
Open

Comments

@wizhippo
Copy link

Currently you can use a dynamic list and use the current content location as the parent and add individual items manually. The ability to add additional parents manually would be useful.

For example you have folder which contains banners to show on home landing pages along with showing the banners in the current location without having to specify the global banners one by one.

@emodric
Copy link
Member

emodric commented Nov 10, 2018

The built in query type was made simple(r) (similar to eZ legacy fetch) on purpose. We didn't want to cram in many features in it to simplify BC and upgrading.

You can however create your own query type (it's in the docs on https://docs.netgen.io) by using query type traits available in this repo to cut down on code duplication. Ping me for pointers if you need them :)

@wizhippo
Copy link
Author

wizhippo commented Dec 5, 2018

So I should be able to use ParentLocationTrait and LocationType as a reference and make versions that allows multiple parent locations? Is this the right direction?

@emodric
Copy link
Member

emodric commented Dec 5, 2018

Yep, that's about it!

@wizhippo
Copy link
Author

wizhippo commented Dec 6, 2018

Playing with this a bit and I think I have the issue a little clearer and more generic. Right now we can add multiple manual items but only a single collection. How bad of an idea is it to allow multiple collections like manual items or a collection that wraps a number of collections?

@ilukac
Copy link

ilukac commented Dec 6, 2018

We didn't want to complicate this too much. The aim is to focus on how to solve 80% of use case, then for the rest its fairly straightforward to implement custom queries, even more so if you use Site API ;)

@emodric
Copy link
Member

emodric commented Dec 6, 2018

Concept of a collection that wraps other collections is something we already toyed with, to be honest, but later "postponed" as it would significantly increase complexity of the user interface.

@wizhippo wizhippo changed the title [Feature] Be able to create a dynamic list with the current content and a second parent [Feature] Be able to create a dynamic list with multiple collections Dec 6, 2018
@wizhippo
Copy link
Author

wizhippo commented Dec 6, 2018

I understand, for now I will continue in the direction of a custom collection. Not sure if you want to close this issue or leave it open for a future feature.

@emodric
Copy link
Member

emodric commented Dec 6, 2018

👍

It can stay open, no harm in that :)

@emodric emodric transferred this issue from netgen-layouts/layouts-ezplatform Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants