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

Static text portlets not exporting their text RichText fields #141

Open
nutjob4life opened this issue Oct 18, 2020 · 0 comments
Open

Static text portlets not exporting their text RichText fields #141

nutjob4life opened this issue Oct 18, 2020 · 0 comments

Comments

@nutjob4life
Copy link
Member

Seen in plone.app.portlets-4.4.5 (part of Plone-5.2.2), when exporting portlets from the GenericSetup tool, static text portlets have a literal error message exported for their text property:

<assignment name="xxx" category="context" key="/" manager="plone.leftcolumn"
type="plone.portlet.static.Static" visible="True">
  <property name="footer"/>
  <property name="header">xxx</property>
  <property name="more_url"/>
  <property name="omit_border">False</property>
  <property name="text">RichTextValue object. (Did you mean &lt;attribute&gt;.raw or &lt;attribute&gt;.output?)</property>
</assignment>

📑 Reproduction

  1. Start Plone 5.2.2
  2. Create a new Plone site
  3. Manage portlets → Left column; "go here" to manage portlets of container itself
  4. Add portlet… → Static text portlet
  5. Enter portlet title "xxx", body text "yyy"; Save
  6. ZMI → portal_setup → Export tab
  7. Check ✓ box by "Portlets", then "Export selected steps"

🩺 Expected Results

<assignment name="xxx" category="context" key="/" manager="plone.leftcolumn"
type="plone.portlet.static.Static" visible="True">
  <property name="footer"/>
  <property name="header">xxx</property>
  <property name="more_url"/>
  <property name="omit_border">False</property>
  <property name="text">yyy</property> <!-- or maybe a CDATA section -->
</assignment>

🗺 Context

  • Just trying to automate some site setup; starting with an export of a live site and making it part of an add-on package is an easy way to go.
  • Imports work fine! 🎉
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

No branches or pull requests

1 participant