Welcome Guest! To enable all features please Login. New Registrations are disabled.



Go to last post Go to first unread
#1 Posted : Monday, April 27, 2009 11:14:16 AM(UTC)

Rank: Guest

Groups: Guest
Joined: 9/17/2008(UTC)
Posts: 66

Searching in a website, including all text and databases.

(PS: all code is written with a space in between.)

Include in a site in a free text control 44 with { ! $ Control.44 $ ! } Make sure it is placed in the webcreator.

Open the control in the cms 1 time (home > controls > save)

Making a view with the results
Hint: make a view with only rules and a link to the detailpage from that view; for example:

View: SEARCH news overview (rules only)

- <A href="/Basis.aspx?Tid= { ! ! _ Tid ! ! }&Lid=1&Lit=VIEW&Hmi={ ! ! _Hmi!!}&Smi={ ! !_Smi!!}&STIJL={ ! ! _Stijl!!}&Act={ ! ! _Act!!}&Query=FLEU_nieuws.Id={ ! ! nieuws.Id!!}">{!!nieuws.titel!!}</A><BR>

FLE in this example is the CID.

with this code there appear rules with a link to the detail view #1. this number is variable offcourse depending on the view number you made it with.


Filling up the search control in the CMS (home -> search)
Here you set the viewcontrol(s) with the extra parameter which is going to find the searhword and show it in the viewcontrol.

A viewcontrol can get 3 parameters:
the query (which in the case gives everything back, because 1=1 is always true
the start position (in this case has to show always, so it's always 0
the search string (normally use by Lid=3&Lit=VIEW&ZOEK=searchword



<P>found in <B>news</B>:<BR>
{ ! $ Control.42.03.where 1=1.0.{ ! ! Par.ZOEKSTRING!!} $ ! } </P>
<P>found in <B>text</B></P>

{ ! ! Par.ZOEKSTRING!!}$!} ­– extract the paramater behind the word ZOEKSTRING in the URL.

03 – is the viewnumber with the search results rules

Body per language :

- { ! ! Omschrijving!!}<BR>

Body tekst at no results
no results found

Wanna join the discussion?! Login to your Sienn Forum forum account. New Registrations are disabled.

#2 Posted : Monday, October 19, 2009 1:31:10 PM(UTC)

Rank: Guest

Groups: Guest
Joined: 9/17/2008(UTC)
Posts: 66

Awesome! it works!
#3 Posted : Monday, March 25, 2013 1:06:21 PM(UTC)

Rank: Administration


Groups: Moderators, Administration, Member
Joined: 10/8/2008(UTC)
Posts: 44

If you have more than 1 menu, you can search them like this:

Menu 1 = Tid 2
Menu 2 = Tid 780

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.