Search Results in current window

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
tawnip
Propeller Head
Posts: 24
Joined: Sat Jan 24, 2015 10:59 am

Search Results in current window

Post by tawnip »

Hi,

Flare 12, HTML Top Navigation

I have my Search Bar Proxy in my MasterPage and NOT in the Top Navigation bar. Is it possible to have my Search results returned directly below my Search Bar Proxy? I added the Search Results Proxy but my search continues to display in a new page.

THANKS,
Tawni
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Search Results in current window

Post by NorthEast »

Have you had a look at the help for inserting a search results proxy?
http://webhelp.madcapsoftware.com/flare ... ts%20proxy

It says "Do not insert this kind of proxy into a master page", so you need to insert the proxy into a topic.
Flare will (magically) find that topic, and the results will be displayed in it (instead of the default search results page).

Make sure you insert the proxy in only one topic in the whole project.
If you've inserted it anywhere else in the project (e.g. the master page), make you you remove if from them.
tawnip
Propeller Head
Posts: 24
Joined: Sat Jan 24, 2015 10:59 am

Re: Search Results in current window

Post by tawnip »

Thank you for the reply Dave Lee. I did see that in the Flare help and right below that it says:
EDITING A SEARCH RESULTS PROXY
After inserting a Search Results proxy, you can edit it. To do this, open the topic or master page where the proxy is inserted, right-click on it, and select Edit Search Results Proxy.
I was hoping for the best. I can get the search results proxy to appear in a page that isn't my MasterPage, but I want it to display directly above the SideMenu on the right and the same size as the SideMenu.

I took the following out of my MasterPage and put it in my topic, but it did not work. Nothing appeared.

Code: Select all

    <body>
        <div class="sideContent" style="text-align: right;">
            <div class="dropdown">
                <button id="myBtn" class="dropbtn">Product Version</button>
                <div id="myDropdown" class="dropdown-content"><a href="http://www.xxx.htm">Version 9</a><a href="http://www.xxxx.htm">PreVersion 9</a>
                </div>
            </div>
            <script type="text/javascript">
				// Get the button, and when the user clicks on it, execute myFunction
				document.getElementById("myBtn").onclick = function() {myFunction()};

				/* myFunction toggles between adding and removing the show class, which is used to hide and show the dropdown content */
				function myFunction() {
				document.getElementById("myDropdown").classList.toggle("show");
				}
			</script>
            <p class="a_version" style="margin-top: 0.813em;margin-bottom: 1em;"><MadCap:variable name="General.NameNoR" /> <MadCap:conditionalText MadCap:conditions="xxx.Version9"><MadCap:variable name="General.Version#9" /></MadCap:conditionalText><MadCap:variable name="General.Version# Pre9" MadCap:conditions="xxxr.VersionPre9" /></p>
            <p>
                <MadCap:searchBarProxy />
            </p>
            <p>
                <MadCap:searchResultsProxy />
            </p>
            <MadCap:menuProxy style="mc-context-sensitive: True;text-align: right;" data-mc-skin="/Project/Skins/SideMenu.flskn" />
            <p class="aSpace" style="font-size: 0.81em;">  </p>
        </div>
        <h1>
I really don't want to manually add code to 3,000 topics.

This is what I am after: https://developer.salesforce.com/docs/a ... t=picklist

Yes, I am aware I need to code my buttons to function correctly. I am going to play with it today.

Have a great day,
Tawni :roll:
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Search Results in current window

Post by NorthEast »

tawnip wrote:This is what I am after: https://developer.salesforce.com/docs/a ... t=picklist
I don't think that sort of layout is possible using the Top Nav skin.

The search will automatically open a new page (the search results topic), so can't be embedded inside a topic like that.

You can only add the search results proxy to one topic in the project.
tawnip
Propeller Head
Posts: 24
Joined: Sat Jan 24, 2015 10:59 am

Re: Search Results in current window

Post by tawnip »

Well then, I guess I get to use my favorite word "No." Clients hate that, but I can't fix what can't be done. Thanks so much for your help.
Post Reply