Forums / Developer / Printable Search in eZ

Printable Search in eZ

Author Message

kracker (the)

Wednesday 22 November 2006 12:51:00 am

<b>Background</b>

I was recently updating an eZ publish search implementation. I noticed that the site design used a print icon in it's page layout, yet sadly it was hard coded to only work on page views which displayed node content. (statically linked to for content view full + node_id).

On page views using the search (displaying results) the printable link naturally did not function and would link to an incomplete url. Leading me to sneaking implementing alternate printable views (other than 'view') like advanced search (results). Yet I ran into a problem of how to do this the <i>'eZ'</i> way, this must have been done before (dynamic printable link for alternate module views :\)

So before I hack it to bits, I pause to ask here for your thoughts, experiences and conclusions.

<b>The Question</b>

How to detect in $module_result or other template variable when using the '/content/advancedsearch/' module as apposed to 'view'.

Using the above solution, then how would you create a print this page link (#1) which passes the search url parameters to a printer friendly template layout and navigator.

I will document this thread to http://eZpedia.org and resulting solution for the community.

<i>//kracker

Incubus - Hidden 'eZc' Song</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Xavier Dutoit

Wednesday 22 November 2006 1:05:51 am

Hi,

I'd suggest to do the print with only a css (media=print). It works fine.

X+

http://www.sydesy.com

kracker (the)

Wednesday 22 November 2006 1:08:16 am

And just as quickly as I ask I realize I should have searched a little more thoroughly.

It seems 'ekke' has provided a solution some time ago.
<i>http://ez.no/community/forum/setup_design/solution_printer_version_link_for_search_is_working</i>

Perhaps I should file an issue on this topic as well?

<i>//kracker

Black Eyed Peas feat.Macy Gray - Request Line</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

kracker (the)

Wednesday 22 November 2006 1:56:42 am

node created! <i>http://ezpedia.org/wiki/en/ez/solution_printable_search_in_ez</i>

Create your very own documentation node about anything eZ publish in the eZpedia!

//kracker
<i>Mindless Self Indulgence - Bring the Pain</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Xavier Dutoit

Wednesday 22 November 2006 3:41:31 am

Create your very own documentation node about anything eZ publish in the eZpedia!

Deserves to be promoted as a signature !

X+

http://www.sydesy.com

Ekkehard Dörre

Wednesday 22 November 2006 5:37:19 am

Or the search result as PDF:

http://ez.no/community/forum/general/create_pdf_from_search_results_showing_all_results/re_create_pdf_from_search_results_showing_all__1

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing