SID-00686: Modification of code from Nuskin
| Status: |
Unanswered |
TWiki version: |
4.3.2 |
Perl version: |
5.8.8 |
| Category: |
CategorySearch |
Server OS: |
Apache 2.2.1.4 |
Last update: |
15 years ago |
On the Nuskin skin, under the menu Blog, there is a search function the returns the blog posts for the last 30 days. I was wondering how to go about changing this so I could search topics on "Main" web using the "BlogForm" form to create the news story and a "BlogPost" in the field
TopicType. I am not sure what some of the stuff below does, basically I want to create a new page using a template that has a form on it for each news story, and then have those news stories drop down from the menu bar?
%SEARCH{"
TopicType = 'BlogPost' OR
TopicType = 'BlogPostComment' " type="query" web="Main" nonoise="on" excludetopic="*Template" format="$percntCALC{$IF($TIME($date) < $GET(monthold), <nop>, Add(\"$formfield(Title)\", \"%SCRIPTURLPATH{view}%/$web/$IF($EXACT('$formfield(
TopicType)','BlogForm'),$parent#Comments,$topic)\", \"\",\"\"); $SETM(count,+1) )}$percnt" order="created" reverse="on" limit="10"}%
%CALC{$IF($EXEC($GET(count) < 1), Add("Nothing new to report from the last 30 days");,<nop>)}%
}
--
DanielBeaulieu - 2009-12-21
Discussion and Answer
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2010-02-02
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.