[ckan-dev] ckanext-scheming

Ian Ward ian at excess.org
Thu Dec 8 13:54:08 UTC 2016


Facet interfaces aren't generated for you by Scheming (yet) For now
you'll need to override your templates to get the display you're
looking for, or if you'd like, help contribute that as a new feature.

On Thu, Dec 8, 2016 at 8:36 AM, Armin Retterath
<armin.retterath at gmail.com> wrote:
> hello together,
>
> i tried to use a select option by using choices at resource level and
> altered the solr schema as it have to be done for package level choices. the
> problem is, that the facet don't work as expected. the editor shows up the
> select box and the value is stored, but neither the translation of the facet
> title is done nor does the value show up in the filter :-( .
>
> snippet from json file:
> ...
>  "resource_fields": [
>     {
>       "field_name": "res_transparency_document_change_classification",
>       "preset": "select",
>       "label": {
>         "en": "Change classification",
>         "de": "Änderungsstatus"
>       },
>       "choices": [
>         {
>           "value": "unaltered",
>           "label": {
>             "en": "unaltered",
>             "de": "unverändert"
>            }
>          },
>          {
>           "value": "blackened",
>           "label": {
>             "en": "blackened",
>             "de": "geschwärzt"
>           }
>      },
>          {
>           "value": "created_for_publication",
>           "label": {
>             "en": "created for publication",
>             "de": "speziell für Publikation erstellt"
>           }
>         }
>       ]
>     },
> ...
>
> thanx in advance
>
> armin
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>



More information about the ckan-dev mailing list