SEO and meta tags (frontend)

Hello… how can I put a value from database in the meta tags title/description with App Connect?
I’ve tried but it seems that is possibile to load data only from the body.
Someone could give me more instructions to do it (or with a basic html example)?
Thanks!

Just place the 'is=“dmx-app” inside the opening tag

<html is="dmx-app" id="test">

and remove it from the <body> tag if it is still there

a more complete example could be this

<!DOCTYPE html><html is="dmx-app" id="test"><head>
  <meta charset="utf-8">
  <title>Untitled Document</title>
  <script type="text/javascript" src="../dmxAppConnect/dmxAppConnect.js"></script>
  <script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
  <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
  <link rel="stylesheet" type="text/css" href="../dmxAppConnect/dmxBootstrap4TableGenerator/dmxBootstrap4TableGenerator.css">
  <script type="text/javascript" src="../dmxAppConnect/dmxBootstrap4Modal/dmxBootstrap4Modal.js"></script>
  <link rel="stylesheet" type="text/css" href="../dmxAppConnect/dmxValidator/dmxValidator.css">
  <script type="text/javascript" src="../dmxAppConnect/dmxValidator/dmxValidator.js"></script>
  <script type="text/javascript" src="../dmxAppConnect/dmxDataTraversal/dmxDataTraversal.js"></script>
  <script type="text/javascript" src="../dmxAppConnect/dmxStateManagement/dmxStateManagement.js"></script>
  </head>
  <body>
3 Likes

:+1:

Thanks a million!

2 Likes