Tags:
create new tag
view all tags

SID-00686: Modification of code from Nuskin

Status: Unanswered 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

      Change status to:
ALERT! 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.
SupportForm
Status Unanswered
Title Modification of code from Nuskin
SupportCategory CategorySearch
TWiki version 4.3.2
Server OS Apache 2.2.1.4
Web server Solaris 8
Perl version 5.8.8
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2010-02-02 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.