Include typo3 content elements on every page
DeutschYou often want to include some content on every page of your website. There are a lot of different ways to accomplish this with typo3. Here’s one quick solution: You create a hidden page or a page outside of your site tree, so that it doesn’t show up in your menu. Then you simply add the content you want displayed on all pages to that page. When you hover over the icon next to the title of the content element (the one that lets you copy, cut etc) you see the object’s ID.
If you want to include that element on every page, simply add it to your template using something similar to this:
1 2 3 4 5 | temp.foo = RECORDS temp.foo { tables = tt_content source = ID # Enter the object's ID here } |
That’s all.
You can also do this with all kind of plugins, many of them offer some kind of temp.foo < plugin.tx_extension_pi1 mechanism. It’s usually documented in the extension manual.
Related posts:
- Change template if content exists in Typo3
- Change Typo3 template depending on column content
- Typo3 in 15 minutes