Foswiki.org is running Foswiki 2.0. Refresh your browser cache! Please report any issues to IRC #foswiki channel, or open a Task

Questions - Answered

arrowup

This website

arrowup

Installation of Foswiki

arrowup

Configuration

arrowup

Using an extension

arrowup

Registration

arrowup

Authentication or Authorisation

arrowup

Documentation

arrowup

Issue in browser

arrowup

LDAP

arrowup

Missing functionality

arrowup

Topic Markup Language and applications

arrowup

Not sure...

IF{ "$USERNAME not ingroup 'AdminGroup'" then="foswikiHidden'" }: Missing operator in '$USERNAME not ingroup 'AdminGroup'' '>

What follows is the code used to render the list of support questions above and is only visible to AdminGroup.

Subject Area Sections

Parameters:
  • QUESTIONLIST - required - formatted hash of all topics with the selected status. See grabQuestions section below for info on how the individual topic data is structured.

%STARTSECTION{"subjects"}%
---+!! Questions %IF{"'%URLPARAM{title}%'!=''" then="%URLPARAM{"title"}%" else=" - %URLPARAM{"status" default="Answered"}%"}%

%FORMATLIST{"This website,Installation of Foswiki,Configuration,Using an extension,Upgrading from TWiki to Foswiki,Registration,Authentication or Authorisation,Documentation,Issue in browser,LDAP,Missing functionality,Developing extensions (plugins skins etc.),Topic Markup Language and applications,Not sure..."
   split=","
   separator=" $n"
   format="$percntFORMATLIST{\"%ENCODE{"%QUESTIONLIST%" type="entity"}%\" 
                         split=\"##\" 
                         pattern=\"(.*?)~(.*?)~(.*?)~(.*?)~(.*?)~(.*)\" 
                         include=\".*?$1.*?~.*\" 
                         null=\"\"
                         header=\"<div style='float:left;position:relative;top:1em;'><a href='#PageTop' title='Return to top'>$dollarpercntICON{arrowup}$dollarpercnt</a></div> $dollarn---++ $1  
         $dollarn\"
                         format=\"   * <a href='$percntSCRIPTURL{view}$percnt/$dollar2' title='Modifed by <nop>$dollar4 on $dollar5'><noautolink>$dollar3</noautolink></a> $dollarpercntIF{\\"'$dollar6'='1'\\" then=\\"<img src='$percentICONURL{new}$percnt'>\\"}$dollarpercnt <span class='foswikiGrayText foswikiSmall'>$7</span>\"
                         separator=\"$dollarn\"
         }$percnt"
}%
%ENDSECTION{"subjects"}%

Get all questions with same status

This section grabs all questions for the selected status. For each record, renders a set of topic information separated by tildas (~) as follows: "formfield(Subject)~web.topic~formfield(TopicTitle)~wikiname~date~revision~formfield(Extension)".
%STARTSECTION{"grabQuestions"}%%SEARCH{
   "form.name = 'QuestionForm' AND  Status = '%URLPARAM{"status" default="Answered"}%'"
   excludetopic="QuestionTemplate"
   web="%WEB%"
   type="query"
   format="$formfield(Subject)~$web.$topic~$percntENCODE{\"$formfield(TopicTitle)\" type=\"quote\"}$percnt~$wikiname~$date~$rev~$formfield(Extension)"
   order="modified" 
   reverse="on" 
   nonoise="on" 
  separator="##"
}%%ENDSECTION{"grabQuestions"}%

Topic revision: r37 - 15 Jan 2015, LynnwoodBrown
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License