Tags:
create new tag
view all tags

Question

In general, how do you nest quotes?

In specific, I'm trying to do the following and it's giving me the output below that (instead of including the topic MergeNotice, which I have defined).

%CALC{"$IF($EXACT($GET(myexpand),1),%INCLUDE{"%CALC{'$GET(mytopic)'}%"}%"}

"$IF(1,%INCLUDE{"%CALC{'MergeNotice'"}%"}

(Above the CALC, I've set the (SpreadSheetPlugin) variable mytopic to MergeNotice, which is why that text appears in the output. I also set the myexpand variable to 1 for this test.)

If I pull the INCLUDE section out and have it bare on the page, it works (since it has both single and double quotes, it appears that it's not breaking the parser). However, adding the CALC section around it breaks it, most likely because I'm using the same form of (double) quotes twice, and it appears that it's interpreting the beginning of the second set of double quotes as the end of the first set (so it doesn't match the inner single quotes first, etc). I've tried doubling the quotes; escaping with '\'; escaping with '"'; and removing them. None of these do what I want it to.

And, to be even more specific, since I'm a newbie to Wikis: I'm trying to create a generic FAQ page, which has both the questions and the answers. Then I'm creating two other pages, CollapsedFAQ and ExpandedFAQ, which set a variable and then include the FrequentlyAskedQuestions page. A link at the top of the page expands or collapses, by toggling between the two FAQ pages. I will never link directly to the FrequentlyAskedQuestions page.

Is this a brain-dead approach? I just saw SEARCH and META in the documentation and perhaps one or both of those would help me do this better. (Perhaps by having a separate page per question, and then bring them all together with a SEARCH; I'm seasoned at Perl but green at Wiki.)

Also, does TWiki support any AJAX-type actions? That would allow the "expand"/"collapse" links to behave more intuitively. (I searched SupportWeb for "ajax" and "xmlhttprequest", both of which had 0 hits; after submitting this page they should each have one...)

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: VM
Web server: VM
Perl version: VM
Client OS: Windows XP
Web Browser: Mozilla 1.7.12
Categories:  

-- KenBeal - 01 Jun 2006

Answer

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.

In the lack of feedback, you could try raising this directly on the plugin dev topics or stop by IRC.

-- SteffenPoulsen - 16 Jun 2006

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-06-25 - SteffenPoulsen
 
  • 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.