0

I made an Extension with Extbase and iwant the detail view to be shown in a lightbox and it does. The Problem is: I dont want the main template (of the main page with navigation etc.) to be seen, but just the detailed view. What do I have to change, to exclude the Main Template?

knigge
  • 483
  • 5
  • 12

2 Answers2

1

Use dedicated typeNum for this content and in its TS configuration set: disableAllHeaderCode = 1, it can be compared to the common way of rendering pure AJAX types like showed in the other sample.

For an example put this into your TypoScript template

myPurePage = PAGE
myPurePage {
  typeNum = 1234

  10 < styles.content.get  

  config {
    disableAllHeaderCode = 1
  }

}

So if you'll call it by http://yourdomain.tld/?id=123&type=1234 it will show only content of the main column from page with UID 123 (without html, body sections, any navigations from default template, etc, etc)

Community
  • 1
  • 1
biesior
  • 55,576
  • 10
  • 125
  • 182
  • Ok, im relatively new at typo3, especially typoscript. Where exactly do i put this code? – knigge Jan 04 '15 at 21:36
  • Into your main TypoScript Template, additionally you need to modify your extension to add this `1234` (or other of your choice) to the url as a `type` param, i.e. `&type=1234` – biesior Jan 04 '15 at 21:40
  • Okay, it works, how you said. But it is not quite what i need. I even tried making a new template just for this view and that didnt work either, i just get no content at all (cant really figure out why, the data should be in the link, to find all information) – knigge Jan 04 '15 at 23:38
  • I gave you simple sample how to use alternative behaviour using typeNum, you don't need to disable header code, for an example you can... just replace the ... template file – biesior Jan 05 '15 at 09:54
0

An alternative to the solution @biesior provided: Use the extension typoscript_rendering. It provides a ViewHelper to generate a link that renders only the view for an extbase action, without the layout.

Jost
  • 5,948
  • 8
  • 42
  • 72