Search code examples
typo3typo3-7.6.xtemplavoila

Adding Templavoila template to Typo3 blog


I am pretty new to Typo3, and I am sorry if my question is too easy to answer =)

I'm using Templavoila and I installed the Typo3 Blog extension (T3G?) and I ticked the checkbox "Install and use the template provided by the extension" when setting up my first blog. I hardly managed to get a html only page with a sidebar and list of posts.

My problem is that I can't find a way to add a template or any CSS to that page. I'd like to fit it into the rest of my website with the logo, menu, etc… but after a day of searching and reading, I haven't find a solution to my problem.

  • Is the problem that I'm using Templavoila rather than FLUID?
  • Is there a way to add a TV template to my blog?
  • How can I add CSS to that page (I have tried page.includeCSS.style without success)?
  • Is it possible to fit that blog in the rest of the website?

I'm using : Typo3 7.6 - Typo3 Blog 7.6 - Templavoila! Plus 7.2

PS : Is it just me or is it pretty difficult for new people to make their way into Typo3 ? ^^ I'm probably just missing something obvious but there isn't much documentation or tutorials dedicated to beginners. I hope it get's easier =)


Solution

  • Templavoila (and Templavoila plus) operate its "magic" by its function to show the content; thus you don't need anymore the usual TypoScript:

    page.10 < styles.content.get
    

    Instead, the page content must be replaced with:

    page.10 = USER 
    page.10.userFunc = tx_templavoilaplus_pi1->main_page
    

    Be sure to enable the TemplaVoila page module to manage content with TemplaVoila.The reason is that the "bare" TYPO3 uses the colPos field to retrieve the content (e.g. styles.content.get means colPos=0) while as far as I remember TemplaVoila uses its own logic and the TemplaVoila page module is necessary (also, as far as I can remember,there is an option to map a TemplaVoila content container to the colPos but I could possibly be wrong).