Changeset 14905
- Timestamp:
- 05/26/12 00:07:22 (12 months ago)
- Location:
- trunk/core
- Files:
-
- 3 edited
-
data/System/FAQViewTemplate.txt (modified) (2 diffs)
-
lib/Foswiki/Func.pm (modified) (1 diff)
-
lib/Foswiki/Meta.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/data/System/FAQViewTemplate.txt
r12750 r14905 1 1 %META:TOPICINFO{author="ProjectContributor" date="1308487028" format="1.1" version="1"}% 2 2 %META:TOPICPARENT{name="FAQForm"}% 3 %{ Include the default view templates from your current SKIN and COVER paths 4 3 %{<verbatim class="tml"> 4 =================================================== 5 FAQ topic templates 6 =================================================== 7 }%%{ 8 --------------------------------------------------- 9 Include the default view templates from your current SKIN and COVER paths 10 --------------------------------------------------- 5 11 }%%TMPL:INCLUDE{"view"}%%{ 6 12 --------------------------------------------------- 7 13 Override the content template DEFinition. This normally just contains %TEXT%, 8 14 but we add some more here to help decorate all the [[FAQForm]] topics in the 9 15 same way 10 16 --------------------------------------------------- 11 17 }%%TMPL:DEF{"content"}% 12 18 ---+ Question: %FORMFIELD{"TopicSummary"}% … … 17 23 ---- 18 24 *Related Topics:* %FORMFIELD{"RelatedTopics"}%%TMPL:END%%{ 19 25 --------------------------------------------------- 20 26 Re-define the form DEFinition to be empty; the contents of the from data 21 27 have already been displayed above so it wouldn't make much sense to show all 22 28 that again at the bottom of each [[FAQForm]] topic 23 24 }%%TMPL:DEF{"form"}%%TMPL:END% 29 --------------------------------------------------- 30 }%%TMPL:DEF{"form"}%%TMPL:END%%{ 31 =================================================== 32 </verbatim>}% -
trunk/core/lib/Foswiki/Func.pm
r14640 r14905 307 307 Get the request object. This is a subclass of =Foswiki::Request=. The request 308 308 object can be used to get the parameters passed to the request, either 309 via CGI or on the command ine (depending on how the script was called).309 via CGI or on the command line (depending on how the script was called). 310 310 311 311 A =Foswiki::Request= object is largely compatible with a CPAN:CGI object. -
trunk/core/lib/Foswiki/Meta.pm
r14896 r14905 1587 1587 * We don't merge for field attributes or title 1588 1588 * Topic info is not touched 1589 * The = mergeable= method on the form def is used to determine if that field is mergeable. If it isn't, the value currently in meta will _not_ be changed.1589 * The =isTextMergeable= method on the form def is used to determine if that field is mergeable. If it isn't, the value currently in meta will _not_ be changed. 1590 1590 1591 1591 =cut
Note: See TracChangeset
for help on using the changeset viewer.
