How to create pre-defined search links for G2 embedded in Joomla?

Colt45

Joined: 2005-07-09
Posts: 48
Posted: Sat, 2005-12-31 06:52

I'm using Gallery2 v2.02 embedded in Joomla v1.04 using com_gallery2 v2.0.10

I'd like to create a couple of modules with lists of predefined searches. Problem is that Gallery2 doesn't display a different URI when searches are performed.

Can someone point me in the right direction?

-------------------------------------------------------------
Joomla + Gallery2 integration found at http://opensource.4theweb.nl/

 
istrebitjel

Joined: 2003-10-07
Posts: 4
Posted: Mon, 2006-01-30 21:29

Hey, I just found the answer to your problem - took only a month ;)

Get FireFox, if you don't already have it and install the Web Developer Extension.

Now on your gallery, right-click and select
Web Developer > Forms > Convert Form Methods > POSTs to GETs
You should get a confirmation that the forms have been converted.
If you submit the search now, you will get a copyable URL :)

URL Encoding might be helpful to continue using this.

----

I used this method to get a search for my .htaccess file.
I went on a strange migration and domain name change path, so I decided to redirect from one domain to the other, by submitting the stuff to search:

Options +FollowSymLinks -Indexes
RewriteEngine on
RewriteCond %{HTTP_HOST} ^gallery.old-domain.com$ [NC]
RewriteRule ^(.*)$ http://gallery.new-domain.com/main.php?g2_returnName=album&g2_return=http://gallery.new-domain.com/main.php&g2_formUrl=http://gallery.new-domain.com/main.php&g2_view=search.SearchScan&g2_form[formName]=search_SearchBlock&g2_form[searchCriteria]=$1&g2_form[useDefaultSettings]=1 [R=301,L]

There sure might be an easier way, but that's working fine for me.

Hope that helps,
Istrebitjel

 
yeliel

Joined: 2006-05-23
Posts: 1
Posted: Tue, 2006-05-23 19:53

Thanks, that was what i was looking for !

Marianne