add additional values on page edit
vizardkill opened this issue · 1 comments
vizardkill commented
Hi bro, it's me again.
I wanted to ask you if it is possible that in the editing part of the page you can add something like the title and description of the page?
is that I want to do something like this, to add SEO on the pages
I know that grapes stores the structure of the pages in the gjs-pages property, so how do we embed new properties within the selected page?
Ju99ernaut commented
It is possible, basically something like:
const sel = editor.Pages.getSelected();
// set value.
sel.set({ title: 'Title' });
// get value
sel.get('title');