cancel
Showing results for 
Search instead for 
Did you mean: 

URL Redirecting

finner
Champ in-the-making
Champ in-the-making
Hi,
I have managed to hook up Alfresco to a Wiki so that when you edit the Wiki it updates the Alfresco repo via the Alfresco PHP library. The thread is here (it's mainly a monologue):

http://forums.alfresco.com/viewtopic.php?t=7564

It works really well!!!.
However it's not exactly the requirement the of the company. They want the wiki to be searchable (indexed) from Alfresco (that part is done) and then be able to open the Wiki page from the results.

So, I was thinking is it possible to redirect the browser to , say, http://localhost/wiki/index.php/<title_of_wiki_page> when I click on the wiki content?


I am also looking at adding the Wiki to the OpenSearch component but I can't get the search API / URL to work. According to MediaWiki API I am trying:

<engine label="My Wiki" proxy="mywiki">
     <url type="application/json">
       http://localhost/wiki/api.php?action=opensearch&search={searchTerms}
     </url>
</engine>

Any help is much appreciated

Finner
4 REPLIES 4

davidc
Star Contributor
Star Contributor
What does the wiki search url return? json or html

The Alfresco open search client only works with rss or atom search results.

finner
Champ in-the-making
Champ in-the-making
Thanks David,
The particular search example above returns JSon which, as you point out, won't work with the OpenSearch client.
I'm trying to get an RSS or Atom formatted result but so far I can't get it to work.

What about the URL for viewing content ? Is it possible to customise it ?

Thanks
Finner

simon
Champ in-the-making
Champ in-the-making
Any update on this? We tried the same here but can't get it to work. Seems that the Mediawiki can't return XML at this point, at least not via the API. You can define an optional format which works for the Mediawiki action parameter but it doesn't work for the opensearch parameter.

finner
Champ in-the-making
Champ in-the-making
Hi Simon,
I didn't get anywhere further with this and in the end it was decided not to integrate our Wiki with Alfresco.
If you do make progress on this could you post some info here ? It would be good to know.

Cheers,
Finner.