Changeset 8427


Ignore:
Timestamp:
08/06/10 12:34:29 (22 months ago)
Author:
PaulHarvey
Message:

Item9415: Make the new FAQ demo app create new FAQs in %USERSWEB%

Location:
trunk/core/data/System
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/data/System/BasicForm.txt

    r8415 r8427  
    55| Topic Summary | text | 80 | | Short summary of feature/bug/idea | | 
    66| Interested Parties | text | 80 | | Use for tracking and show key interested people | | 
    7 | Related Topics | textboxlist | 80 | %SCRIPTURL{"view"}%/%WEB%/%TOPIC%?contenttype=text/plain;skin=text;section=topics | Please add links to related topics | | 
     7| Related Topics | textboxlist | 40 | %SCRIPTURL{"view"}%/%WEB%/%TOPIC%?contenttype=text/plain;skin=text;section=topics;qcallingweb=%BASEWEB% | Please add links to related topics | | 
    88 
    99%JQREQUIRE{"chili"}%<verbatim class="tml"> 
    1010%STARTSECTION{"topics"}%<noautolink>%SEARCH{ 
    1111    "lc(name)=~lc('.*%URLPARAM{"q"}%.*')" 
     12    web="%SYSTEMWEB%,%USERSWEB%" 
    1213    type="query" 
    1314    nonoise="on" 
    14     format="$topic" 
     15    format="$web.$topic" 
    1516}%</noautolink>%ENDSECTION{"topics"}%</verbatim> 
  • trunk/core/data/System/FrequentlyAskedQuestions.txt

    r8415 r8427  
    33---+ Frequently Asked Questions 
    44 
    5 This is a real FAQ, and also a demo of an easily implemented knowledge-base solution. You may view the code for the <a class="twistyExpandAll" href="#CreatorCode">topic creator</a> or [[%SCRIPTURL{"view"}%/%WEB%/%TOPIC%?raw=on][raw text of the whole topic]] to see how it was done. 
     5This is a real FAQ, and also a demo of an easily implemented knowledge-base solution. You may view the code for the <a class="twistyExpandAll" href="#CreatorCode">topic creator</a> or [[%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%?raw=on][raw text of the whole topic]] to see how it was done. 
    66%TWISTY{showlink="Summary of the pieces used..."}% 
    77   * [[FAQTemplate]] is used to populate new FAQ topics with their default content 
     
    2424 
    2525%SEARCH{ 
    26    "form.name='BasicForm' AND TopicClassification='FrequentlyAskedQuestion'" 
    27    type="query" 
    28    nonoise="on" 
    29    format="   * $formfield(TopicSummary) [[$topic][Answer]]" 
    30    footer="$ntopics FAQs found" 
     26    "form.name~'*BasicForm' AND TopicClassification='FrequentlyAskedQuestion'" 
     27    type="query" 
     28    nonoise="on" 
     29    web="%SYSTEMWEB%,%USERSWEB%" 
     30    header="$n()---++ Results from [[$web.WebHome][$web]] web" 
     31    format="   * $formfield(TopicSummary) [[$web.$topic][Answer]]" 
     32    footer="$ntopics FAQs found$n" 
    3133}% 
    3234 
     
    3941%TWISTY{showlink="Show topic creator code..."}%%JQREQUIRE{"chili"}% 
    4042<verbatim class="tml">%STARTSECTION{"creator"}%%JQREQUIRE{"wikiword"}% 
    41 <form action="%SCRIPTURL{"edit"}%/%WEB%/" method="post" id='newfaqform'> 
     43<form action="%SCRIPTURLPATH{"edit"}%/%USERSWEB%/" method="post" id='newfaqform'> 
    4244New FAQ topic (based on FAQTemplate) 
    4345| %MAKETEXT{"FAQ"}%   | <input type="text" id="faqsummary" name="TopicSummary"\ 
     
    4951 
    5052    <input type="hidden" name="onlywikiname" value="on" /> 
    51     <input type="hidden" name="templatetopic" value="FAQTemplate" /> 
    52     <input type="hidden" name="formtemplate" value="BasicForm" /> 
     53    <input type="hidden" name="templatetopic" value="%SYSTEMWEB%.FAQTemplate" /> 
     54    <input type="hidden" name="formtemplate" value="%SYSTEMWEB%.BasicForm" /> 
    5355    <input type="hidden" name="TopicClassification" value="FrequentlyAskedQuestion" /> 
    5456    <input type="hidden" id="faqtopictitle" name="TopicTitle" value="" /> 
  • trunk/core/data/System/VarSEARCH.txt

    r8415 r8427  
    4646%SEARCH{ 
    4747    "FAQ" 
    48     nototal="nonoise" 
     48    nonoise="on" 
    4949    header="| *Topic: * | *Summary: * |" 
    5050    format="| $topic    | $summary    |" 
Note: See TracChangeset for help on using the changeset viewer.