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
--
KenBeal - 01 Jun 2006
Answer
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