forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: St. Anger on September 06, 2007, 04:12:13 pm

Title: Link to search results
Post by: St. Anger on September 06, 2007, 04:12:13 pm
For the next version of Coppermine, would it be possible to link to search results? The older version of CPG had links in the browser's address bar that could be copied and pasted, so users could post links to the search results. In CPG 1.4.x, however, the URL in the address bar always remains the same (gallery/thumbnails.php).

For example, my old version of Coppermine provided URLs in this format: www.yoursite.com/gallery/thumbnails.php?album=search&type=full&search=whatever+you+want+to+search+for
Title: Re: Link to search results
Post by: Nibbler on September 06, 2007, 05:39:58 pm
Because the search form is more complicated in 1.4 I changed it to a 'post' form. Link would be too messy otherwise.
Title: Re: Link to search results
Post by: Joachim Müller on September 07, 2007, 09:39:01 am
I hate POST forms for search pages. It's absolutely mandatory imo that the cpg1.5.x search uses GET!
Title: Re: Link to search results
Post by: Tranz on September 08, 2007, 02:36:37 am
Yes, the resulting URL (using Web developer toolbar Post to Get function) is messy. One possibility is to leave the addressbar clean with POST method. Then on the search results page have a Link to Results link that could be copied, the way Google Maps does it.
Title: Re: Link to search results
Post by: Joachim Müller on September 08, 2007, 10:21:22 am
I agree - that would be an option.