indigane / cardsort

A tool for conducting a virtual card sorting.

Home Page:https://indigane.github.io/cardsort/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Initialize with custom default categories and cards

ryanblackmore opened this issue · comments

Is there a recommended way to have the page load with default categories and cards? Something like being able to pass a JSON formatted similarly as the Export Result output into the initial page load?

Do you mean the creation form, where you create a new card sorting? It is not currently possible to pre-fill that.

For the card sorting page, you can can pass it query parameters as below.

https://indigane.github.io/cardsort/card-sort.html?cards=a,b,c&categories=1,2,3&allowCategoryEditing=0

This is currently undocumented, but I can document it if there's demand for it.

If this doesn't answer your question, could you add some details, I'm not sure I understood.

That answers my question. I only saw in the code where it interprets a hash but didn't quite get the query params or how to format them. Thanks!