[Flow] Routes as described in the documentation don't work
Zedd
zedd at akii.de
Wed Jul 8 09:03:59 CEST 2015
Hi Patric,
as Bastian said, you need an instance of the StaticContent object. You can get an instance by assigning it in a controller action:
/**
* @var StaticContentRepository
* @Flow\Inject
*/
protected $staticContentRepository;
...
public function someAction() {
$this->view->assign(‘staticContent’, $this->staticContentRepository->findByIdentifier('27c75af9-6236-55f4-8a1b-d74f18386298’);
}
Since this is “static content” you might want to create a ViewHelper that fetches objects, and/or even have different, more readable identifiers.
Greetings,
Philipp
> On 08 Jul 2015, at 07:38, Patric Eckhart <mail at patriceckhart.com> wrote:
>
> Thank you for your answers.
>
> @Bastian: <f:link.action action="show" controller="staticContent" arguments="{staticContent: '27c75af9-6236-55f4-8a1b-d74f18386298'}">Impressum</f:link.action>
> is a hard coded link (not in a loop). {staticContent:staticContent} not work.
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list