How can I insert the current page title automaticly into a typo3 template?

It is. It's pretty simple to do. I'll assume you're using TemplaVoila, becase if you're not, you should be :-D Start off by putting some HTML in your template with a dummy page title.

Give it an ID attribute so it's easy to map. Like: h1 id="page-title">Page Title Here...) Save your template mapping Now go into your site's TypoScript template. Here you're going to insert the logic that fills in that space we just mapped with actual content.

To insert the page title is a matter of a couple of lines of TypoScript: lib. Pagetitle = TEXT lib.pagetitle. Data = page : title What this says is "take the space in the template that I mapped to lib.pagetitle.

Create a content object in that space of type TEXT. Then fill that content object with the title of the page Save your TypoScript template. Now you're done!

This probably sounds complicated at first glance, and it is, but the nice thing about this system is that it's amazingly flexible. Inserting text dynamically is just the beginning. The TSRef has all the details -- look up "getText" to get a flavor, that's the function that makes the "page : title" call in your TypoScript template drop in the page title TSRef is your friend.

I keep a printed copy of it at my desk -- if you want to make TYPO3 sing, it is your songbook.

It is. It's pretty simple to do. I'll assume you're using TemplaVoila, becase if you're not, you should be :-D Start off by putting some HTML in your template with a dummy page title.

Give it an ID attribute so it's easy to map. Like: Page Title Here Next, go into TemplaVoila and map that element to the content type "TypoScript Object Path". When it prompts you for the object path, you can put in anything you want -- convention is that dynamic content is added in the "lib" namespace, so let's call it lib.pagetitle.(Omit that period at the end there.) When it asks you if you want to map this to "INNER" or "OUTER", choose "INNER" -- that will mean you're just mapping the space BETWEEN the ... tags.

("OUTER" means you're replacing the whole element, including the tags, which we don't want here because we want this to stay an H1. ) Save your template mapping. Now go into your site's TypoScript template.

Here you're going to insert the logic that fills in that space we just mapped with actual content. To insert the page title is a matter of a couple of lines of TypoScript: lib. Pagetitle = TEXT lib.pagetitle.

Data = page : title What this says is "take the space in the template that I mapped to lib.pagetitle. Create a content object in that space of type TEXT. Then fill that content object with the title of the page.

" Save your TypoScript template. Now you're done! This probably sounds complicated at first glance, and it is, but the nice thing about this system is that it's amazingly flexible.

Inserting text dynamically is just the beginning. The TSRef has all the details -- look up "getText" to get a flavor, that's the function that makes the "page : title" call in your TypoScript template drop in the page title. TSRef is your friend.

I keep a printed copy of it at my desk -- if you want to make TYPO3 sing, it is your songbook.

Thank you for that nice tutorial! I tried to find such a function in the TSRef - but I didn't (also I can't find getText at the moment) so I will keep on searching :) – user155997 Aug 15 '09 at 7:53 Yeah, it can be hard to find specific stuff in the TSRef. I had tried to include a direct link to getText but SO wouldn't let me because I'm new here.It's on this page: typo3.

Org/documentation/document-library/references/… – jalefkowit Aug 15 '09 at 14:20 I keep a printed copy with my own keywords and markings. Old school, I know, but it works! – jensgram Nov 18 '09 at 14:13.

Start off by putting some HTML in your template with a dummy page title. Give it an ID attribute so it's easy to map. Next, go into TemplaVoila and map that element to the content type "TypoScript Object Path".

When it prompts you for the object path, you can put in anything you want -- convention is that dynamic content is added in the "lib" namespace, so let's call it lib.pagetitle. (Omit that period at the end there.) When it asks you if you want to map this to "INNER" or "OUTER", choose "INNER" -- that will mean you're just mapping the space BETWEEN the ... tags. ("OUTER" means you're replacing the whole element, including the tags, which we don't want here because we want this to stay an H1.) Save your template mapping.

Now go into your site's TypoScript template. Here you're going to insert the logic that fills in that space we just mapped with actual content. What this says is "take the space in the template that I mapped to lib.pagetitle.

Create a content object in that space of type TEXT. Save your TypoScript template. Now you're done!

This probably sounds complicated at first glance, and it is, but the nice thing about this system is that it's amazingly flexible. Inserting text dynamically is just the beginning. The TSRef has all the details -- look up "getText" to get a flavor, that's the function that makes the "page : title" call in your TypoScript template drop in the page title.

TSRef is your friend. I keep a printed copy of it at my desk -- if you want to make TYPO3 sing, it is your songbook.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions