<?xml version='1.0' encoding='UTF-8'?>
<!-- This document was created with Syntext Serna Free. -->
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % BOOK_ENTITIES SYSTEM "../../User_Guide.ent">
%BOOK_ENTITIES;
]>
<section id="sect-User_Guide-Search_portlet">
    <title>Search content in a site</title>
    <para>The
        <emphasis role="bold">Search</emphasis>
        function allows you to quickly search for any content in the system with a keyword from the front page, even if you
        do not log in. However, the number of the search results displayed depends on your role.
    </para>
    <para>For example, if you do not log in, you only see the search results that are published.</para>
    <section id="sect-User_Guide-Search_portlet-Search_content">
        <title>Search for content</title>
        <procedure>
            <step>
                <para>
                    Enter a keyword into the search box and press <emphasis role="bold">Enter</emphasis>.
                </para>
                <para>
                    The search results
                    matching with your keyword are displayed in the search page:
                </para>
                <mediaobject>
                    <imageobject role="html">
                        <imagedata align="center" fileref="images/searchpage.png" format="PNG"/>
                    </imageobject>
                    <imageobject role="fo">
                        <imagedata align="center" fileref="images/searchpage.png" format="PNG" width="150mm"/>
                    </imageobject>
                </mediaobject>
                <para>In case of no search results matching the keyword, the search page is displayed as below:
                </para>
                <mediaobject>
                    <imageobject role="html">
                        <imagedata align="center" fileref="images/nosearchresult.png" format="PNG"/>
                    </imageobject>
                    <imageobject role="fo">
                        <imagedata align="center" fileref="images/nosearchresult.png" format="PNG" width="150mm"/>
                    </imageobject>
                </mediaobject>
                <para><emphasis role="bold">Details:</emphasis></para>
                <table frame="all">
                    <tgroup cols="2">
                        <colspec colname="c1"/>
                        <colspec colname="c2"/>
                        <thead>
                            <row>
                                <entry>
                                    Field
                                </entry>
                                <entry>
                                    Details
                                </entry>
                            </row>
                        </thead>
                        <tbody>
                            <row>
                                <entry>
                                    <emphasis role="bold">in Content</emphasis>
                                </entry>
                                <entry>
                                    <para>
                                        Search all <emphasis role="bold">published content</emphasis> of search index areas that contain the keyword. 
                                    </para>
                                </entry>
                            </row>
                            <row>
                                <entry>
                                    <emphasis role="bold">in Pages</emphasis>
                                </entry>
                                <entry>
                                    Search all <link linkend="SEO_data_page">SEO data</link> (description, keyword) and pages that have <emphasis role="bold">titles</emphasis> or <emphasis role="bold">names</emphasis> matching the keyword. 
                                </entry>
                            </row>
                        </tbody>
                    </tgroup>
                </table>
            </step>
            <step>
                <para>In the Search form, you can enter another keyword and set the search scale.
                </para>
            </step>
            <step>
                <para>Press <emphasis role="bold">Enter</emphasis>, or click
                    <emphasis role="bold">Search</emphasis>
                   to start searching.
                </para>
            </step>
        </procedure>
    </section>
    <section id="sect-User_Guide-Search_portlet_Edit-search-portlet">
        <title>Edit the Search portlet</title>
        <para>Editing the Search portlet allows you to change the display of search results.</para>
        <procedure>
            <step>
                <para>Open the Search page as in <xref linkend="sect-User_Guide-Search_portlet-Search_content"/>.</para>
            </step>
            <step>
                <para>Open the <emphasis role="bold">Edit Mode</emphasis> of the <emphasis role="bold">Search</emphasis> portlet by following one of two ways:</para>
                <itemizedlist>
                    <listitem>
                        <para><emphasis role="bold">The first way</emphasis></para>
							<para>Hover your cursor over <emphasis role="bold">Edit --> Content</emphasis> on the <emphasis role="bold">Administration</emphasis> bar, and then click
                            <inlinemediaobject>
                                <imageobject>
                                    <imagedata fileref="images/editicon5.png" format="PNG" width="6mm"/>
                                </imageobject>
                                <textobject>
                                    <phrase>pencil</phrase>
                                </textobject>
                            </inlinemediaobject>.
                        </para>
                        <mediaobject>
                            <imageobject role="html">
                                <imagedata align="center" fileref="images/search-editmode.png" format="PNG"/>
                            </imageobject>
                            <imageobject role="fo">
                                <imagedata align="center" fileref="images/search-editmode.png" format="PNG"
                                           width="150mm"/>
                            </imageobject>
                        </mediaobject>
                    </listitem>
                    <listitem>
                        <para><emphasis role="bold">The second way</emphasis></para>
							<para>Hover your cursor over
                            <emphasis role="bold">Edit --> Page --> Layout</emphasis>
                            on the <emphasis role="bold">Administration</emphasis> bar. The
                            <emphasis role="bold">Page Editor</emphasis>
                            will be displayed.
                        </para>
                        <itemizedlist>
                            <listitem>
                                <para>Hover your cursor over the
                                    <emphasis role="bold">SearchResult</emphasis>
                                    portlet and click
                                    <inlinemediaobject>
                                        <imageobject>
                                            <imagedata fileref="images/editicon5.png" format="PNG" width="6mm"/>
                                        </imageobject>
                                        <textobject>
                                            <phrase>pencil</phrase>
                                        </textobject>
                                    </inlinemediaobject>
                                    to edit the portlet.
                                </para>
                                <mediaobject>
                                    <imageobject role="html">
                                        <imagedata align="center" fileref="images/edit_searchresult.png" format="PNG"/>
                                    </imageobject>
                                    <imageobject role="fo">
                                        <imagedata align="center" fileref="images/edit_searchresult.png" format="PNG"
                                                   width="150mm"/>
                                    </imageobject>
                                </mediaobject>
                            </listitem>
                        </itemizedlist>
                    </listitem>
                </itemizedlist>

                <para>The <emphasis role="bold">Edit Mode</emphasis> of the <emphasis role="bold">Search</emphasis> portlet appears.</para>
                <mediaobject>
                    <imageobject role="html">
                        <imagedata align="center" fileref="images/editsearchportlet.png" format="PNG"/>
                    </imageobject>
                    <imageobject role="fo">
                        <imagedata align="center" fileref="images/editsearchportlet.png" format="PNG" width="150mm"/>
                    </imageobject>
                </mediaobject>
                <para><emphasis role="bold">Details:</emphasis></para>
                <table frame="all">
                        <tgroup cols="2">
                            <colspec colname="c1"/>
                            <colspec colname="c2"/>
                            <thead>
                                <row>
                                    <entry>
                                        Field
                                    </entry>
                                    <entry>
                                        Details
                                    </entry>
                                </row>
                            </thead>
                            <tbody>
                                <row>
                                    <entry>
                                        <emphasis role="bold">Items per Page</emphasis>
                                    </entry>
                                    <entry>
                                        <para>
                                            The number of search results displayed in each page.
                                        </para>
                                    </entry>
                                </row>
                                <row>
                                    <entry>
                                        <emphasis role="bold">Page Mode</emphasis>
                                    </entry>
                                    <entry>
                                        The way to display the search results. There are 3 options:
                                        <itemizedlist>
                                            <listitem>
                                                <para><emphasis role="bold">None</emphasis>: Only the first page of search results is
                                                    displayed in the search page.</para>
                                            </listitem>
                                            <listitem>
                                                <para><emphasis role="bold">More</emphasis>: When you click the
                                                    <emphasis role="bold">Search</emphasis>
                                                    button, the
                                                    first page of search result is displayed. The difference from the <emphasis role="bold">None</emphasis>
                                                    mode
                                                    is that, there is a <emphasis role="bold">More</emphasis> button allowing you to see more search results.
                                                    When clicking this button, new search results are appended to
                                                    the
                                                    current search result page like Twitter or Facebook behavior.
                                                </para>
                                            </listitem>
                                            <listitem>
                                                <para><emphasis role="bold">Pagination</emphasis>: In this mode, the search results are divided into many pages (for example, 1, 2, 3 and Next). You can navigate to another page by clicking the page number or <emphasis role="bold">Next</emphasis> in the bottom of the Search portlet to view more results.</para>
                                            </listitem>
                                        </itemizedlist>
                                    </entry>
                                </row>
                                <row>
                                    <entry>
                                        <emphasis role="bold">Search Form Template</emphasis>
                                    </entry>
                                    <entry>
                                        The template of the Search form.
                                    </entry>
                                </row>
                                <row>
                                    <entry>
                                        <emphasis role="bold">Search Result Template</emphasis>
                                    </entry>
                                    <entry>
                                        The template for displaying the search results.
                                    </entry>
                                </row>
                                <row>
                                    <entry>
                                        <emphasis role="bold">Search Page Layout Template</emphasis>
                                    </entry>
                                    <entry>
                                        The layout of the Search portlet.
                                    </entry>
                                </row>
                                <row>
                                    <entry>
                                        <emphasis role="bold">Base Path</emphasis>
                                    </entry>
                                    <entry>
                                        The page where you can see the content of a search result.
                                    </entry>
                                </row>
                            </tbody>
                        </tgroup>
                    </table>
            </step>
            <step>
                <para>Edit your desired portlet and click <emphasis role="bold">Save</emphasis> to accept your changes.</para>
            </step>
        </procedure>
    </section>
</section>
