掲示板

Inclusão de portlet buscar no cabeçalho do theme

thumbnail
9年前 に Guillermo Rodolfo Mangieri によって更新されました。

Inclusão de portlet buscar no cabeçalho do theme

Regular Member 投稿: 166 参加年月日: 12/09/10 最新の投稿
Uma boa tarde para todos...

Já consultei algumas pessoas, mas, ainda não tenho bem claro meu horizonte e procuro dicas.

Estou pretendendo trabalhar com um portlet de busca no cabeçalho no meu theme. Estou incluindo:

$velocityPortletPreferences.setValue("portlet-setup-show-borders", "false")
$theme.runtime("3_INSTANCE_a123", "", $velocityPortletPreferences.toString())
$velocityPortletPreferences.reset()

Só que preciso de controles de css para incluir isso à esquerda de um menu e tal. Para isto preciso controle do CSS para a instância e ai que reside o problema, ainda não encontro a trilha a desbravar para customizar.

Sugestões?

Desde já agradeço
thumbnail
9年前 に Anderson Perrelli によって更新されました。

RE: Inclusão de portlet buscar no cabeçalho do theme

Junior Member 投稿: 81 参加年月日: 13/06/12 最新の投稿
Olá Guillermo, tudo bem?

Acredito que este link pode te ajudar, de uma olhada,

https://www.liferay.com/community/forums/-/message_boards/message/9235687

Abraços
thumbnail
9年前 に Anderson Perrelli によって更新されました。

RE: Inclusão de portlet buscar no cabeçalho do theme

Junior Member 投稿: 81 参加年月日: 13/06/12 最新の投稿
thumbnail
9年前 に Guillermo Rodolfo Mangieri によって更新されました。

RE: Inclusão de portlet buscar no cabeçalho do theme

Regular Member 投稿: 166 参加年月日: 12/09/10 最新の投稿
BOM DIA, MESTRE ANDERSON!!!!

Matou a paus!!!! é isso mesmo que precisava... A unica coisa que eu acho que podem questionar é que ele é journalSearch e pelo que imagino que os arquivos Upados ficarão de fora... para inicio de trabalho está de muito bom tamanho...

Mais uma vez... meu muito obrigado!!!
thumbnail
9年前 に Anderson Perrelli によって更新されました。

RE: Inclusão de portlet buscar no cabeçalho do theme

Junior Member 投稿: 81 参加年月日: 13/06/12 最新の投稿
Hahahaha Guillermo é um prazer ajudá-lo.

Olha só, se você usar $theme.journalContentSearch(), realmente ele vai deixar os documentos de fora e só vai indexar os artigos web contents, porém você pode usar o $theme.search() neste caso ele vai fazer a busca geral, inclusive os documentos.

Abraços!
thumbnail
9年前 に Guillermo Rodolfo Mangieri によって更新されました。

RE: Inclusão de portlet buscar no cabeçalho do theme

Regular Member 投稿: 166 参加年月日: 12/09/10 最新の投稿
Bom dia, Anderson...

A solicitação do nosso patrocinador de projeto é que tenhamos um conjunto de links com uma busca onde tenha o campo e um botão ou lupa.

Com $theme.journalContentSearch() a gente tem campo e lupa. Com $theme.search() aparece um campo, seletor para escolha de pesquisa na internet ou somente no site e lupa... o problema é parametrizar para o seletor não aparecer. Se tiver uma dica sobre a documentação ou da parametrização, será bem vinda.

Eu já era fascinado por liferay. Depois dos treinamentos virei viciado.

=oD... HAVE A NICE DAY.
thumbnail
9年前 に Guillermo Rodolfo Mangieri によって更新されました。

RE: Inclusão de portlet buscar no cabeçalho do theme

Regular Member 投稿: 166 参加年月日: 12/09/10 最新の投稿
Prezado Anderson,

Estou vendo a camada de view do search e não vejo condicional para eliminar o seletor por parametrização.

Olhando \docroot\html\taglib\ui\search\start.jsp, o código:

<form action="<%= HtmlUtil.escapeAttribute(portletURL.toString()) %>" method="get" name="<%= randomNamespace %><%= namespace %>fm" onSubmit="<%= randomNamespace %><%= namespace %>search(); return false;">
<liferay-portlet:renderURLParams varImpl="portletURL" />

<input name="<%= namespace %>keywords" size="30" title="<liferay-ui:message key="search" />" type="text" value="<%= HtmlUtil.escapeAttribute(keywords) %>" />

<select name="<%= namespace %>groupId" title="<liferay-ui:message key="scope" /> ">
<c:if test="<%= !group.isStagingGroup() %>">
<option value="0" <%= (groupId == 0) ? "selected" : "" %>><liferay-ui:message key="everything" /></option>
</c:if>

<option value="<%= group.getGroupId() %>" <%= (groupId != 0) ? "selected" : "" %>><liferay-ui:message key='<%= "this-" + (group.isOrganization() ? "organization" : "site") %>' /></option>
</select>

<input align="absmiddle" border="0" src="<%= themeDisplay.getPathThemeImages() %>/common/search.png" title="<liferay-ui:message key="search" />" type="image" />


agora... poderia fazer um hook para eu customizar que tenha condicional para customizar esses parametros e permitir a escolha da aparição (ou não) do seletor, ne?
ou vc acha melhor clonar o portlet e criar o gambiarraSearch?
thumbnail
8年前 に Anderson Perrelli によって更新されました。

Re: [Liferay Forums][Português] RE: Inclusão de portlet buscar no cabeçalho

Junior Member 投稿: 81 参加年月日: 13/06/12 最新の投稿
Não lembro agora sé é possível eliminar esse seletor, vou dar uma
pesquisada e te dou uma resposta depois, mas a ideia do HOOK é sempre
melhor, vai de HOOK amigo, chama os vingadores hahahaha


Abraços!

*Anderson Gonçalves Perrelli Borba*
Trainer / Software Engineer
+55 81 30331405 / +55 81 96276718

Liferay Inc.
Enterprise. Open Source. For Life
www.liferay.com

On Wed, Apr 15, 2015 at 10:41 AM, Guillermo Rodolfo Mangieri from
liferay.com <forums@liferay.com> wrote:

> Prezado Anderson,
>
> Estou vendo a camada de view do search e não vejo condicional para
> eliminar o seletor por parametrização.
>
> Olhando \docroot\html\taglib\ui\search\start.jsp, o código:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *<form action="<%= HtmlUtil.escapeAttribute(portletURL.toString()) %>"
> method="get" name="<%= randomNamespace %><%= namespace %>fm" onSubmit="<%=
> randomNamespace %><%= namespace %>search(); return
> false;"><liferay-portlet:renderURLParams varImpl="portletURL" /><input
> name="<%= namespace %>keywords" size="30" title="<liferay-ui:message
> key="search" />" type="text" value="<%= HtmlUtil.escapeAttribute(keywords)
> %>" /><select name="<%= namespace %>groupId" title="<liferay-ui:message
> key="scope" /> "> <c:if test="<%= !group.isStagingGroup() %>"> <option
> value="0" <%= (groupId == 0) ? "selected" : "" %>><liferay-ui:message
> key="everything" /></option> </c:if> <option value="<%= group.getGroupId()
> %>" <%= (groupId != 0) ? "selected" : "" %>><liferay-ui:message key='<%=
> "this-" + (group.isOrganization() ? "organization" : "site") %>'
> /></option></select><input align="absmiddle" border="0" src="<%=
> themeDisplay.getPathThemeImages() %>/common/search.png"
> title="<liferay-ui:message key="search" />" type="image" />*
>
> agora... poderia fazer um hook para eu customizar que tenha condicional
> para customizar esses parametros e permitir a escolha da aparição (ou não)
> do seletor, ne?
> ou vc acha melhor clonar o portlet e criar o gambiarraSearch?
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/52412473
> --
> Liferay.com <https://www.liferay.com>
thumbnail
8年前 に Anderson Perrelli によって更新されました。

Re: [Liferay Forums][Português] RE: Inclusão de portlet buscar no cabeçalho

Junior Member 投稿: 81 参加年月日: 13/06/12 最新の投稿
Não lembro agora sé é possível eliminar esse seletor, vou dar uma
pesquisada e te dou uma resposta depois, mas a ideia do HOOK é sempre
melhor, vai de HOOK amigo, chama os vingadores hahahaha


Abraços!

*Anderson Gonçalves Perrelli Borba*
Trainer / Software Engineer
+55 81 30331405 / +55 81 96276718

Liferay Inc.
Enterprise. Open Source. For Life
www.liferay.com

On Wed, Apr 15, 2015 at 10:41 AM, Guillermo Rodolfo Mangieri from
liferay.com <forums@liferay.com> wrote:

> Prezado Anderson,
>
> Estou vendo a camada de view do search e não vejo condicional para
> eliminar o seletor por parametrização.
>
> Olhando \docroot\html\taglib\ui\search\start.jsp, o código:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *<form action="<%= HtmlUtil.escapeAttribute(portletURL.toString()) %>"
> method="get" name="<%= randomNamespace %><%= namespace %>fm" onSubmit="<%=
> randomNamespace %><%= namespace %>search(); return
> false;"><liferay-portlet:renderURLParams varImpl="portletURL" /><input
> name="<%= namespace %>keywords" size="30" title="<liferay-ui:message
> key="search" />" type="text" value="<%= HtmlUtil.escapeAttribute(keywords)
> %>" /><select name="<%= namespace %>groupId" title="<liferay-ui:message
> key="scope" /> "> <c:if test="<%= !group.isStagingGroup() %>"> <option
> value="0" <%= (groupId == 0) ? "selected" : "" %>><liferay-ui:message
> key="everything" /></option> </c:if> <option value="<%= group.getGroupId()
> %>" <%= (groupId != 0) ? "selected" : "" %>><liferay-ui:message key='<%=
> "this-" + (group.isOrganization() ? "organization" : "site") %>'
> /></option></select><input align="absmiddle" border="0" src="<%=
> themeDisplay.getPathThemeImages() %>/common/search.png"
> title="<liferay-ui:message key="search" />" type="image" />*
>
> agora... poderia fazer um hook para eu customizar que tenha condicional
> para customizar esses parametros e permitir a escolha da aparição (ou não)
> do seletor, ne?
> ou vc acha melhor clonar o portlet e criar o gambiarraSearch?
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/52412473
> --
> Liferay.com <https://www.liferay.com>
thumbnail
8年前 に Anderson Perrelli によって更新されました。

Re: [Liferay Forums][Português] RE: Inclusão de portlet buscar no cabeçalho

Junior Member 投稿: 81 参加年月日: 13/06/12 最新の投稿
Não lembro agora sé é possível eliminar esse seletor, vou dar uma
pesquisada e te dou uma resposta depois, mas a ideia do HOOK é sempre
melhor, vai de HOOK amigo, chama os vingadores hahahaha


Abraços!

*Anderson Gonçalves Perrelli Borba*
Trainer / Software Engineer
+55 81 30331405 / +55 81 96276718

Liferay Inc.
Enterprise. Open Source. For Life
www.liferay.com

On Wed, Apr 15, 2015 at 10:41 AM, Guillermo Rodolfo Mangieri from
liferay.com <forums@liferay.com> wrote:

> Prezado Anderson,
>
> Estou vendo a camada de view do search e não vejo condicional para
> eliminar o seletor por parametrização.
>
> Olhando \docroot\html\taglib\ui\search\start.jsp, o código:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *<form action="<%= HtmlUtil.escapeAttribute(portletURL.toString()) %>"
> method="get" name="<%= randomNamespace %><%= namespace %>fm" onSubmit="<%=
> randomNamespace %><%= namespace %>search(); return
> false;"><liferay-portlet:renderURLParams varImpl="portletURL" /><input
> name="<%= namespace %>keywords" size="30" title="<liferay-ui:message
> key="search" />" type="text" value="<%= HtmlUtil.escapeAttribute(keywords)
> %>" /><select name="<%= namespace %>groupId" title="<liferay-ui:message
> key="scope" /> "> <c:if test="<%= !group.isStagingGroup() %>"> <option
> value="0" <%= (groupId == 0) ? "selected" : "" %>><liferay-ui:message
> key="everything" /></option> </c:if> <option value="<%= group.getGroupId()
> %>" <%= (groupId != 0) ? "selected" : "" %>><liferay-ui:message key='<%=
> "this-" + (group.isOrganization() ? "organization" : "site") %>'
> /></option></select><input align="absmiddle" border="0" src="<%=
> themeDisplay.getPathThemeImages() %>/common/search.png"
> title="<liferay-ui:message key="search" />" type="image" />*
>
> agora... poderia fazer um hook para eu customizar que tenha condicional
> para customizar esses parametros e permitir a escolha da aparição (ou não)
> do seletor, ne?
> ou vc acha melhor clonar o portlet e criar o gambiarraSearch?
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/52412473
> --
> Liferay.com <https://www.liferay.com>
thumbnail
8年前 に Anderson Perrelli によって更新されました。

Re: [Liferay Forums][Português] RE: Inclusão de portlet buscar no cabeçalho

Junior Member 投稿: 81 参加年月日: 13/06/12 最新の投稿
Não lembro agora sé é possível eliminar esse seletor, vou dar uma
pesquisada e te dou uma resposta depois, mas a ideia do HOOK é sempre
melhor, vai de HOOK amigo, chama os vingadores hahahaha


Abraços!

*Anderson Gonçalves Perrelli Borba*
Trainer / Software Engineer
+55 81 30331405 / +55 81 96276718

Liferay Inc.
Enterprise. Open Source. For Life
www.liferay.com

On Wed, Apr 15, 2015 at 10:41 AM, Guillermo Rodolfo Mangieri from
liferay.com <forums@liferay.com> wrote:

> Prezado Anderson,
>
> Estou vendo a camada de view do search e não vejo condicional para
> eliminar o seletor por parametrização.
>
> Olhando \docroot\html\taglib\ui\search\start.jsp, o código:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *<form action="<%= HtmlUtil.escapeAttribute(portletURL.toString()) %>"
> method="get" name="<%= randomNamespace %><%= namespace %>fm" onSubmit="<%=
> randomNamespace %><%= namespace %>search(); return
> false;"><liferay-portlet:renderURLParams varImpl="portletURL" /><input
> name="<%= namespace %>keywords" size="30" title="<liferay-ui:message
> key="search" />" type="text" value="<%= HtmlUtil.escapeAttribute(keywords)
> %>" /><select name="<%= namespace %>groupId" title="<liferay-ui:message
> key="scope" /> "> <c:if test="<%= !group.isStagingGroup() %>"> <option
> value="0" <%= (groupId == 0) ? "selected" : "" %>><liferay-ui:message
> key="everything" /></option> </c:if> <option value="<%= group.getGroupId()
> %>" <%= (groupId != 0) ? "selected" : "" %>><liferay-ui:message key='<%=
> "this-" + (group.isOrganization() ? "organization" : "site") %>'
> /></option></select><input align="absmiddle" border="0" src="<%=
> themeDisplay.getPathThemeImages() %>/common/search.png"
> title="<liferay-ui:message key="search" />" type="image" />*
>
> agora... poderia fazer um hook para eu customizar que tenha condicional
> para customizar esses parametros e permitir a escolha da aparição (ou não)
> do seletor, ne?
> ou vc acha melhor clonar o portlet e criar o gambiarraSearch?
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/52412473
> --
> Liferay.com <https://www.liferay.com>
thumbnail
9年前 に Guillermo Rodolfo Mangieri によって更新されました。

RE: Inclusão de portlet buscar no cabeçalho do theme

Regular Member 投稿: 166 参加年月日: 12/09/10 最新の投稿
Para efeitos de registro... se alguem se interessar

https://www.liferay.com/pt/web/tauseef/blog/-/blogs/steps-to-add-search-portlet-in-theme-and-customize-that-portlet-?_33_redirect=http%253A%252F%252Fwww.liferay.com%252Fweb%252Ftauseef%252Fblog%253Fp_p_id%253D33%2526p_p_lifecycle%253D0%2526p_p_state%253Dnormal%2526p_p_mode%253Dview%2526p_p_col_id%253Dcolumn-2%2526p_p_col_count%253D1%2526_33_advancedSearch%253Dfalse%2526_33_keywords%253D%2526_33_delta%253D%2526p_r_p_564233524_resetCur%253Dfalse%2526_33_struts_action%253D%25252Fblogs%25252Fview%2526_33_andOperator%253Dtrue
thumbnail
8年前 に Marco Antônio Leite Cavalcante によって更新されました。

RE: Inclusão de portlet buscar no cabeçalho do theme

Junior Member 投稿: 60 参加年月日: 12/06/04 最新の投稿
Encontrei um outro link que pode te ajudar também:

https://www.liferay.com/pt/community/forums/-/message_boards/message/43006363

Abraços
thumbnail
8年前 に Guillermo Rodolfo Mangieri によって更新されました。

RE: Inclusão de portlet buscar no cabeçalho do theme

Regular Member 投稿: 166 参加年月日: 12/09/10 最新の投稿
Obrigado Marco...

Nosso webdesigner tomou uma providência para sumir com o seletor por css...

Agora precisamos parametrizar categorias para que o search seja em categorias de conteudos web...

Mas, valeu pela dica... vamos testar as alternativas...