I am working with someone who is porting their HUGE website to Wix. He has well over 100 pages, so we can’t just make static pages. His pages don’t lend themselves well to the idea of dynamic pages, but they do lend themselves quite nicely to the Blog.
The Blog is actually much easier for him to build pages in than making static pages. There is just one problem…linking to those pages.
There is no built-in/easy way to link to a blog post. Here are the ways I’ve investigated. Each one of them comes with their own problems and limitations.
1. Page links from the built in link tool… don’t work
The built in link tool doesn’t give you the choice of linking to a page underneath the blog. It gives you two choices.
- Blog (which links to the Blog’s Feed page)
- Post (which links to …/post which goes nowhere. Perhaps this should actually list posts underneath your blog, but it doesn’t)
Awesome Screenshot
2. Web Address links from the built in link tool… sort of works
They only work if you put the full URL in…not a relative URL.
https://www.awesomescreenshot.com/image/13304107?key=3fbc2583e36229f947456e78a5d3cc2e
This works:
https://polkaset.wixsite.com/testing/post/manage-your-blog-from-your-live-site
This does not:
/post/manage-your-blog-from-your-live-site
This means if you have more than one domain mapped to your site, the links won’t work. Also, while you’re in development (before moving your domain over), your links won’t work. Also, if you ever change your domain, you have to go find every one of these links and change it. That’s brittle.
3. I can write a click handler… sort of works
export function button1_click(event) {
wixLocation.to('/post/manage-your-blog-from-your-live-site');
}
The button works, but the onHover behavior doesn’t put the link preview up in the lower left hand corner of the browser tab.
- I can’t make links out of snippets of text…doesn’t work
Links are often not single DOM elements, like one button, or an entire text element. This person needs to be able to link from a word in a paragraph. For example:
Blah blah blah…here is some text in my article. And if you’re curious, this is my amazing article on why snuffaluffagus is the best muppet.
(where the text in blue is the link)
As far as I know, the only way to make those links is to use the link tool. There’s no DOM Element with an ID I can add a click handler to.
The built in link tool, again, does not allow you to use a relative link. So you’d have to make these into fully qualified links…(brittle for the reasons listed in #2)
Incidentally, a similar problem exists with Router pages (The link tool is broken for sub pages. It allows you to select them, click “done” but then they don’t actually work, and the next time you go into the link tool, they’ve been set to Home, or whichever page is first in the list)
Dynamic pages DO let you link to a specific page underneath the dynamic page:
https://www.awesomescreenshot.com/image/13304401?key=e24f60ab4c9faa9470c1de487a5bb2d7
But these pages just aren’t well suited for dynamic pages.
Is there any solution out there?