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

Multiple items show same handle in UI #12

Closed
munki-boy opened this issue Jun 13, 2014 · 7 comments
Closed

Multiple items show same handle in UI #12

munki-boy opened this issue Jun 13, 2014 · 7 comments

Comments

@munki-boy
Copy link

Create section with title and image
Input say three items in section (a,b,c)
Create another section with Association of first section but select both title and image
When choosing in the selection UI I see:
a, a, b, b, c, c
rather than I would expect
a, 1.jpg, b, 2.jpg, c, 3.jpg

@nilshoerrmann
Copy link
Contributor

So, you'd like to have your associated entries appear twice in the the select, is that right? (1.jpg belongs to the same entry as a, 2.jpg belongs to the same entry as b…)

@munki-boy
Copy link
Author

Well not really I don't think so, but it came twice like a,a,b,b,c,c, already as here with two of each letter. I assumed it had two because I selected two items in the section manager field.

Maybe it's a different thing but if I choose only one item then I just get a,b,c OR 1.jpg,2.jpg,3.jpg as I might expect, but if I select both in the section manager field I then get a,a,b,b,c,c, which seems odd in some way? I mean to duplicate the "title" of them.

@nilshoerrmann
Copy link
Contributor

I understand your issue (not sure though, why it's happening).
But why do you attach two fields of the same section in your settings (title and image)?

@munki-boy
Copy link
Author

One thing was trying to help out by testing things and also because I thought could drag and drop the title and src of an image into a textarea like with SSM drop text.

@nilshoerrmann
Copy link
Contributor

I just checked and the way Symphony stores associations doesn't allow the selection of two fields from the same section. So that you got a, a, b, b, c, c was a bug – if you update core and extensions you should now see a, b, c.

One thing was trying to help out by testing things and also because I thought could drag and drop the title and src of an image into a textarea like with SSM drop text.

Thanks for testing, it's very much appreciated! I was just trying to understand, if there is a structural reason why you are seeking this setup.

Drag and drop into textareas is not supported right now and I'm not eager to add it. It just didn't work very reliable in Subsection Manager and maybe it would be nice to have a solution that does not depend on a specific field type.

If you'd like to combine multiple values from one section in your options (similar to custom captions in SSM), please add a Reflection field to the section that contains the associated data and build the caption you need (markup is allowed). You can then link to this Reflection fields in the section settings.

@munki-boy
Copy link
Author

OK cool, it's just quite useful on a personal site where I describe walking routes with pictures next to the particular paragraph. I agree it's a bit flakey but might be on my upgrade to 2.4 path for that site.

I'll get the reflection field installed and check that out.

@nilshoerrmann
Copy link
Contributor

Moved to symphonists/association_field#4.

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

2 participants