Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,14 +1,11 @@ 1 1 {{velocity}} 2 -#set($faq = $doc.getObject( "FAQCode.FAQClass"))2 +#set($faq = $doc.getObject('FAQCode.FAQClass')) 3 3 #if($faq) 4 - $doc.use( "FAQCode.FAQClass")5 - #if ($context.action == "view")6 - #set ($answer = $doc.getValue( "answer"))4 + $doc.use('FAQCode.FAQClass') 5 + #if ($context.action == 'view') 6 + #set ($answer = $doc.getValue('answer')) 7 7 #if ("$!answer" != "") 8 - ## Make sure to resolve reference based on the right document 9 - {{context document="$doc.fullName"}} 10 - $answer 11 - {{/context}} 8 + $doc.display('answer') 12 12 #else 13 13 {{error}} 14 14 No answer has been provided yet for this FAQ entry. Be the first to provide one! Register on this wiki and edit this page to add an answer to this FAQ entry. ... ... @@ -15,7 +15,7 @@ 15 15 {{/error}} 16 16 #end 17 17 #else 18 - $doc.display( "answer")15 + $doc.display('answer') 19 19 #end 20 20 #else 21 21 This class sheet must be applied on a document containing an FAQCode.FAQClass object