I have a taxonomy that I am getting in the page twig file after referencing a field from the node object. The twig file is a page for a content type, i.e. page--content-type.html.twig.

So node.field_name contains taxonomy value selected for that content type of the node.

I want to get the list of all vocabularies in this referenced taxonomy, possibly using the node.<> syntax in the twig file without using any Views.

Can you help? Thanks.

  • Do you wants taxonomy or terms? – arrubiu Aug 14 '18 at 5:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.