1
Hi there!
This is my very first msg here. I discovered XOOPS just 3 weeks ago, but i'm already enthusiastic about it!
I made a little improvement to XFS Module - well, it's an improvement for me! The goal was to make searcheable some elements of the article.
The first thing I've done was to give a name to the search form in the search template. I called it "fSearch" (<form name="fSearch" ...>)
The second one was to ad some tags to every article posted using the XSF Module:
<span ID="autore">Jonathan Coe</span>
<span ID="titolo">Ghiaccio 9</span>
<span ID="editore">Feltrinelli</span>
Then I wrote in the article template the following lines:
<a href="#" onclick="goSearch('autore')">More stuff about this author</a><br>
<a href="#" onclick="goSearch('titolo')">Altro materiale su questo titolo</a><br>
<a href="#" onclick="goSearch('editore')">Altro materiale su questo editore</a>
The last one was to add to the main template the following script:
<SCRIPT>
function goSearch(elid)
{
var obj=document.getElementById(elid);
fSearch.query.value=obj.innerText;
fSearch.submit();
}
</SCRIPT>
This is what allows me to search through my site for any author, title or books house written inside the articles.
bye!
Francesco