, the results only display the topic titles and some metadata, not the contents of the topics.
%SEARCH{"cmm" scope="topic" order="created" limit="5" nonoise="on" bookview="on" }%
have content. Also, I don't think "$summary(searchcontext)" is supposed to be there.
--
TroyGoodson - 16 Apr 2015
I had the same issue. I found that in Search.pm, the template variable TEXTHEAD is attempted to be replaced multiple times in this case. The second replacement would produce the correct content. So I made sure the first replacement is not done for book view:
#for book view TEXTHEAD already gets replaced somewhere else
if (!$doBookView) {
if ($noSummary) {
$repeatText =~ s/%TEXTHEAD%//g;
$repeatText =~ s/ //g;
}
else {
$repeatText =~ s/%TEXTHEAD%/\$summary(searchcontext)/g;
}
}
Not really sure if this is the best way, I would hope someone with a deeper understanding of the code in Search.pm could have a look at it.
--
PhilippHoppen - 19 Apr 2022