Hi, I'm working on an Intranet and would like to use TWiki. However, people in the office already use it for adding information but i would like to just have a page with search results on with the same style as my company intranet. I also only want my users to search just one forum.
I can create the search page no problem just by adding the search form to my look and feel page but how can i create my own results page? On my results page i don't want to give users any options at all apart from being able to view the searched results.
Could anyone shed any light on this for me?
Thanks,
--
StuartKidd - 17 Mar 2004
Not sue if this is the case, I assume you want to use TWiki's search and show the result in your corporate look. That is a two step question.
First create a
TWikiSkins that mimics your corporate look.
Then create a search form and result page. You can combine those together into one page.
FormattedSearchFormTesting is a somewhat complex example. You can reduce that to show the only fields you want. You can format the result to any format you want. For example, the search format
"[[$topic]] - $date %BR% $summary %BR%%BR%" produces this
search result.
--
PeterThoeny - 18 Mar 2004
Thanks for that Peter. Yes, that's right i am trying to show results in my company's corporate image.
I've duplicated view.tmpl and renamed it view.intranet.tmpl and changed the background color to #000000 instead of #ffffff just for testing purposes.
However, when i try to use the skin it doesn't seem to be refering to my view.intranet.tmpl file.
e.g. my url i am testing with is
http://mydomain/twiki/bin/view/DBAdapter/DAPHostingEnvironment?skin=view.intranet.tmpl
Am I appending the url correctly?
--
StuartKidd - 17 Mar 2004
Stuart, you want ?skin=intranet rather than ?skin=view.intranet.tmpl
It's done that way so the same skin name (intranet) can pick up edit.intranet.tmpl, preview.intranet.tmpl etc. as and when you define them.
--
CrawfordCurrie - 18 Mar 2004
If i want to change the template to have a certain skin, say "intranet" like as discussed what would be the easiest way to do it. Is there a particular template i should use to copy to begin with? When I try to append the URL with ?skin=intranet (the file in templates is still called view.intranet.tmpl which was a copy of view.tmpl) it doesn't seem to have an affect even though the bgcolor should be black..
Any help would be appreciated.
--
StuartKidd - 19 Mar 2004