vue-meta
vue-meta copied to clipboard
Adding raw data into the head
I understand the security concerns about this, but some CMS-like applications has fields to add scripts, CSSs and general content into the head
tag, configured by the user. This makes the the process to configure data structures that comply with vue-meta hard.
Is there a way to add raw data directly into the head
tag?
At the moment this is not possible with vue-meta, but we are working on a new version where this might become possible. It would be very helpful if you could list some example output here of those CMS-like applications
Btw, elements listed in head are quite simple to parse to a json object. See eg the related issue #272 for a possible implementation
At the moment this is not possible with vue-meta, but we are working on a new version where this might become possible. It would be very helpful if you could list some example output here of those CMS-like applications
I have the same issue. Wanted to create a "custom html" field for the client in the cms, that they can use to add code to the site. The content could look like this for example:
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise();
});
</script>
Someone resolve this? Are there some updates on this v3?
Someone resolve this? Are there some updates on this v3?
I used vue-append for the purpose. Worked well. Although this doesn't account for injecting into head, it helps for injecting and running javascript on the fly.
I would also be interested in this feature for the above reasons. Is there any news?
I'm also interested for the same reasons