Hi,
I run a website where we write articles about lots of stuff. Like movies, games, funny stuff etc. Sometimes we have reviews and sometimes we have just random videoes and stuff.
I've been trying to make a "Related Articles" for a while, but I don't want my writers to have to do any extra work in Couch when publishing articles. Therefor I thought I could try to use the Search function built into Couch to build a "Related Article" function
So in Page-View I made something like this:
The problem is that my site is in Norwegian, and we have 3 weird characters in our alphabet (æ ø å) and when they are appearing in k_page_title I get a 500 server error ( http://sistestopp.com/sok.php?s=M%C3%98T+CAMILLA+LUDDINGTON%2C+N%C3%85TIDENS+LARA+CROFT&nc=1 ). I tried to use k_page_name instead but that adds a dash (-) in between all the words, I kind of need to change that dash to a + sign for the search to work properly.
Also, could this lead to problems if the title of the article is very long. Sometimes we have upto 10 words in the title.
I run a website where we write articles about lots of stuff. Like movies, games, funny stuff etc. Sometimes we have reviews and sometimes we have just random videoes and stuff.
I've been trying to make a "Related Articles" for a while, but I don't want my writers to have to do any extra work in Couch when publishing articles. Therefor I thought I could try to use the Search function built into Couch to build a "Related Article" function
So in Page-View I made something like this:
- Code: Select all
<cms:search masterpage='blog.php' limit='10' keywords="<cms:show k_page_title />" >
<li><a href="<cms:show k_page_link />"><cms:show k_search_title /></a></li>
</cms:search>
The problem is that my site is in Norwegian, and we have 3 weird characters in our alphabet (æ ø å) and when they are appearing in k_page_title I get a 500 server error ( http://sistestopp.com/sok.php?s=M%C3%98T+CAMILLA+LUDDINGTON%2C+N%C3%85TIDENS+LARA+CROFT&nc=1 ). I tried to use k_page_name instead but that adds a dash (-) in between all the words, I kind of need to change that dash to a + sign for the search to work properly.
Also, could this lead to problems if the title of the article is very long. Sometimes we have upto 10 words in the title.