collective / uwosh.snippets

Adds dynamically-updated rich text snippets to Plone. Update a snippet to display the change everywhere the snippet is used (pages, news items, events, anywhere rich text and TinyMCE appear).
4 stars 3 forks source link

Relation with tiles? #5

Closed gforcada closed 6 years ago

gforcada commented 10 years ago

Future Plone versions (5.x or 6 or ...) will eventually have the whole tiles machinery (plone.app.blocks, plone.tiles, plone.app.standardtiles and plone.app.mosaic, probably something else more).

Still there would be use cases for this snippets distribution: what if within the rich text editor I want to place an image (from plone.app.contentypes or a custom image content type)?

The placeholders approach still makes sense, as you want the whole text to be a single thing (maybe a single tile) but within the text you want to plug some content on it.

So do you see a path where placeholders would actually save a tile reference within the rich text that then will be later processed?

obct537 commented 10 years ago

Some time ago @djay had contacted me about this. We had discussed possibly fusing the 2 projects into one, since both have their own strengths, but neither is unique enough to really both be necessary. However, the conversation tailed off, and nothing ever became of it. Since the snippets project meets a specific need here at UW-Oshkosh, we decided to just keep working on it as usual, since it was mostly done at the point anyway, and tiles didn’t quite meet what we were looking for.

As far as combining this project with something else, I'm certainly willing to look into it. As long as the final outcome continues to meet the needs present here at UWO.

djay commented 10 years ago

I don't think it was a matter of both being unique. tinymcetiles is a superset of what snippets offer. It lets you insert different kinds of tiles, of which a snippet could be one kind. ie, insert tile, pick snippet tile type, pick snippet, click add. Maybe it adds one extra click?

However tinymcetiles has dependencies on p.a.tiles and p.a.blocks etc so it would increase the complexity of the product more. So I can understand why they opted not to use it.

Also I believe the tinymce integration in snippets is now much better. It would be great to see if that code will still work when any tile type can be inserted not just a snippet. e.g. what if the tile type is for a video player?

On Thu, Aug 7, 2014 at 9:23 PM, Sam Schwartz notifications@github.com wrote:

Some time ago @djay https://github.com/djay had contacted me about this. We had discussed possibly fusing the 2 projects into one, since both have their own strengths, but neither is unique enough to really both be necessary. However, the conversation tailed off, and nothing ever became of it. Since the snippets project meets a specific need here at UW-Oshkosh, we decided to just keep working on it as usual, since it was mostly done at the point anyway, and tiles didn’t quite meet what we were looking for.

As far as combining this project with something else, I'm certainly willing to look into it. As long as the final outcome continues to meet the needs present here at UWO.

— Reply to this email directly or view it on GitHub https://github.com/collective/snippets/issues/5#issuecomment-51478249.

tkimnguyen commented 6 years ago

(figured this was an old discussion so was ok to close)