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

One symbol - multiple text variable #8

Open
surajnaikin123 opened this issue Sep 13, 2017 · 6 comments
Open

One symbol - multiple text variable #8

surajnaikin123 opened this issue Sep 13, 2017 · 6 comments

Comments

@surajnaikin123
Copy link

Feature request:
When can you release a version where one can use a single symbol with multiple text variables.

screen shot 2017-09-13 at 2 54 16 pm

@DWilliames
Copy link
Owner

Hey @surajnaikin123, I think I may have already implemented this.
See https://github.com/DWilliames/Google-sheets-content-sync-sketch-plugin#working-with-symbols

Essentially if you name your layers within the symbol #label and #value then have column in your spreadsheet called Label and Value it should work.

Let me know how you go, if if that doesn't make sense.

@surajnaikin123
Copy link
Author

So should the layer of the symbol be named explicitly as 'item.1', so it refers to the whole first row of text variables?

@surajnaikin123
Copy link
Author

Ok got it. For now the values has to be in the same row. Is there any way the name of the layer can be named as "#label.1,value.3' or another way you think fit - so that I can refer a specific row & column for one symbol instance.

@DWilliames
Copy link
Owner

Good idea. Can't at the moment – but I'll look into adding that.

@surajnaikin123
Copy link
Author

Thank you so much, so far the existing plugin has been nicely added into my workflow and it's definitely helpful. Now I can send an excel to my client and they can change the text as they want. There is just one more feature request, when a longer text gets imported, the multiline text into design changes to a single line. Can the text refresh within confined boundaries of the object or at least just the width. Thanks again.

@DWilliames
Copy link
Owner

@surajnaikin123 sorry I didn't reply earlier. The text layer should stay multiline if you set the alignment to be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants