Yesterday I posted a solution to how you can get content-elements to appear inside the text in a RTE. This was something I need on my hypnosis and hypnotherapy faq page. This time, I have found another thing I would like to do with content elements, it regards the same page. Look at the link to "can hypnosis be dangerous?": http://all-hypnosis-links.com/hypnosis-faq/answer/to-question/can-hypnosis-be-dangerous.html
The path includes /answer/to-question/ and then the title of the question. But it's a rather long path and that is not good with the search engines. But I have to use this setup because of realurl and the efaq extension. The optimal solution for me would be that the "answers" part of the extension could be hidden when the user is on /hypnosis-faq.html, and the "questions" part would be hidden when a question is clicked. Put differently, I wan to have the efaq plugin on the same page in the pagetree two times, but only one of them shown when a GET var is present - namely the efaq[uid].
It would be very very nice if there was a field in tt_content where you could insert a GET var, and when this was present, the content element should not be displayed. I could do this very simply by editing the code of efaq, but this method could be useful in many other situations. So my question to you is, how do I accomplish this? When I think about it, it could be possible with a "dummy extension" that extends tt_content, and some typoscript, but that's maybe more advanced than I'm capable of doing. Any suggestions?