Topic with no new replies

How can I add categoriename and productname to the title-tag?


Author Message
Written on: 17. 01. 2012 [17:47]
Desiree
Desiree
Topic creator
registered since: 04.08.2010
Posts: 12
I'd like to add the categoriename and the productname from magento to the title-tag (typo3).

Is it possible and how can I realize this?

I am using:
Typo3 4.3.3
Magento 1.4.1
Typogento 1.0.2

Thank you for help

Desiree
Written on: 18. 01. 2012 [15:26]
artus
Artus
registered since: 25.08.2011
Posts: 14
Hi,

assuming you have an TypoScript like this for your page title in TYPO3:

TYPOSCRIPT
config {
	noPageTitle = 2
}
page {
	headerData >
	headerData {
		1 = COA
		1 {
			wrap = <title>|</title>
			1 = TEXT
			1 {
				htmlSpecialChars = 1
				data = page:title
				wrap = |
			}
			2 = TEXT
			2 {
				htmlSpecialChars = 1
				data = leveltitle:0
				noTrimWrap = | | ||
			}
		}
	}
}


Maybe you could do something like that on a page with the right Magento frontend plugin:

TYPOSCRIPT
page.headerData.1.1 = USER_INT
page.headerData.1.1 {
	userFunc = tx_fbmagento_pi1->main
	block = pagetitle
	nowrap = 1
}


The same result with an extension for TypoGento I've written (still beta) would produced by this:

TYPOSCRIPT
page.headerData.1.1 = TEXT
page.headerData.1.1 {
	data = register:magePageTitle
	wrap = |
}


But this is the complete page title from Magento. If you don't like the format, you have also to change the Magento template you are using for a product view.

Hope this helps

[This article was edited 2 times, at last 18.01.2012 at 15:29.]
Written on: 18. 01. 2012 [23:17]
Desiree
Desiree
Topic creator
registered since: 04.08.2010
Posts: 12
Hi Artus,

this is exactly what I was looking for.

Thank you very much.

Desiree



Portal information:

At the moment there are 0 users online, thereof 0 registered users and 0 guests.
Today 0 registered users and 0 guests were already online.

Now online


TypoGento has 236 registered user, 113 topics and 187 answers. On average 0.23 posts are written per day.