Want to add a forum like this one to your store? Install Champ Now

Welcome to Champ's live demo

Did you know that this isn't just a demo?
This is our live pre-sales Q&A and support forum. Take a look around and say "Hello".

0

[New Feature] Topic metadata

Support
  • Moderator

    You can now add metadata to Topics via API (only). Please refer to the API documentation on making API calls: https://getchamp.net/guides/api/

    The property for the Topic metadata is... metadata. The API will expect a hash for this data:

    {
      forum_id: 123,
      title: "My title",
      metadata: {
        product_id: 100
      }
    }
    

    Making an API call with the above JSON payload will insert a metadata with a key of product_id and a value of 100.

    With this, you can also query Topics via the JavaScript endpoint at /community/champ/latest.json?metadata[key1]=value

    You can also chain the metadata conditions as well:
    /community/champ/latest/topics.json?metadata[key1]=value&metadata[key2]=value

    So using the above example, you can query for that particular topic like so:
    https://yourstore.com/community/champ/latest/topics.json?metadata[product_id]=100

    Please report bugs :-)

    This post was edited Mar 24, 2020 03:13PM

    Need help? Contact me at support@getchamp.net or here. Brand new! Add your own signature at https://getchamp.myshopify.com/community/champ/preference
    Post reply

Quick reply

How to format posts

Champ uses Markdown for formatting text in posts. Certain markup tags (eg. H1) are forbidden to ensure that pages remain semantically compliant. Other tags are automatically sanitized to ensure all content is secure.

  • Emphasis, aka italics, with *asterisks* or _underscores_.
  • Strong emphasis, aka bold, with **asterisks** or __underscores__.
  • Combined emphasis with **asterisks and _underscores_**.
  • Strikethrough uses two tildes. ~~Scratch this.~~
  • Links are added automatically, but can be formatted like so: [My link](https://mylink.com)
For more information, take a look at the Markdown Cheatsheet.