-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
"Plone 5 rocks!" message should be removed from the default theme #974
Comments
It is included on the frontpage like this: <drop css:theme="div.principal" css:if-not-content="body.template-document_view.section-front-page" /> (see https://github.com/plone/plonetheme.barceloneta/blob/master/plonetheme/barceloneta/theme/rules.xml#L36). |
IMO, this is a potential source of problems and must be removed |
I agree. Move the saying to the body text if we want to keep it. |
My plan is to replace that with a link to the feature list. My other complaint with the text there is that it's not translatable since it's part of index.html.I'm kind of tempted to stick another portlet manager in above the content body and use that to insert this design element. |
@esteele I though we wanted to get rid of portlets, not add more; IMO, the footer portlet manager should be deprecated as soon as Mosaic is ready. |
Yes, please no more portlet managers :). Can't we just put it in the body html? We can put more rich html in there--it won't get stripped. |
I concur, no more portlet managers. I do very much like the idea of having a 'hero' element (which this basically is) in the default Barceloneta theme; but issues of translation could make that difficult. In a pinch, I would probably remove it entirely, but leave it well-commented (as comments) in Barceloneta. And then write a page "How to enable a Hero element on your front page" in the docs. I volunteer do that in Munich. It would serve as a perfect example of the powers of Diazo, without posing difficulties in the initial user experience especially of non-English speakers. Our resources are minified before putting in production; so having comments in the non-minified version are acceptable. |
Fair enough. It's an element of this theme, not every Plone site.
|
I changed the hero-elemt into a view |
I still don't understand why we need this on the theme, never mind... |
Because it look awesome :-) |
if we already have add-ons for that I see less and less justification to add this into the core; sometimes I don't understand why we have to complicate things instead of simplify them. but, as I said before, never mind... |
I was quite confused about that myself, when I came up with the idea to remove it some time ago. I thought it was a viewlet, activated directly on the context. but it isn't. I was OK with removing the page makes it go away. I don't like the current solution either. Why not just add this as HTML directly to the body text? Maybe even create a tinyMCE custom class, which adds a div with class hero? |
@pbauer don't forget to document this, please; we don't want more Easter eggs. |
Wow. We never use either add ons or views for a carousel. What a pain. We
use portlets or a list style and diazo. Much less moving parts.
|
Putting it directly into the html doesn't allow us to translate the text. This implementation also makes a nice example of side-loading content in a Diazo theme.
|
I agree that with proper documentation it's a nice to have example, maybe we could grow it a bit to include sth dynamic, only to better legitimate a Python view. However I see the risk of increasing our Zope request count and page loading time for sth that could easily be in docs only. IMO we should aim for the smallest SLOC in the otherwise alien rules.xml. One sidenote: "Plone rocks" is awesome but doesn't have a consistent translation across languages. Each will probably have distinct variations, requiring creativity from translators and kind of setting loose the global message tone. |
Just my 2c: instead of putting the view in CMFPlone, add On Wed, Sep 16, 2015 at 11:42 AM Davi Lima notifications@github.com wrote:
|
If we go for a view I agree with you, @fulv, better prefer the "bob story". However I believe p.a.themingplugins wasn't included in core also because of performance reasoning (quicker core zopestart and pageloads). |
You can translate it at the time you insert it, same as you do the body What you have given them is content that is almost impossible for them to |
Unless some comes up with a better solution (and ideally a PR) we will stick with what we have now. Any solution must meet the following requirements:
The current solution is by no means ideal. Personally I like the plone.app.themingplugins-approach and we could easily move to that when it makes it in the core. But the perfect future solution will probably be a richtext-tile added to the front-page with p.a.mosaic. |
Why are you dismissing the idea of an above content portlet manager so On Fri, 18 Sep 2015 12:19 pm Philip Bauer notifications@github.com wrote:
|
+1 @pbauer, looks like something where we cannot easily come up with a really good solution. +1 @djay, since we obviously already use portlets a lot, we need some migration code to anything better (mosaic?) anyways. so another portlet manager wouldn't hurt too much. except we would update docs for it and portlets can be a big development pain. i personally like the idea of ContentWellPortlets, which allow quite flexible page compositions. |
+1 @djay, I add top page and bottom page portlet managers in all my sites for years |
I've pushed branches to manage the hero from content, but cannot find how to add a 'hero' class to TinyMCE. |
Oh and #992 should be reverted. Or at least the hero view removed. |
@gyst: You can add a |
fixes #974 requires plone/plonetheme.barceloneta@d8ffcc4
I've issued a set of two PRs that improves on the old situation by moving the hero to content, where it can be easily removed by editors. Adding new hero elements is something else and still needs to be done. @davilima6 the tinymce templates you mention look like a bit of overkill to be. I've included the necessary wrapper classes in Barceloneta. Al one needs to do is have a |
fixes #974 requires plone/plonetheme.barceloneta#83
Branch: refs/heads/master Date: 2016-02-22T16:52:44+01:00 Author: Guido A.J. Stevens (gyst) <guido.stevens@cosent.nl> Commit: plone/plonetheme.barceloneta@0b849a1 move hero to content fixes plone/Products.CMFPlone#974 requires plone/Products.CMFPlone#1374 Files changed: M CHANGES.rst M plonetheme/barceloneta/theme/index.html M plonetheme/barceloneta/theme/rules.xml Repository: plonetheme.barceloneta Branch: refs/heads/master Date: 2016-02-22T17:08:21+01:00 Author: Jens W. Klein (jensens) <jk@kleinundpartner.at> Commit: plone/plonetheme.barceloneta@d3838e1 Merge pull request #83 from plone/hero_in_content move hero to content, refs https://github.com/plone/Products.CMFPlone… Files changed: M CHANGES.rst M plonetheme/barceloneta/theme/index.html M plonetheme/barceloneta/theme/rules.xml
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
According to @agnogueira this message is included in https://github.com/plone/plonetheme.barceloneta/blob/325e892db8f0f77ec37dd3ebbaa140c431197ade/plonetheme/barceloneta/theme/index.html#L36:L44
The text was updated successfully, but these errors were encountered: