rfe: Town Hall: Menu title in search results

This commit is contained in:
JT Smith 2008-09-16 14:59:51 +00:00
parent f0e6a30d75
commit 8419d42739
3 changed files with 11 additions and 15 deletions

View file

@ -1,4 +1,5 @@
7.6.0
- rfe: Town Hall: Menu title in search results
- rewrite macro parser, improving speed and making parameter parsing more sane
- Made the charset metatag the highest thing in the head block.
- fixed: AssetProxy allows proxying content in the trash or clipboard

View file

@ -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'))));

View file

@ -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,
},