Bug #80044

styles.content.get not available in FSC anymore

Added by Markus Klein over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Fluid Styled Content
Target version:
Start date:
2017-02-27
Due date:
% Done:

100%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:
Stabilization Sprint

Description

Since the major rewrite of FSC the popular TS styles.content.get is not available anymore.


Related issues

Related to TYPO3 Core - Task #79622: Streamline CSS Styled Content and Fluid Styled Content Closed 2017-02-28
Related to TYPO3 Core - Bug #79831: Content Rendering not working after upgrade 8.5.1 > 8.6.0 Closed 2017-02-15

Associated revisions

Revision 3307a5db (diff)
Added by Josef Glatz over 1 year ago

[BUGFIX] Make styles.content.get available after major FSC rewrite

Since the major rewrite of EXT:fluid_styled_content and
EXT:css_styled_content the following TypoScript setup must
be loaded by default:

  • `styles.content.get` can be used as ready2use `CONTENT`
    object for `colPos = 0`
  • `tt_content.default` outputs necessary info in the frontend,
    if the CType has currently no rendering definition

Both can be used independently from FSC or CSC.

Including the necessary TypoScript via `addTypoScriptSetup()`
takes care of loading it before any other activated extension.

Resolves: #80044
Related: #79622
Releases: master
Change-Id: I460ed9f57e215be96ee13d6714cd522882fb53eb
Reviewed-on: https://review.typo3.org/51884
Tested-by: TYPO3com <>
Tested-by: Daniel Goerz <>
Reviewed-by: Johannes Kasberger <>
Tested-by: Johannes Kasberger <>
Tested-by: Daniela Grammlich <>
Reviewed-by: Markus Klein <>
Tested-by: Markus Klein <>

History

#1 Updated by Benni Mack over 1 year ago

Hey Markus,

this is added in EXT:frontend/ext_typoscript_setup.txt now

#2 Updated by Gerrit Code Review over 1 year ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51884

#3 Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51884

#4 Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51884

#5 Updated by Gerrit Code Review over 1 year ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51884

#6 Updated by Gerrit Code Review over 1 year ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51884

#7 Updated by Gerrit Code Review over 1 year ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51884

#8 Updated by Andre Koller over 1 year ago

Patch doesn´t work for me.
I´m getting a blank page.

my setup:

lib.field_content0 < styles.content.get
lib.field_content0.select.where = colPos = 0

page = PAGE
page {
    10 = FLUIDTEMPLATE
    10 {
        file.stdWrap.cObject = CASE
        file.stdWrap.cObject {
            key.data = pagelayout
            default = TEXT
            default.value = typo3conf/ext/bootstrap_distribution/Resources/Private/Templates/standard.html
        }

        layoutRootPath = typo3conf/ext/bootstrap_distribution/Resources/Private/Layouts/
        partialRootPath = typo3conf/ext/bootstrap_distribution/Resources/Private/Partials/

        variables {
            content0 < lib.field_content0
        }
    }
}

#9 Updated by Riccardo De Contardi over 1 year ago

@Andre Koller

Can you check if you got stuck into this scenario: https://forge.typo3.org/issues/79760 ? (Just a wild guess...)

#10 Updated by Markus Klein over 1 year ago

@Andre: Please post feedback to patch to Gerrit directly. Use your typo3.org Username to login and click the "Reply" button in the header area.
Thanks.

#11 Updated by Andre Koller over 1 year ago

@Riccardo De Contardi

Thank You.

Patch ist working, but layout name "Default" collided with FSC layout name.
See https://forge.typo3.org/issues/79760

#12 Updated by Anonymous over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#13 Updated by Riccardo De Contardi about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF