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

move hero to content, refs https://github.com/plone/Products.CMFPlone… #83

Merged
merged 1 commit into from Feb 22, 2016

Conversation

gyst
Copy link
Member

@gyst gyst commented Feb 11, 2016

<!-- move hero to top -->
<replace css:theme-children="#hero .gigantic" css:content-children=".hero"/>
<drop css:theme="#hero" css:if-not-content=".hero" />
<drop css:content=".hero" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, this works? Regarding http://docs.diazo.org/en/latest/basic.html#order-of-rule-execution <drop> rules are executed before <replace> rules. Looks to me, wether you'd have to remove the <drop> rule or add a method="raw" to your <replace> rule.
In either case you'd need to remove the method="raw" attribute of the replace-rule which copies the main content (also discussed here: https://community.plone.org/t/adding-html-snippets-with-diazo/1554/15 and #85 )

Sorry, didn't try out your pull, so this might be wrong...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me on a fresh coredev... I think the key is that I'm extracting the children - I guess that takes precedence.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!
But then the Diazo docs are wrong... Maybe something has changed at some point...

@jensens
Copy link
Sponsor Member

jensens commented Feb 22, 2016

@gyst unfortunately also this branch is in conflict and needs a rebase. I'll merge if both are in sync.

@gyst
Copy link
Member Author

gyst commented Feb 22, 2016

Rebased and te-tested OK. Ready for merge.

jensens added a commit that referenced this pull request Feb 22, 2016
@jensens jensens merged commit d3838e1 into master Feb 22, 2016
mister-roboto pushed a commit to plone/buildout.coredev that referenced this pull request Feb 22, 2016
Branch: refs/heads/master
Date: 2016-02-22T15:36:58+01:00
Author: Guido A.J. Stevens (gyst) <guido.stevens@cosent.nl>
Commit: plone/Products.CMFPlone@5ced858

move hero to content
fixes plone/Products.CMFPlone#974
requires plone/plonetheme.barceloneta#83

Files changed:
M CHANGES.rst
M Products/CMFPlone/browser/configure.zcml
M Products/CMFPlone/browser/templates/plone-frontpage.pt
D Products/CMFPlone/browser/templates/hero.pt
Repository: Products.CMFPlone
Branch: refs/heads/master
Date: 2016-02-22T17:08:28+01:00
Author: Jens W. Klein (jensens) <jk@kleinundpartner.at>
Commit: plone/Products.CMFPlone@a74391d

Merge pull request #1374 from plone/hero_in_content

move hero to content

Files changed:
M CHANGES.rst
M Products/CMFPlone/browser/configure.zcml
M Products/CMFPlone/browser/templates/plone-frontpage.pt
D Products/CMFPlone/browser/templates/hero.pt
@jensens jensens deleted the hero_in_content branch February 22, 2016 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants