Skip to main content
Question

Using Google Sync with Components

  • October 7, 2024
  • 1 reply
  • 95 views

Elkin_Tat

I have 3 components on a page, each with 10 instances. I’m using the Google sheets plugin to sync those 30 instances with 30 rows of a spreadsheet. My problem is that each set of component instances starts the sync from the spreadsheet’s first row, so all 3 sets of 10 instances pull only the first ten rows from the spreadsheet.

Is there a way to stop the plugin from restarting its row counter with each new component? (The all worked fine before I tried to abstract the 30 layers into 3 components.)

adTHANKSvance!

ET

This topic has been closed for replies.

1 reply

Benjamin8
  • New Member
  • 5 replies
  • December 6, 2024

Hello, I came to the forum with the same issue. Then later I found a solution:

On your page, select all the instances of a layer you want to sync across all the components in which they are nested (I use the Similayer plugin)

Rename all these instances like so: #googleSheetColumn.indexNumber
→ where indexNumber is an ascending number starting from 1. (to do this, I press cmd+R in Figma and type #googleSheetColumn.$n)

This will make the plugin assign the data to the layers by looking at the rows specified by the indexNumber in the layer names.

Make sure all the layers inside of a component all have the same index, so they can be synced with the same row.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings