[Neos] Taking l10n for a test drive
Christopher Hlubek
hlubek at networkteam.com
Mon Feb 3 14:11:59 CET 2014
Finally...
There was a strange Problem with Doctrine where collections with dimensions from different NodeData instances where overwritten. After I updated the NodeDimension entity to not use composite keys but a plain persistence identifier instead it seems to work.
Of course there a some (a lot?) of issues in the backend but the basic editing workflow and publishing from the content module works for me.
So after a "composer update" and running the Doctrine Migrations (maybe that could fail, so you might need to setup a clean database again) it should work.
Greetings,
Christopher
Am 03.02.2014 um 11:38 schrieb Søren Malling <soren.malling at gmail.com>:
> Did a quick setup and tested the translation commandline.
>
> It fails returning this
>
> PHP Fatal error: Call to a member function getDimensions() on a non-object
> in
> /Users/sorenmalling/Sites/Neos-l10n/Packages/Application/TYPO3.TYPO3CR/Classes/TYPO3/TYPO3CR/Domain/Model/AbstractNodeData.php
> on line 246
>
>
> It's just around some @TODO markers
>
> if
> ($returnNodesAsIdentifiers === FALSE) {
> // TODO Check how
> to use $context to get the node by identifier
> // TODO Check if
> the workspace in the context should be used instead of the node data
> workspace
> $nodeData =
> $this->nodeDataRepository->findOneByIdentifier($value,
> $this->getWorkspace(), $context->getDimensions()); // THIS IS LINE 246
> if ($nodeData
> instanceof NodeData) {
> $value =
> $nodeData;
> } else {
> $value =
> NULL;
> }
> }
>
> After inserting the nodedatadimension myself (raw sql insert, straight
> forward) and did the configuration in Settings.yaml I could edit in
> different locales.
>
> But after publishing, there was no different if I visited /de or /all (is
> that a default?)
>
>
> I hope it can help you further in this cool dimension work :)
>
> Cheers
>
> Søren
>
>
> On Mon, Feb 3, 2014 at 11:05 AM, Christopher Hlubek
> <hlubek at networkteam.com>wrote:
>
>> Hi everybody,
>>
>> I managed to package up a Neos distribution for the l10n branch so we can
>> get more feedback and people involved in this (rather large) change.
>>
>> The latest changes allow to use localized nodes in the backend and an easy
>> editing workflow with translated content. As there is no special UI for
>> creating new variants of a node yet, I bundled a simple command for that
>> task.
>>
>> Installing the l10n branch:
>>
>> composer create-project --keep-vcs typo3/neos-base-distribution
>> Neos-l10n dev-l10n
>>
>> See README-l10n.md for setup instructions.
>>
>> I think we should have a hangout soon to discuss the further steps and
>> split the work into individual packages and see how we can proceed with
>> this.
>>
>> Greetings,
>>
>> Christopher
>>
>> _______________________________________________
>> Neos mailing list
>> Neos at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos
>>
> _______________________________________________
> Neos mailing list
> Neos at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos
More information about the Neos
mailing list