No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Plugin Meta not working?

    Framework
    2
    3
    377
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      oliverkroener last edited by

      Hello,

      I am trying to use the Meta Plugin for adding additional meta tags, but its not working. My code is:

      quasar.conf.js

          framework: {
            iconSet: 'material-icons', // Quasar icon set
            lang: 'de', // Quasar language pack
            config: {},
      
            // Possible values for "importStrategy":
            // * 'auto' - (DEFAULT) Auto-import needed Quasar components & directives
            // * 'all'  - Manually specify what to import
            importStrategy: 'auto',
      
            // For special cases outside of where "auto" importStrategy can have an impact
            // (like functional components as one of the examples),
            // you can manually specify Quasar components/directives to be available everywhere:
            //
            // components: [],
            // directives: [],
      
            // Quasar plugins
            plugins: ['Meta']
          },
      

      MainLayout.vue

        meta () {
          return {
            meta: {
              test: {
                name: 'test',
                content: 'TEST'
              }
            }
          }
      

      What’s missing?

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        Try just

          meta () {
            return {
                test: 'some text',
                test2: 'some other text'
              }
            }
        

        Scott

        1 Reply Last reply Reply Quote 0
        • O
          oliverkroener last edited by

          Dear Scott,

          thanks, it working either way now, just made some simple mistake!

          Thanks for your help!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post