Meet us at Drupa 24. Dusseldorf/Germany. May. 28 - Jun 7.
Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
mattmail  
#1 Posted : Monday, June 18, 2018 11:13:51 AM(UTC)
mattmail

Rank: Newbie

Groups: Member
Joined: 6/18/2018(UTC)
Posts: 2

Hey all,

I'm looking at Customer's Canvas as a solution and I'm wondering if there is a way to programmatically change the content of a text layer from the backend. So the flow I'm looking for is something like:

- A customer saves a design and thus creates text layers. Via the Iframe api / hosted solution

- From the backend I'd like to view and iterate through only the text layers

- While iterating through the text layers I'd like to run the content through a templating engine

- I'd like to replace the content in the text layers with the results from the template engine

- Send the new design through to the WEB API to receive proof/hires

Essentially this is in an effort to provide a more powerful version of variable data. To allow things like conditions, loops, and other advanced features. (Via the Shopify Liquid engine: https://help.shopify.com/themes/liquid/basics)

A couple of my conclusions from searching the forums are there are a few posts on hot to view changed layers after save in the Iframe api however nothing really on the server side of things. I'm also not seeing anything about "replacing" content after the fact

Is something like this possible? Does anyone have any ideas?

Thanks for any help on this.

AntonIlinykh  
#2 Posted : Wednesday, June 20, 2018 2:44:54 AM(UTC)
AntonIlinykh

Rank: Newbie

Groups: Member, Moderator
Joined: 4/18/2018(UTC)
Posts: 9

Was thanked: 3 time(s) in 3 post(s)
Hi mattmail,

It's partially possible. You can make a request with variable data as a payload via WebAPI But you need to know layer names.

As for conditions and loops. If you don't want populate fields with desired data, but rather loop through some array and insert each entry as a separate text layer - at the moment there is no easy way to do it.

mattmail  
#3 Posted : Wednesday, June 20, 2018 3:44:26 AM(UTC)
mattmail

Rank: Newbie

Groups: Member
Joined: 6/18/2018(UTC)
Posts: 2

That's what I gathered, thanks Anton. I appreciate the help.
AntonIlinykh  
#4 Posted : Thursday, June 21, 2018 4:15:50 AM(UTC)
AntonIlinykh

Rank: Newbie

Groups: Member, Moderator
Joined: 4/18/2018(UTC)
Posts: 9

Was thanked: 3 time(s) in 3 post(s)
You are welcome!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.