[TYPO3-templavoila] Show FCE in different (grouped) tabs

Koen Van Nuffelen koen_typo3 at obiwebs.be
Wed Nov 3 19:51:21 CET 2010


Hi,

We have default +/- 15 FCE's in a web project and then custom some more 
depending on the project.
I'm trying to make 3 tabs in the new content element wizard.
=> Building Blocks, Block Format and Custum

I can add a new tab (group) with the name I prefer.
It's also possible to add a custom element to this tab (group).
I followed this examples:
http://buzz.typo3.org/people/steffen-kamper/article/the-new-content-element-wizard-in-version-43/

The problem is to add an FCE to the group.
In the Templavoila manual I read the following:

FCE's are named like fce_[uid of TO]. So FCE with TO uid 17 will be 
fce_17. If you want to allow only this FCE you can do it with following 
configuration:

templavoila.wizards.newContentElement.wizardItems.fce.show = fce_17

But if I try to add an fce_[uid] to my custom group it doesn't work.

This is the TS code i'm using:

#New content element wizard
templavoila.wizards.newContentElement.renderMode = tabs

#Add new FCE tab for Obiwebs Building Blocks (obi_bb)
templavoila.wizards.newContentElement.wizardItems.obi_bb {
     header = Building Blocks
	elements.customText {
		icon = gfx/c_wiz/regular_text.gif
		title = Introtext for national startpage
		description = example element
		tt_content_defValues {
			CType = text
			bodytext (
				<h2>Section Header</h2>
				<p class="bodytext"> ...</p>
			)
			header = Section Header
			header_layout = 100
		}
	}
}

}
templavoila.wizards.newContentElement.wizardItems.obi_bb.show := 
addToList(customText, fce_1, fce_10)

=> The tab (group) Building Blocks is shown in the wizard and it has the 
element customText, but not the FCE's.

I've also tried this instead:
templavoila.wizards.newContentElement.wizardItems.obi_bb.show = fce_1

Also not working.

I'm also sure the uid of the fce is correct, because I've looked in the 
database table.

One strange thing is that I can't see the ID's of the TO and the TS on 
mouse-over (like with pages or other content elements) in the 
Templavoila module itself.

Can somebody give me a tip how to add the fce to the tab (group)?

Typo3 4.4.4
Templavoila 1.5.2

Kind regards,

-- 
Koen Van Nuffelen



More information about the TYPO3-project-templavoila mailing list