[Pro] Site Search

Can anyone tell me what is the current status of the Simple Site Search Action when used in conjunction with other form elements. I seem to remember that a fix was in the pipline. If it will not work with other form elements on the same page has anyone any suggestions of third party site searchers that will work easily in Freeway.

Thanks

Trev (NI)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You must use the Multiple Form Action to insulate the search form from the rest of your page. Apply the Remove Form Action to the page, and apply the Multiple Form Action to each of your forms (select a common parent of all of the form elements, perhaps a table if you have followed the conventional wisdom and placed all of your form elements and their labels in a table). I haven’t tried that, but it should work.

Walter

On Nov 19, 2013, at 1:13 PM, t50ufo wrote:

Can anyone tell me what is the current status of the Simple Site Search Action when used in conjunction with other form elements. I seem to remember that a fix was in the pipline. If it will not work with other form elements on the same page has anyone any suggestions of third party site searchers that will work easily in Freeway.

Thanks

Trev (NI)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter

I will give it a go!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter

In your reply you say apply the Remove Form Action to the Page _ I don’t see this action. I have just got a Multiple Form Action for and item v 2.4.2 it has fields:

Name

Method: Post, get, none

Action

What should I be doing?

Trev


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Make sure nothing on the page is selected, look in the Page / Page Actions menu. It’s called No Form – I had the name wrong.

Walter

On Nov 19, 2013, at 2:20 PM, t50ufo wrote:

Hi Walter

In your reply you say apply the Remove Form Action to the Page _ I don’t see this action. I have just got a Multiple Form Action for and item v 2.4.2 it has fields:

Name

Method: Post, get, none

Action

What should I be doing?

Trev


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ah yes got that - and what about the fields Name/Action and Method on the other Multiple Action what Do I enter there?

T


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Whatever the previous solution was already adding. For that, you may need to go to the published site and look in the HTML source. You should see a line like this pretty near the top of the page source:

<form action="some/path/here" method="get">

It may look slightly different than that, but it should be close.

The value you want for the Action field is whatever is in the place of some/path/here above.

For method, look at the method in the same line.

Walter

On Nov 19, 2013, at 2:28 PM, t50ufo wrote:

Ah yes got that - and what about the fields Name/Action and Method on the other Multiple Action what Do I enter there?

T


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK Walter - I gave this a go but no success.

The first page I have tested (link below) contains a Table (form) with mals buy elements and of course the search form. I had a look at the source when I uploaded and found: Method: POST
and the Action: content for the mals form input here
is the Name field entry critical in the Action Multiple Form? I just called it something generic.

I have the Multiple Form action applied to the table with the form elements
and applied the No Form action to the page.
I think if I can crack one page the others should follow ok!

the page is here:
http://www.orionoptics.co.uk/jag3/AG/ag8.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Does your cart still work? Because it would appear that the form for that has been properly moved to wrap around the table containing all the fields. But I don’t see the script for the search engine at all – just the search field itself, properly labeled as q, and its timestamp field labeled t. I would expect to see some JavaScript or another form wrapped around the search form that would make that field do something. Can you post a link to a separate page with nothing on it except the search field, normally configured? Don’t mix in the Mals cart or Bing translate. I just need to see how the search would look on its own.

Walter

On Nov 20, 2013, at 2:56 PM, t50ufo wrote:

OK Walter - I gave this a go but no success.

The first page I have tested (link below) contains a Table (form) with mals buy elements and of course the search form. I had a look at the source when I uploaded and found: Method: POST
and the Action: content for the mals form input here
is the Name field entry critical in the Action Multiple Form? I just called it something generic.

I have the Multiple Form action applied to the table with the form elements
and applied the No Form action to the page.
I think if I can crack one page the others should follow ok!

the page is here:
http://www.orionoptics.co.uk/jag3/AG/ag8.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter
I am not at my computer just now but if you click on Telescopes in the main menu top left that page has the search working OK if that is of any help.

Thanks

Trev from iPad


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Okay, back on your other page, ttry adding a second instance of the Multiple Form Action to the page, this time applied to the HTML box containing your search field. In the Action field, enter ‘searchpage.html’ (without the quotes) and set the Method to GET.

Walter

On Nov 20, 2013, at 3:38 PM, t50ufo wrote:

Hi Walter
I am not at my computer just now but if you click on Telescopes in the main menu top left that page has the search working OK if that is of any help.

Thanks

Trev from iPad


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK had to contain the text field and the icon in a table and apply Multiple Form action to that and search function works OK. Problem now is the Shop form is reporting

Error: Userid not set

the action attached to the mals table is:

http://ww10.aitsafe.com/cf/addmulti.cfm

so I am guessing that it needs the user ID there to complete
any thoughts?

page here:

http://www.orionoptics.co.uk/jag3/AG/ag8.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter
Did you get a chance to have a look at that form problem. Think it is close but I can’t see how to proceed. Thanks.
Trev


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

How were you setting the user id previously? Was it in the Form Setup dialog, in a hidden field? If so, you will need to duplicate that in the Multiple Form Action. There is a section of the Action where you can add hidden fields. Basically, the Multiple Form Action becomes the Form Setup dialog when you use it – anything you would do in the dialog you have to recreate in the Action.

Walter

On Nov 21, 2013, at 5:48 PM, t50ufo wrote:

Walter
Did you get a chance to have a look at that form problem. Think it is close but I can’t see how to proceed. Thanks.
Trev


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK - so I have to add the UserID in the hidden field within the action.

Do you know the format for this please?

the hidden field is giving me NAME and VALUE

so if I type in “Userid” and my “mals user code” should that do it

I have tried and the mals form still will not complete

T


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Look on one of the other pages, where you have set this up in the Page / Form Setup dialog. Confirm that this was the only hidden field you added – there may be others that are not accounted for. I haven’t used Mals much, so I don’t remember the setup off the top of my head.

Walter

On Nov 22, 2013, at 8:33 AM, t50ufo wrote:

OK - so I have to add the UserID in the hidden field within the action.

Do you know the format for this please?

the hidden field is giving me NAME and VALUE

so if I type in “Userid” and my “mals user code” should that do it

I have tried and the mals form still will not complete

T


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ah - if that is the case then I would have to add lots of hidden text fields to have each page work. I have lots of these price Tables on this site so it sounds like a lot of extra fields to enter manually to get each to work - I don’t know if I really want to do that.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Then you need to decide if you want these pages to be searchable. You can’t nest a form inside another form, and these two forms have to be done separately. The only other idea I have at the moment (only one coffee so far today) is to use JavaScript to move the search field outside of the page-level form. Not sure how much work that would be.

Just took a quick look, and it would require some hackery.

Walter

On Nov 22, 2013, at 9:01 AM, t50ufo wrote:

Ah - if that is the case then I would have to add lots of hidden text fields to have each page work. I have lots of these price Tables on this site so it sounds like a lot of extra fields to enter manually to get each to work - I don’t know if I really want to do that.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hmmm! sounds like work! Walter - I Don’t want to take up your time on this - you are always more than kind with your help and assistance. On the existing old site (which is now being updated) I had to have it so if anyone wanted to search pages they had to return to the home page to enter the search field! Most sites just have a search field on each page. I must admit I am a wee bit miffed that after all this time Softpress are still not able to offer a Search engine other than this “Simple version”.
Would it more simple for me to bolt on a 3rd Party search engine - I would be prepared to pay for the service - but have never used one.

Trev


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes, well the Simple Search Action would need to do some fairly complex things to route around how Freeway builds forms. Freeway, since the dawn of time, has mandated that one page equals one form. The Multiple Form Action was Softpress’s only concession to the need to build more than one form on a page, and like many hacks, it’s not particularly friendly.

What I did very quickly was to put an instance of Simple Search alone on a page, up in the top-left corner of that page, and then carve that HTML item out using the TemplateHelper Action. This gave me an HTML file called _search_form.html (and since I checked the box to “Move form element into partial”, I got this partial:

<div>
   <form method="get" action="results.html">
     <p class="f-fp f-lp">
       <input id="item2" type=text name="q" size=13>
       <input name="t" type="hidden" value="1385129779031">
     </p>
   </form>
</div>

Now the next trick will be to inject that form into each page where it should appear using JavaScript. I would draw an HTML item in the place where the form should go (and large enough to fit it) and then apply Protaculous 2 to the page. The script (and I haven’t written it yet) that I would use in that page would do two things:

  1. It would inject the _search_form.html partial into the page, outside of the form tag already on the page (the one created by the Mals cart).
  2. It would locate the placeholder HTML box, and use Prototype’s clone_position() method to float the injected form directly over the top of the placeholder. It would be outside of the form tag in the source code order, but would appear (through the magic of absolute positioning) to be inside it.

This is probably an hour or two to write and debug, but once it was working, it could be copy/pasted to all the pages where you need to see that form appear.

Walter

PS: What Softpress could do with this Action is to assume that there would always be another form on the page, and use JavaScript to “submit” the search request, rather than using a real form wrapped around a real form element. Since JavaScript is a baseline requirement for using the search engine at all, there would be no usability hit from this design change.

On Nov 22, 2013, at 9:11 AM, Walter Lee Davis wrote:

Then you need to decide if you want these pages to be searchable. You can’t nest a form inside another form, and these two forms have to be done separately. The only other idea I have at the moment (only one coffee so far today) is to use JavaScript to move the search field outside of the page-level form. Not sure how much work that would be.

Just took a quick look, and it would require some hackery.

Walter

On Nov 22, 2013, at 9:01 AM, t50ufo wrote:

Ah - if that is the case then I would have to add lots of hidden text fields to have each page work. I have lots of these price Tables on this site so it sounds like a lot of extra fields to enter manually to get each to work - I don’t know if I really want to do that.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options