rfe: Town Hall: Menu title in search results
This commit is contained in:
parent
f0e6a30d75
commit
8419d42739
3 changed files with 11 additions and 15 deletions
|
|
@ -163,20 +163,15 @@ sub view {
|
|||
my $rs = $search->getResultSet;
|
||||
while (my $data = $rs->hashRef) {
|
||||
if ($self->session->user->userId eq $data->{ownerUserId} || $self->session->user->isInGroup($data->{groupIdView}) || $self->session->user->isInGroup($data->{groupIdEdit})) {
|
||||
my $url = $data->{url};
|
||||
if ($self->get("useContainers")) {
|
||||
my $asset = WebGUI::Asset->new($self->session, $data->{assetId}, $data->{className});
|
||||
if (defined $asset) {
|
||||
$url = $asset->getContainer->get("url");
|
||||
}
|
||||
}
|
||||
push(@results, {
|
||||
url => $url,
|
||||
title => $data->{title},
|
||||
synopsis => $data->{synopsis},
|
||||
assetId => $data->{assetId},
|
||||
});
|
||||
$var{results_found} = 1;
|
||||
my $asset = WebGUI::Asset->new($self->session, $data->{assetId}, $data->{className});
|
||||
if (defined $asset) {
|
||||
my $properties = $asset->get;
|
||||
if ($self->get("useContainers")) {
|
||||
$properties->{url} = $asset->getContainer->get("url");
|
||||
}
|
||||
push(@results, $properties);
|
||||
$var{results_found} = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
my $p = WebGUI::Paginator->new($self->session,$self->getUrl('doit=1;keywords='.$self->session->url->escape($self->session->form->get('keywords'))));
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ our $I18N = { ##hashref of hashes
|
|||
},
|
||||
|
||||
'result_set' => {
|
||||
message => q|Paginated search results with pagination controls.|,
|
||||
message => q|Paginated search results with pagination controls. The list of variables below are the main ones used, however every property of each asset in the result set is exposed and is usable in the template.|,
|
||||
lastUpdated => 1149567859,
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue