Author: michiel
Date: 2010-03-30 17:06:30 +0200 (Tue, 30 Mar 2010)
New Revision: 41673
Added:
mmbase/trunk/applications/searchrelate/example-webapp/src/main/webapp/pathsearch.jspx
Modified:
mmbase/trunk/applications/searchrelate/example-webapp/src/main/webapp/index.jspx
Log:
testing mm-sr:pathsearch stand-alone
Modified:
mmbase/trunk/applications/searchrelate/example-webapp/src/main/webapp/index.jspx
===================================================================
---
mmbase/trunk/applications/searchrelate/example-webapp/src/main/webapp/index.jspx
2010-03-30 14:43:13 UTC (rev 41672)
+++
mmbase/trunk/applications/searchrelate/example-webapp/src/main/webapp/index.jspx
2010-03-30 15:06:30 UTC (rev 41673)
@@ -271,6 +271,14 @@
<li>Make more test-cases for this tag</li>
</ul>
+ <h2>mm-sr:pathsearch</h2>
+ <ul>
+ <li class="">
+ <mm:link page="pathsearch.jspx" referids="${referids}">
+ <a href="${_}">mm-sr:pathsearch</a>
+ </mm:link>
+ </li>
+ </ul>
<hr />
<p>
<mm:link referids="ct?">
Added:
mmbase/trunk/applications/searchrelate/example-webapp/src/main/webapp/pathsearch.jspx
===================================================================
---
mmbase/trunk/applications/searchrelate/example-webapp/src/main/webapp/pathsearch.jspx
(rev 0)
+++
mmbase/trunk/applications/searchrelate/example-webapp/src/main/webapp/pathsearch.jspx
2010-03-30 15:06:30 UTC (rev 41673)
@@ -0,0 +1,35 @@
+<?xml version="1.0" ?>
+<mm-sre:html
+ xmlns:mm-sre="urn:jsptagdir:/WEB-INF/tags/mm/searchrelateexample"
+ xmlns:mm-srt="urn:jsptagdir:/WEB-INF/tags/mm/searchrelate"
+ xmlns:mm-sr="http://www.mmbase.org/tags/mm/searchrelate"
+ xmlns:jsp="http://java.sun.com/JSP/Page"
+ xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0">
+
+ <script type="text/javascript">
+ // Like this you can make something happen when the user finds a node.
+ $("div.mm_related.pathsearcher_end").
+ live("mmsrRelate",
+ function (e, tr, relater) {
+ alert("Found " + relater.getNumber(tr) + " for " +
$(e.target).closest("table.mmsr_pathsearch").attr("id"));
+ }
+ );
+ </script>
+
+ <p>Straight forward two step searcher, also indicated role. Finds news.</p>
+ <mm-sr:pathsearch path="mags,posrel,news" />
+
+ <p>Straight forward two step searcher, not indicated role, finding people</p>
+ <mm-sr:pathsearch path="news,people" />
+
+ <p>Straight forward three step searcher to find people</p>
+ <mm-sr:pathsearch path="mags,news,people" />
+
+ <p>Three step searcher, but element is set to the second step. You only find
news to which people are related now.</p>
+ <mm-sr:pathsearch path="mags,news,people" element="news" />
+
+
+ <hr />
+ <mm:escape escape="links">$URL$</mm:escape>
+
+</mm-sre:html>
Property changes on:
mmbase/trunk/applications/searchrelate/example-webapp/src/main/webapp/pathsearch.jspx
___________________________________________________________________
Name: svn:keywords
+ URL
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs