eea / eea.facetednavigation

Faceted Navigation for Plone Classic
http://eea.github.com/docs/eea.facetednavigation
20 stars 56 forks source link

Add context text field value (if any) on faceted view #232

Closed laulaz closed 2 years ago

laulaz commented 2 years ago

The text is located after content description & before faceted filters widgets. Example usages: OOTB collection text field, plone.richtext behavior

This refs eea/eea.facetednavigation#230

laulaz commented 2 years ago

@avoinea could you please take a look at this ? 🙏

laulaz commented 2 years ago

or maybe someone else? @alecghica @ichim-david maybe 😉

avoinea commented 2 years ago

@laulaz Sorry, busy days here. I will take a closer look at this PR within the next days.

laulaz commented 2 years ago

@avoinea any news on this ? 🙏

avoinea commented 2 years ago

Nope. Holiday time! 😅😎🌴

avoinea commented 2 years ago

@laulaz Wouldn't it be more useful to create another widget type like the portlet one called Metadata?

This way one could render any context metadata and move it anywhere within the page.

By the way:

You can already accomplish the behavior proposed by this PR by adding a template anywhere within the code (by registering a custom browser view) or via portal_skins/custom called render_text with code:

<div metal:define-macro="text" tal:define="text here/getText" tal:condition="text">
  <div tal:replace="structure text">The body</div>
</div>

Then add a Plone portlet facet with Portlet macro = here/render_text/macros/text

faceted-text-portlet.webm