simple question - i couldn’t find the answer - i tried it out, and it doesnt seem to work - the snippet just gets output as text in the page.
is it supposed to be able to work?
-
☆ A M B ☆
- 476 Posts
You are trying to put a snippet in the introtext? I guess the obvious question is why would you want to do that?
If you’re trying to call a snippet, the correct thing to do would be put it in the template, chunk, T.V. or somewhere else, but I’m not sure the reasoning behind putting it in an introtext field. What I do often is create a Template Variable just for snippets for all my templates. That way if I need to call a snippet on that specific document, I can put the snippet there and then have the T.V. in the template itself output the snippet.
Could you explain a little bit more what you’re trying to accomplish and I could give you a better solution for you to try?
Precision Web Development ... SmashStack.com
-
☆ A M B ☆
- 24,524 Posts
Works fine for me, cached or uncached. Are you sure your snippet works at all? It should make no difference, introtext, content, description, pagetitle... it all gets processed the same.
Quote from: crunch at Jul 17, 2008, 08:50 PM
simple question - i couldn’t find the answer - i tried it out, and it doesnt seem to work - the snippet just gets output as text in the page.
is it supposed to be able to work?
Don’t forget that snippet names are case-sensitive. Often, when you see the snippet call on the page, you’ve misspelled the snippet name.
-
☆ A M B ☆
- 24,524 Posts
That would certainly be a problem; you’d be running a loop: get the introtext which contains the snippet that gets the introtext which contains the snippet that gets the introtext... I think you can see where this is going.
not quite - the first ditto call is in the parent page which looks for the introtext of 3 child documents.
The second ditto call is in the introtext of only one of the 3 child documents, and is a ditto call to make links to its 4 children.
Why cant i just do a ditto call to include all depths from the first document?
Because i also need some text to display for each of the first three children.
Neither of the other 2 children have any links to display - they only display some text.
Maybe there is a simpler way to do it and I havn’t understood everything Ditto can do for me - it is a complicated snippet!
I find it not easy to get a firm grasp on from the official documentation. Any pointers?