Skip to main content
Solved

Getting current dataset title for custom view

  • 11 September 2024
  • 2 replies
  • 49 views

When using a custom view I know I can use to return the current dataset ID.

But is it possible to also return the current dataset title? I have tried ctx.dataset.title and other variations but they are all blank.

Auto-translation 🪄

Lorsque j'utilise une vue personnalisée, je sais que je peux l'utiliser pour renvoyer l'ID du jeu de données actuel. Mais est-il possible de renvoyer également le titre du jeu de données actuel ? J'ai essayé ctx.dataset.title et d'autres variantes, mais elles sont toutes vides.

Hello Danny, 

You can use to display the title. 

In general, you can display the JSON object on the page and observe the hierarchy of the elements, in this case the meta “Title” is stored in the table “metas”. 

Best

 

Auto-translation 🪄

Bonjour Danny, Vous pouvez utiliser pour afficher le titre. En général, vous pouvez afficher l'objet JSON sur la page et observer la hiérarchie des éléments, dans ce cas la méta « Titre » est stockée dans la table « metas ». Meilleur

Thank you!

Auto-translation 🪄

Merci!

Reply