I hate the restrictive templates for the blog post pages and recent post feeds. Would it be possible to create my own blog data set and linked dynamic pages instead? The only issue would be how would you manage subscribers and notify people of new posts.
I have already copied the blog dataset into a new dataset which is now read-write only, I have created a repeater that would be the recent posts for the home page, I have designed my own dynamic page that will be the blog post page, I just need to figure out how to link the repeater to the blog post page. When I click on the repeater button it doesn't take to the dynamic blog post page.
*I have tried to create my own custom blog page using Corvid by taking an example code what's been suggested. The code was fine other than the valid selector. There is no way to check the dataset ID from the blog data. I've already started creating my own separate dataset of blog posts so that I can implement the first method, so don't want to try to get into coding and do this way now.
Appreciate any help!
-Josie
Hi @Rafal Zacharevič ,
Thank you for your quick reply !
It still doesn't work... I have the same error:
To make it simple, I created a new dataset collection (PostExtraData2) :
As you told me, I created a reference column which uses the title of my blog posts (I didn't have the choice of the ref data, it is automatic).
I adjust the code by putting "PostExtraData2" :
import wixData from 'wix-data'; let currentPost $w.onReady(function () { $w("#post1").getPost().then(async post => { currentPost = await loadPostExtraData(post) assignPostDataToUIElements() }); }) async function loadPostExtraData(post) { let postDataFromCollection = await wixData.query("PostExtraData2") .eq("post", post.title) .find() postDataFromCollection = postDataFromCollection.items[0] return mergePostData(post, postDataFromCollection) } async function mergePostData(post, ExtraData) { return Object.assign({}, post, ExtraData) } function assignPostDataToUIElements() { $w("#postTitle").text = currentPost.title $w("#postHeaderStrip").background.src = currentPost.coverImage $w("#postHeaderStrip").show("fade") $w("#text30").text = currentPost.sector }
We are working on my new company's website with a contractor who has no dev skills, so I try to figure out by myself how to set-up specific feature that we will need when the website will be live. I'm working on a template provided by Wix which is not online, how can I give you access to this website ?