<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Spice up your internal sNews CMS search page with result descriptions</title>
<link>http://www.mdj.us/</link>
<description>This mod adds the meta description for search results for a page, category, or article for your internal sNews search engine.</description>
<language>en</language>
<item>
<title>Gerry MacOstair</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/spice-up-your-internal-snews-cms-search-page-with-result-descriptions/#comment-1591</link>
<pubDate>Sun, 29 Jan 2012 17:25:47 +0000</pubDate>
<content:encoded><![CDATA[Damn fine hack, Matt!<br />
To give the search results a bit of &quot;HTML5/Semantic code&quot; flair, replacing the paragraphs with a description list were the decent thing to do, actually.<br />
I'm too lazy to play &quot;try and fail&quot; with the comment editor until the code would display properly. If you are interested, give me a shout, I'll send you the changes via e-mail.<br />
Cheers, Gerry]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/spice-up-your-internal-snews-cms-search-page-with-result-descriptions/#comment-1071</link>
<pubDate>Thu, 08 Apr 2010 11:26:50 +0000</pubDate>
<content:encoded><![CDATA[Yeah, the default search for sNews is quite limited, hence my use of Sphider.<br />
<br />
Adding pagination shouldn't be *too hard*. I will add it to the list of requests, if I ever do manage to get some free time. :)]]></content:encoded>
</item>
<item>
<title>Tina</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/spice-up-your-internal-snews-cms-search-page-with-result-descriptions/#comment-1067</link>
<pubDate>Wed, 07 Apr 2010 22:42:32 +0000</pubDate>
<content:encoded><![CDATA[Hi Matt,<br />
just thinking a bit afterwards. you know what would be nice to have ... a paging function for the searchresults, so that you can get all results, instead of just the predifined limit. I know it's probably not in your interest at the moment, since you have a different search engine implemented here, but if you ever have &quot;nothing to do&quot; (lol) ...]]></content:encoded>
</item>
<item>
<title>Tina</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/spice-up-your-internal-snews-cms-search-page-with-result-descriptions/#comment-1066</link>
<pubDate>Wed, 07 Apr 2010 22:22:48 +0000</pubDate>
<content:encoded><![CDATA[nice, thank you matt :)]]></content:encoded>
</item>
<item>
<title>Patric</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/spice-up-your-internal-snews-cms-search-page-with-result-descriptions/#comment-808</link>
<pubDate>Mon, 25 Jan 2010 14:34:56 +0000</pubDate>
<content:encoded><![CDATA[A goodie one... Thanks.]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/spice-up-your-internal-snews-cms-search-page-with-result-descriptions/#comment-458</link>
<pubDate>Tue, 23 Jun 2009 11:16:24 +0000</pubDate>
<content:encoded><![CDATA[Toolman, personally, my search function is all hacked up and uses MySQL full-text search to return ranked results, but for what you're asking, you can do this.<br />
<br />
On a default snews.php, function search, look for<br />
<br />
$query = $query.' ORDER BY id DESC LIMIT '.$limit;<br />
and change it to<br />
<br />
$query = $query.' ORDER BY &lt;span class=&quot;highlight&quot;&gt;c.&lt;/span&gt;id DESC LIMIT '.$limit;<br />
<br />
that will order by the category ids, not the article ids.]]></content:encoded>
</item>
<item>
<title>toolman</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/spice-up-your-internal-snews-cms-search-page-with-result-descriptions/#comment-456</link>
<pubDate>Mon, 22 Jun 2009 09:28:06 +0000</pubDate>
<content:encoded><![CDATA[Simply and nice :D<br />
Good work, again ;)<br />
<br />
One question. How to sort search results by Categories/Titles not by ID?<br />
For example:<br />
<br />
catA<br />
  - artAB<br />
  - artBA<br />
catB<br />
  - artAB<br />
  - artCC<br />
<br />
I have many same titles in different categories and standard sorting not looking fine.]]></content:encoded>
</item>
<item>
<title>Sven - Philippe</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/spice-up-your-internal-snews-cms-search-page-with-result-descriptions/#comment-435</link>
<pubDate>Thu, 11 Jun 2009 06:47:42 +0000</pubDate>
<content:encoded><![CDATA[Excellent! Bravo!]]></content:encoded>
</item>
<item>
<title>Matt</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/spice-up-your-internal-snews-cms-search-page-with-result-descriptions/#comment-434</link>
<pubDate>Thu, 04 Jun 2009 23:11:08 +0000</pubDate>
<content:encoded><![CDATA[lol Vic :)<br />
<br />
Almost too easy, huh? Soon, I'll also explain how to do the same in the tagsearch function in case someone can't figure it out.]]></content:encoded>
</item>
<item>
<title>Vic</title>
<description></description>
<link>http://www.mdj.us/snews-cms/hacks-mods/spice-up-your-internal-snews-cms-search-page-with-result-descriptions/#comment-431</link>
<pubDate>Thu, 04 Jun 2009 17:06:44 +0000</pubDate>
<content:encoded><![CDATA[Yay, finally! Thanks :-)]]></content:encoded>
</item>
</channel>
</rss>

