i am trying to create a theme and i would like your help with the syntax of a link.
when i do an image search, results come up in the search page and from there you can click any image thumb and take you to the image page.
I would like to have a custom link on the image page that can take you back to the search results page where the image came from but im not very familiar with php syntax so pls help ...
thank you
Comments
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintSearchBreadcrumb
is there a way then to make the printSearchBreadcrumb() function come up with a different word other that Search ?
We could probably help more if we would better understand what exactly you are trying to do on your theme.
right now in the "image page" i have
printParentBreadcrumb("", " | ", " | ");
which gives a link with the word "Search" which takes you to the search results page. (that's what i want)
but instead of the word "Search" i would like to have something else there because the site im making it is not on the english language..
The 3rd and 4th parameter determine the name of the link in the breadcrumb.
Otherwise you will have to create your own custom function.
In its simplest case, if you want to just link to a "standard" search on a simple target the link would be:
`.../page/search/`target
but you can also add parameters to the link for instance what search fields, etc.
No documentation on this that I remember but the constructor for the search engine will give you clues. Of course, that requires probably a bit more than even basic PHP to interpret.