Is there a way to access the blog’s database to use for dynamic pages? I am wanting to take parts of a blog post to create a teaser on a homepage.
Hi Kristen. You can add a blog addition to put recent posts from any blog category. In the editor, on the left toolbox you press + then blog, then you choose a blog adition and have some choice of teesers. I think nothing more customizable is available now, but I would also love to have an access to blogs database to get a number of blog posts.
Greets
Derek
Thanks Derek, so one of the problems is is that I need vertical photos. I can not use horizontal photos and that is what the teaser is…
I also need it to include the widget in the post…
Hi,
Currently, there’s no option to have access to the blog database. You can ask for it as a feature request here and here .
Best,
Tal.
Can we connect a blog with database?
When you add Wix Blog to your site, it automatically includes a few collections. You can learn more about them here: Wix Blog with Velo
Hi, up to some level I was able to extract blogs from the data collection:
wixData . query ( ‘Blog/Posts’ )
//.eq(“author”,wixUsers.currentUser.id) // faalt om onverklaarbare reden
. descending ( ‘publishedDate’ )
. find ()
. then ( data => data.items.filter ( i => i.author === wixUsers.currentUser.id ))
However there are 2 problems:
I could not properly filter on the autor.
It is very unclear where the drafts are stored, I haven’t found them yet…
Does anyone know where the drafts are stored?