[Solved] Override template of search result

[Solved] Override template of search result

Monday 30 March 2009 3:09:03 am - 2 replies

Modified on Monday 30 March 2009 3:50:48 am by Mohamed Ben-Ahssene

Author Message

justin kazadi

Monday 30 March 2009 3:39:22 am

Hi,
edit your search template search.tpl , check these line


{section name=SearchResult loop=$search_result show=$search_result sequence=array(bglight,bgdark)}
   {node_view_gui view=line sequence=$:sequence use_url_translation=$use_url_translation content_node=$:item}
{/section}

create your own view and replace the line view by your view. for exempl if your view is named

search_view 

you will have this code ( at the place of the code above)

{section name=SearchResult loop=$search_result show=$search_result sequence=array(bglight,bgdark)}
   {node_view_gui view=search_view sequence=$:sequence use_url_translation=$use_url_translation content_node=$:item}
{/section}

i think can help you .
good luck

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Mohamed Ben-Ahssene

Monday 30 March 2009 3:49:56 am

Hey Justin you are cool!
thank you very much it's what i want to know !
I understand ez publish in the right way! thank you

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.