Code Monkey home page Code Monkey logo

Comments (5)

kentico-ericd avatar kentico-ericd commented on June 19, 2024

Hello @timfenton! I just updated the add-on to v13 to support snippets. They should be generated the same as any other element I don't think there should be any issues with naming 😏

You might need to re-install the add-on to test it. Let me know if it works for you!

from kontent-google-sheets-add-on.

timfenton avatar timfenton commented on June 19, 2024

thanks @kentico-ericd ! So fast...

How would you expect an sheet to be formatted to import content + snippet? here is an example of how our sheets are currently formatted:

name | contentcard__headline | contentcard__description
My Product | My Product Headline | My Product Description

My hope was it would recognize that contentcard__headline is a content-type snippet field, not a field directly on the content-type, but it doesnt seem to import the data. Should i format the data differently? or, do i need to create the product feature content item first and then get the GUID for a contentcard item and send the data for that separately using the new snippet endpoint?

Thanks again!

from kontent-google-sheets-add-on.

kentico-ericd avatar kentico-ericd commented on June 19, 2024

Are you using the Generate option in the add-on, or manually specifying the headers?

The format for snippet headers should just be the code name of the snippet element. For example, I tested using the Metadata snippet in the sample project. The code name of one of the elements is metadata__meta_title

snippet

That's the same as what the add-on generates, and importing this row worked for me:

sheet

from kontent-google-sheets-add-on.

timfenton avatar timfenton commented on June 19, 2024

I was not using the generate, but I was using the codenames as the headers.

actually, the issue was that i did not have en-US as a localization in the project, instead it was just "default" so it just created a content item without translation so i think this caused an issue when trying to save the content snippets. as soon as i created an en-US localization and specified it the issue went away and gave me a new issue where the the rich text was not encapsulated in some Kontent-supported tag, which I was able to workaround 👍

you the best @kentico-ericd

from kontent-google-sheets-add-on.

kentico-ericd avatar kentico-ericd commented on June 19, 2024

Hmmm... maybe it needs better messaging/error handling for the language issue 🙄 Thanks for testing it out though, enjoy Timmy boy!

from kontent-google-sheets-add-on.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.