Recently, I installed a second website with WonderCMS. This time I did not move to install the SummerNote Editor. When I went to edit a page, I noticed that everything was in HTML. Could I just do everything in HTML/JavaScript without any new limitations?
Apparently, no SummerNote editor means I can pretty much do anything I want within the HTML/JavaScript frameworks. If you want a horizontal bar, then just type <hr>. Done. I couldn't do that before.
I've been wanting to install a search input form in order to make the website easily searchable. I asked Grok to generate the HTML/JavaScript code for a search form. It looks like this:
<!-- ------------------------------------------- -->
<form id="searchForm" action="javascript:void(0);">
<label for="searchQuery">Enter Search Query:</label>
<input type="text" id="searchQuery" name="q" placeholder="e.g., ProtonMail" required="">
<button type="submit">Search</button>
</form>
<script>
document.getElementById('searchForm').addEventListener('submit', function(e) {
e.preventDefault();
var q1 = document.getElementById('searchQuery').value;
var q2 = " site:mybooks2.com";
if (q1) {
var searchUrl = "https://www.google.com/search?q=" + encodeURIComponent(q1) + encodeURIComponent(q2) ;
window.open(searchUrl, '_blank');
}
});
</script>
<!-- ------------------------------------------- -->
And it works!
Google let's you do custom searches like this: search terms site:mywebsite.com. In my search code, I have this: var q2 = " site:mybooks2.com";. You just change mybooks2.com to your website. As long as Google has indexed your website then search is available.
For regular input I use the markdown editor:
Free Markdown to HTML Converter
https://markdowntohtml.com/
Markdown is much easier to use than HTML.
I have two websites. One with the Default theme and one with the Sky. The themes are kind of clunky but I like their vibe. Just something simple and fast. For me, clunky looking is good.
What happens when you DON'T install the SummerNote Editor?
- NorfolkGreg
- Posts: 114
- Joined: Wed Sep 01, 2021 7:50 am
Re: What happens when you DON'T install the SummerNote Editor?
For what it's worth I have a discussion of the default and Summernote editors at:
https://gregchapman.uk/wondercms/editor
and
https://gregchapman.uk/wondercms/summernote
Would welcome any feedback on my observations. I'm still coming to terms with Markdown as an alternative to HTML, perhaps because I'm rather long in the tooth to learn anything new. You'll see I also discuss a few other external editors.
https://gregchapman.uk/wondercms/editor
and
https://gregchapman.uk/wondercms/summernote
Would welcome any feedback on my observations. I'm still coming to terms with Markdown as an alternative to HTML, perhaps because I'm rather long in the tooth to learn anything new. You'll see I also discuss a few other external editors.
- NorfolkGreg
- Posts: 114
- Joined: Wed Sep 01, 2021 7:50 am
Re: What happens when you DON'T install the SummerNote Editor?
I've never thought about site search for Wcms, a platform that's designed for smaller sites. If I wanted a platform for a larger site then my preferred option is TextPattern. It has its own internal search system so doesn't plague the user with ads.
Incidentally, that platform supports the Textile markup language for input and that has a similar on-line editor tool. I could well end up adding that to my recommended tool for use in conjunction with the Wcms default editor.
Incidentally, that platform supports the Textile markup language for input and that has a similar on-line editor tool. I could well end up adding that to my recommended tool for use in conjunction with the Wcms default editor.