Bug #42971

static plugin import with typoScript

Added by Marcus Biesel over 2 years ago. Updated over 1 year ago.

Status:Resolved Start date:2012-11-14
Priority:Must have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-

Description

I have created a plugin in a new package, at the backend it works i can insert it.

but if i want insert it static at the default.html with <typoScript:renderTypoScript path="parts/test" /> and at the Root.ts2 i define it with

include: resource://Sponsor.LinkBox/Private/TypoScript/Root.ts2

page.body {
parts {
test < prototype(Sponsor.LinkBox:Plugin)
}
}

at the Sponsor.LinkBox package i define my Root.ts2 with

prototype(Sponsor.LinkBox:Plugin) < prototype(TYPO3.Neos.ContentTypes:Plugin)
prototype(Sponsor.LinkBox:Plugin) {
package = 'Sponsor.LinkBox'
controller = 'Standard'
action = 'index'
}

i get this mistake

#1332493990: No "page<TYPO3.Neos:Page>/body<TYPO3.TypoScript:Template>/parts/test" TypoScript object found. Please make sure to define one in your TypoScript configuration.

i use the new git version from 14.11.12

History

#1 Updated by Christian Müller about 2 years ago

  • Status changed from New to Needs Feedback

Is this still a valid bug?

#2 Updated by Christian Müller over 1 year ago

  • Status changed from Needs Feedback to Resolved

to make this work you need to use an absolute TypoScript path "/parts/test". Without leading / it is considered relative to the TypoScript object that initiated the rendering of the Template you are calling the ViewHelper in.

So this behavior was correct.

Also available in: Atom PDF