plone / plone.app.mosaic

Plone Mosaic main repository
https://pypi.python.org/pypi/plone.app.mosaic
GNU General Public License v2.0
35 stars 26 forks source link

can't insert reusable elements inline with text #165

Open djay opened 8 years ago

djay commented 8 years ago

User problem

The problem mosaic is solving is the ability to insert dynamic, resuable and selectable elements into the middle of the page. Mosaics handles this well as long as those elements are blocks on a grid. However this isn't always the case. Consider the kinds of things a wordpress theme lets you install via shortcodes For example, lets say you wanted a tile that displayed the last updated date of the content but you wanted it inline with your text.

blah blah 2016-01-01 blah blah

or inserting social media buttons like shown here - e.g. http://newsmartwave.net/wordpress/porto/documentation/#one_page_setup.

Options

  1. Have two types of tiles, inline tiles and block tiles. Modify tinymce to allow you to insert the tiles similar to https://github.com/collective/collective.tinymcetiles using images for a placeholder for the final content.
  2. same as 1 but use a shortcode syntax similar to the tinymcetiles branch shown on https://www.youtube.com/watch?v=HuxLoXlchc4
  3. same as 1 but use the readonly mode feature of tinymce to show a live preview of the rendered tile. I believe this is what https://github.com/collective/snippets does.
  4. Same as above but only have one kind of tile. That means all tiles have to handle being inserted either inline or into a grid. For example allows an image tile to either be inline or in a grid.
datakurre commented 8 years ago

Probably this could "simply" by making collective.tinymcetiles and mosaic compatible with each other.

djay commented 8 years ago

It still needs to be one story with decisions made about how it should work. And I figured since mosaics is most likely going into plone then here is where that decision is best done. So either we say that tiles inside a text tile aren't supported, or we integrate it. I don't think it makes sense as a separate plugin. Esp if it means tiles have to change a bit.

On Fri, 12 Feb 2016 11:36 pm Asko Soukka notifications@github.com wrote:

Probably this could "simply" by making collective.tinymcetiles and mosaic compatible with each other.

— Reply to this email directly or view it on GitHub https://github.com/plone/plone.app.mosaic/issues/165#issuecomment-183400406 .

datakurre commented 8 years ago

As a technical note, I'd expect tiles within Mosaic text tiles to just work. (Because Mosaic text tiles are not plone.tiles, but just html.

Dylan Jay notifications@github.com kirjoitti 13.2.2016 kello 3.49:

It still needs to be one story with decisions made about how it should work. And I figured since mosaics is most likely going into plone then here is where that decision is best done. So either we say that tiles inside a text tile aren't supported, or we integrate it. I don't think it makes sense as a separate plugin. Esp if it means tiles have to change a bit.

On Fri, 12 Feb 2016 11:36 pm Asko Soukka notifications@github.com wrote:

Probably this could "simply" by making collective.tinymcetiles and mosaic compatible with each other.

— Reply to this email directly or view it on GitHub https://github.com/plone/plone.app.mosaic/issues/165#issuecomment-183400406 .

— Reply to this email directly or view it on GitHub.