Olá pessoal, estou iniciando com Alfresco e tenho uma dúvida basica. Consegui colocar uma lupa de pesquisa na minha pagina, mas não consigo colocar o resultado. Vocês podem ver meu código?
Código da lupa de pesquisa:
model.jsonModel = {
services: [
"alfresco/services/NavigationService",
"alfresco/services/LogoutService",
"alfresco/services/DocumentService",
"alfresco/services/SearchService",
"alfresco/layout/HorizontalWidgets",
"alfresco/documentlibrary/AlfSearchList",
],
widgets: [
{
id: "MAIN_VERTICAL_LAYOUT",
name: "alfresco/layout/VerticalWidgets",
config:
{
widgets: [
{
id: "HEADER_BAR",
name: "alfresco/header/Header",
config:
{
widgets: [
{
id: "APP_MENU_BAR",
name: "alfresco/header/AlfMenuBar",
align: "left",
config:
{
widgets: [
{
id: "HOME",
name: "alfresco/menus/AlfMenuBarItem",
config: {
label: "Home",
targetUrl: "ap/ws/home"
}
}
]
}
},
{
id: "USER_MENU_BAR",
name: "alfresco/header/AlfMenuBar",
align: "right",
config: {
widgets: [
{
id: "USER_MENU",
name: "alfresco/header/AlfMenuBarPopup",
config: {
label: "User Menu",
widgets: [
{
id: "HEADER_USER_MENU",
name: "alfresco/menus/AlfMenuGroup",
config: {
widgets: [
{
id: "LOGOUT",
name: "alfresco/header/AlfMenuItem",
config:
{
label: "Logout",
iconClass: "alf-user-logout-icon",
publishTopic: "ALF_DOLOGOUT"
}
}
]
}
}
]
}
}
]
}
}
]
}
},
{
id: "HEADER_TITLE_BAR",
name: "alfresco/layout/LeftAndRight",
className: "share-header-title",
config:
{
semanticWrapper: "header",
widgets:
[
{
id: "HEADER_LOGO",
name: "alfresco/logo/Logo",
align: "left",
config:
{
logoClasses: "alfresco-logo-only"
}
},
{
id: "HEADER_TITLE",
name: "alfresco/header/Title",
align: "left",
config: {
label: "Bem vindo ao Processo Verde!",
setBrowserTitle: "Home"
}
}
]
}
},
{
id: "HEADER_SEARCH",
name: "alfresco/header/SearchBox",
align: "right",
config: {
id: "HEADER_SEARCH_BOX",
site: page.url.templateArgs.site,
linkToFacetedSearch: true
}
}
]
}
}
],
Código do resultado (não funciona).
widgets: [
{
id: "FCTSRCH_SEARCH_RESULTS_AREA",
name: "alfresco/search/AlfSearchResult",
config: {
widgets: [
{
name: "alfresco/documentlibrary/views/layouts/Row",
config: {
widgets: [
{
name: "alfresco/documentlibrary/views/layouts/Cell",
config: {
additionalCssClasses: "mediumpad",
widgets: [
{
name: "alfresco/renderers/SearchResultPropertyLink",
config: {
propertyToRender: "displayName"
}
}
]
}
},
{
name: "alfresco/documentlibrary/views/layouts/Cell",
config: {
additionalCssClasses: "mediumpad",
widgets: [
{
name: "alfresco/renderers/Property",
config: {
propertyToRender: "description"
}
}
]
}
}
]
}
}
]
}
}
]
};