Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] ViewHelper to access data of current CE record #534

Merged
merged 1 commit into from
Apr 12, 2014

Conversation

benjaminrau
Copy link
Member

No description provided.

@benjaminrau
Copy link
Member Author

FYI i am using this here fx:

<f:if condition="{record}">
    <f:else>
        {v:content.info() -> v:var.set(name: 'record')}
    </f:else>
</f:if>

<f:if condition="{record}">
    <f:then>
        <flux:form.data table="tt_content" record="{record}" field="content_options" as="content">
            <fcc:tag name="{content.settings.container.tagName}" title="{content.settings.container.titleAttribute}"
                     class="{content.settings.container.className} {content.settings.container.additionalClassNames}">
                <f:render section="Main" arguments="{_all}" />
            </fcc:tag>
        </flux:form.data>
    </f:then>
    <f:else>
        <f:render section="Main" />
    </f:else>
</f:if>

@NamelessCoder
Copy link
Member

{v:content.info() -> v:var.set(name: 'record') -> f:else() -> f:if(condition: record)}

;)

@benjaminrau
Copy link
Member Author

I love that chaining :D

@benjaminrau
Copy link
Member Author

Why did travis fail? Can someone translate for me? :)

@NamelessCoder
Copy link
Member

Try a rebase - the PackageStates.php file had errors and .travis.yml was not copying the package states file correctly.

NamelessCoder added a commit that referenced this pull request Apr 12, 2014
[FEATURE] ViewHelper to access data of current CE record
@NamelessCoder NamelessCoder merged commit e73db14 into FluidTYPO3:development Apr 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants