• Resolved ruewa

    (@ruewa)


    Hi David!

    When i go to the Wikipedia, the first thing i normally do is to use the search field. Later i mostly follw the links, but that’s the first step. So a search field would be fine.

    In the backend you realized this with the wiki link button in the editor. It does exactly what i want: searching the wiki post titles for the typed string. So the logic already exists in Yada Wiki.

    Is it possible to make something like that work also on the frontend? A widget with a search field or just a button which activates a popup?

    Or is there already a way i overlooked?

    Best regards,

    Ruediger

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author dmccan

    (@dmccan)

    Hi Ruediger,

    Thank you for the suggestion. Have you tried the search widget? I think it will find words in wiki pages.

    Best regards,

    David

    Thread Starter ruewa

    (@ruewa)

    Hi David,

    you mean the standard WordPress search widget? Yes, i tried it, but that’s not what i want. It searches all pages – i need to restrict it to wiki pages. It does a full text search – i just want to search for titles. It delivers a result page – i want to get a dropdown link list. Just like the wiki link button in the Yada Wiki editor – and just like the behaviour of the wikipedia search field.

    The optic might be secondary: whether it’s a dropdown-edit field or a button which opens a popup like the wiki link button. But there’s another wish: a switch to determine the kind of search: From the beginning or in-text (the link button does the latter).

    Maybe i should explain what we are doing. We created an initiative which does local history research, focussed on the local nazi barbarism and its aftermath. In our neighborhood there was once a concentration camp established in late 1944. We do a lot of research about this camp, we now know all the prisoners names and mostly their fate, we collected > 12.000 document scans and already filled 1.500 wiki pages with specific information. Now the webspace runs short and we also want to go more public – with the aim of establishing a local memorial site some years ahead. Therefore i’m building a new website with more storage space. It should also become our public representation and history information site – with a public and an internal area. The wiki is our very detailed research “workshop” (which did really a good job by now) and should be resticted to members only. So i have to isolate the internal area with the wiki from the public area. This is the reason why i need a search widget restricted to the wiki. And there’s also a simple reason for the request to determine the search mode (from the beginning vs in-text): Every prisoner has his own page titled “Name (concentration camp prisoner)”. So if i search for “concentration camp prisoner” the result is useless, because i get hundreds of items while searching in-text. A search from the beginning would only result in some summary pages (i know, there would have been better ways using categories, but you don’t see all these things from the start).

    So it would be great if you could help us resolving this problem. And i guess it could be also a great improvement for other users.

    Best regards,

    Ruediger

    • This reply was modified 2 years, 4 months ago by ruewa.
    • This reply was modified 2 years, 4 months ago by ruewa.
    Plugin Author dmccan

    (@dmccan)

    Hi Ruediger,

    Thank you for the explanation. I can see your point that there is similar searching when adding a wiki link, but I’m not sure how much work it would take to make that work as a widget anywhere on the site. I’m pretty swamped at the moment, but if I get a chance I’ll look to see if it is something I can add.

    In the meantime, you might check other options. This type of search feature is called “AJAX search.” There are a few plugins in the WordPress directory that add this and there is also Crocoblock JetSearch. I’ve seen people recommend Ajax Search Lite in the WordPress plugin directory and I’ve used JetSearch on one of my sites for searching a Custom Post Type.

    Best regards,

    David

    Thread Starter ruewa

    (@ruewa)

    Hi David,

    Thank you for your fast answer. I tried it with Ajax Search Lite and it does the job better than i thought. You have to dig into the extensive settings, but i got all i wanted.

    I put the search field into a (self-made) header plugin area and restricted this area to the (private) wiki pages only (with is_singular('yada_wiki')), so it should be completely hidden from the public sphere.

    Best regards,

    Ruediger

    Plugin Author dmccan

    (@dmccan)

    Hi Ruediger,

    I’m glad you found a solution. Thank you very much for letting me know.

    Best regards,

    David

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feature request: Search widget’ is closed to new replies.