Hello, everyone. I’m actually starting to learn this stuff. I admire those that have it locked. Coding in Corvid is like a superpower. Looking forward to a better understanding.
That said, does anyone have a “Newest Posts” code example I can work with?
The built-in “Newest Posts” widget for the Wix forum is too much for what I’m trying to do. All I need is clickable titles. I’d also like to modify the colors.
If you look to the right on this very page. That’s what I’m looking for:
![](https://us1.discourse-cdn.com/wix/original/3X/9/e/9e2a277ffe8d07f5ccfcbdb27f6aa6888cb1ab77.png)
I know enough code to make changes. I just don’t know enough to write it. However, anyone would be kind enough to post an example of what they are using, I could do a lot of learning from that.
Pretty please and thank you so, so much. . . I would be so very grateful for the help.
Thank you, but no. I need the code. With all due respect, I literally just said that the built-in forum widget won’t work for me.
-
If the website is not mobile-friendly, the widget will only display horizontally on phones, though I have selected vertical. I realize I can fix this by simply making the site mobile-friendly, but I’m not there in the development yet, and I do have early-access visitors trying to use the site.
-
Also, despite the fact that I’ve changed the color of the hover text, the title in the built-in widget won’t actually change to the color I’ve select. The hover color remains the default “red” as opposed to the selected color “purple.” I could change this by, perhaps, changing the default color for the site, but then I’d have to go back through the entire site changing all instances that use the color I’d have to change.
But there is an issue with that, too. For some reason, Wix gets wonky when you try to change the default colors when you have a good number of pages already built.
The easiest and most fitting solution for me is to simply create a “Newest Posts” widget as I described. This widget will be more versatile. I will also be able to modify the code to suit other purposes. On top of that, the code for the widget will teach me how it’s all done. And, it’ll look better, and I’ll be able to apply it to other sites I have a mind to build.
Thanks, though.
There is no official Wix integration with Wix Forum and Corvid like what the Wix Blog has so far, so you would have to look into implementing something yourself using the Wix Forum app’s own collections.
https://support.wix.com/en/corvid-by-wix/wix-forum-with-corvid
I would suggest that you look at the Wix Blog with Corvid examples here and see if you could utilize them so that they could work with the Wix Forum collections instead of the Wix Blog collections.
https://www.wix.com/corvid/examples?category=blog
Although this might also be a no goer for you as well as the Wix Blog has their own Wix Blog Post Page API.
https://www.wix.com/corvid/forum/corvid-tips-and-updates/introducing-the-wix-blog-post-page-api
https://www.wix.com/corvid/reference/$w.PostPage.html
Whereas the Wix Forum does not have anything currently, so you would not be able to call the post page like in the Wix Blog examples.
Finally, as this is more of a request then you might be better suited adding it as a feature request here.
https://www.wix.com/corvid/forum/community-feature-request
Or asking in the Wix Forum’s own community here.
https://www.wix-forum-community.com/forum
This second link is pretty cool, as I have a mind to do a trending widget. All I’m looking for, however, is the title of the last four posts. And each title needs to be clickable and point to its respective forum posts.
Would you be so kind as to take a peek at the code I’m trying? The code works, but all posts point to the “first” most recent forum post as opposed to each title’s respective post.
It’s so close:
import wixLocation from 'wix-location';
$w.onReady( () => { $w("#dataset1").onReady( () => {
let link = $w('#dataset1').getCurrentItem().pageUrl;
$w('#text18').onClick(()=>{
wixLocation.to(link.toString());
});
});
});
Here is my test page:
https://www.hlltrainingcamp.com/copy-of-hll-game-guides