[Pro] Simple search and Easiform action on same page issue

I have set up a form using the easiform actions but have found that I had to remove the Simple search action to get it working as my test responses when clicking the submit button on the easiform generated a search result. The easiform action didn’t function whilst the simple search was on the same page.

Is there something I am missing here at all?
Also was wanting to check regards the Simple search action which I have set up but can’t seem to get it to link to a search results page.
I have the action setup on the main site folder thouth the search is actually located in a sub directory. Should I instead apply the action to the directory folder instead?

Any insights would be most welcome.


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

Easy way round it is not to have Site Search on the same page - just put a link to a Site Search page.

This is an issue that has come up before - have a look at http://freewaytalk.net/thread/view/86077#m_99707

D


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

The easiForm action uses the form ‘action’ to send the form so two actions that send a form on the same page will not work as they will both need the form action property and this will be set to one action or the other, you could get around this by hand coding the search elements into a separate form on the page but this will need to be outside the boundaries of the contact form that you are using with easiForm.

Example of the form on the page set by FW:

<form action="EASIFORM_send_form_to"> // Set by FW (Opens easiform form)
easiForm stuff here
Submit 'easiform' button
</form> // Set by FW (Closes easiform form)

This will work:

<form action="EASIFORM_send_form_to"> // Set by FW
easiForm stuff here
Submit 'easiform' button
</form> // Set by FW (Closes easiform form)

<form action="SEARCH_send_form_to"> // Set by you in a markup item (Opens search form)
Search stuff here // Set by you in a markup item
Submit 'search' button
</form> // Set by you in a markup item  (Closes search form)

As will this:

<form action="EASIFORM_send_form_to"> // Set by FW (Opens easiform form)
easiForm stuff here
Submit 'easiform' button
</form> // Set by you in a markup item (Closes easiform form)
<form action="SEARCH_send_form_to"> // Set by you in a markup item (Opens search form)
Search stuff here // Set by you in a markup item
Submit 'search' button
</form>// Set by FW (Closes Search form)

The code you would use for the search form to place in the markup item could probably be copied from the code output of the search form from one of the other pages that same search form is used on.

I don’t really know if it is needed to have a search option on a Contact form page 'if that is what the page with easiForm is but I tend to think along the lines of: If someone goes to a contact form it is to get in contact rather than to start searching for something… This is a much easier solution to placing the code for the search in a markup item, although it is simple there a sometimes things that might change ‘with layers’ within the page that could possibly screw things up in the future.

HTH
Mike

On Nov 14, 2012, at 9:17 PM, tonzodehoo wrote:

I have set up a form using the easiform actions but have found that I had to remove the Simple search action to get it working as my test responses when clicking the submit button on the easiform generated a search result. The easiform action didn’t function whilst the simple search was on the same page.

Is there something I am missing here at all?
Also was wanting to check regards the Simple search action which I have set up but can’t seem to get it to link to a search results page.
I have the action setup on the main site folder thouth the search is actually located in a sub directory. Should I instead apply the action to the directory folder instead?

Any insights would be most welcome.


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

Hello mike thanks for this.

Its not actually a contact form page the search action is on. Its a page where people can read anecdotes from their local area/people and submit their own anecdotes. Ideally they could search the content of the page and then submit their own inputs to the anecdotes. The easiform actions are being used for them to submit their ideas.
I have removed the search action from the easiform page for now and will try to see if the solution you have outlined is one I can set up. Coding such things is not my strongest point but I’ll look at it once I have the initial site up and running.

I had a look at the link Dave as well and this appears to have been an issue which there may have been a fix maybe being worked on a while back. Not sure if it did come about at all.

Any thoughts on why the search results page is not being linked to from the search action on particular pages? The instructions for setting up the search actions are quite straightforward but no results appear though I know the searched for text exists.

Thanks for any inputs.


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

You can enclose the Simple Site Search in its own form by using the Multiple Form Action that can be found here:

http://actionsforge.com/actions/view/43-multiple-form

You just need to place your Simple Site Search field (and button if you have one) in an HTML item that has the Multiple Form Action applied. That’s it.

Hope this helps,

Joe

On 14 Nov 2012, at 21:33, tonzodehoo email@hidden wrote:

Hello mike thanks for this.

Its not actually a contact form page the search action is on. Its a page where people can read anecdotes from their local area/people and submit their own anecdotes. Ideally they could search the content of the page and then submit their own inputs to the anecdotes. The easiform actions are being used for them to submit their ideas.
I have removed the search action from the easiform page for now and will try to see if the solution you have outlined is one I can set up. Coding such things is not my strongest point but I’ll look at it once I have the initial site up and running.

I had a look at the link Dave as well and this appears to have been an issue which there may have been a fix maybe being worked on a while back. Not sure if it did come about at all.

Any thoughts on why the search results page is not being linked to from the search action on particular pages? The instructions for setting up the search actions are quite straightforward but no results appear though I know the searched for text exists.

Thanks for any inputs.


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

There are 3 different Actions required for this to work.

The Folder Action - ‘Simple Site Search’ that you apply to your Site folder in the Side Pane. Page>Folder Actions>Simple Site Search

Item Action - Applied to the Text Field that you are using for your Search Box. Item>Actions>Simple Site Search

The third is the Action that you draw on your FW page to show the results. Click on the Toolbar Actions Icon (the one with the small FW Cog). Choose Simple Site Search from the Drop Down and ‘draw’ an instance of the action on your FW page where you want the results to appear.

If you are doing all this and it still doesn’t work post a link so that we can have a look.

D


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

Joe-
Thanks for this. I had set up the action but it appeared to cause more issues for me. It may be down to me not setting it up correctly. What goes into the Action in the action box in the action panel?

Dave-

I have setup a bare bones version of the site here:
http://www.thegorbals.co.uk/The%20Gorbals%20Anecdotes/

I’ve yet to drop in the graphics and tidy things up on it. If you try a search for a well used word then the results show nothing found.

Let me know how you get on.
Thanks again for all your support.


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

The first thing I would do is get rid of the space characters in your page/file/folder names - that is not going to help.

You should always stick to Alphanumerics (a-z, A-Z, 0-9) and _underscores and -hyphens. Other characters/punctuation (including spaces) should be avoided. They will trip up servers/browsers.

There is also a pop up window (170thscouts.html) that appears on the results page - get rid of that just now.

Sort those and then lets see how you get on.

D


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

OK - here is a dumb question that I should have asked at the beginning.

Where is the anecdote content coming from?

And if you tell me these are existing pages that are loaded via an iFrame and dont actually belong to the FW document then I will tell you that is why you are not getting any results.

The source for the info contained in the search js file is created at publish time (of the FW document) and does not/cannot contain any external content.

If your content that you want searchable is outwith the FW doc then you will need another search facility.

Max mentions one that he has used with his WebYep sites http://codecanyon.net/item/php-search-engine/89499?sso?WT.ac=search_item&WT.seg_1=search_item&WT.z_author=dtbaker

But there are many.

This is one that I have used in the past http://www.xav.com/scripts/search/

D


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

Hello Dave,

The main bulk of the text, the anecdotes themselves I had, as an interim measure placed in mark up items on each page. This allowed visitors to see the anecdotes.
I realise from what you are saying that the actual text needs to be present on the page for the search to work. Fairly obvious now you come to mention it!

I have a decades worth of anecdotes in html format, amounting to hundreds per year, which I want to make searchable. I am trying to migrate from a previous setup, not of my doing, which meant that the entries were inserted manually as bits of html code as they came in.

If there is an easier more efficient and searchable means to achieve this then that would be grand.

I’ll get back onto this today and see if I can work out things better. Any suggestions are most welcome.


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

The couple of search tools that I mentioned in my post index the web page content as it is seen on the server - ie all of it.

But in the long term if this site is going to grow and not require constant input from you then you are going to have to consider a PHP/MySql solution.

Or you might want to consider something like Disqus which allows moderation of posts ie via the Comments action.

D


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

Hello again Dave,
had a look at disqus and reckon it could be useful. Another tool in the box I guess.

I suppose the big challenge for me is to try to find a way to import the hundreds of html anecdotes into a php setup. I have used phpBB3 many times and it is quite comprehensive and if I can import the existing data into a phpBB3 setup then this would get things moving where I want them to go.

Also to try to achieve a setup which is not too different for the existing users.

I’m still assessing the options for this. Any progress I can let you know if you want.
Thanks for now


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

If they were all added manually and they don’t exist in a Database then they either stay that way or you bite the bullet and get them into a DB.

I think I would be tempted to leave them where they are for just now and work on a DB solution for 2013 that doesn’t require constant input from you.

D


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