SID-01597: INCLUDINGTOPIC does not expand on ajax call
| Status: |
Answered |
TWiki version: |
5.1.1 |
Perl version: |
|
| Category: |
CategoryRendering |
Server OS: |
ubuntu |
Last update: |
13 years ago |
Hi,
I followed the
Blog.BlogEntry201101x2 example, making my own, i have %INCLUDINGTOPIC % on the topic to be called. It expand on the page but not on the topic that its being include. Is that expected ?
thanks
--
MichaelSevero - 2012-12-01
Discussion and Answer
Yes, because the INCLUDINGTOPIC refers to the topic that is included in an actual INCLUDE, which is resolved server-side in TWiki. When you do an Ajax call to a TWiki script, it looks like a regular call from the browser, e.g. the script does not know where it is being called from. You can however pass along parameters in the Ajax call, including the topic name that makes the Ajax call, and act upon the parameter value.
--
PeterThoeny - 2012-12-01
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.