Hi Guys, I’ve had the idea to do this for while, but only just recently made the time to prototype it.
Now, before anyone gets the wrong idea, this is NOT intended to replace the current predefined fieldgroup creation process. That will always be present, and in fact is still the best part of EE. What I have found is that EE is great for splitting up your content into reusable chunks, but the most important part of the page (typically the “body” or “article”) is put in a single field such as a WYSIWYG editor, even though it is most often the most complex!
A classic use case scenario is blogging about code. Frankly, using a WYSWYG / Rich text editor and embedding code snippets throughout the article is a nightmare, so decided to create a fieldtype that I could build my content in ‘blocks’ on the fly. On the front end, the content is combined and output from a single tag, as if you had only used a single field.
Here is a video of it in action (switch to HD and full screen it to see whats going on - apologies for the size!):
http://www.youtube.com/watch?v=FGhAx_E9iJs
Any thoughts would be great!
Chris
Hi Chris,
That looks really really neat. Loving what you’ve got there so far.
Any thoughts would be great! Chris
Do you need any beta testers? 😉 (I’m free for testing if you do)
I totally get what you’re saying about code blocks and the like and to tell the truth I’ve not had a site yet where I’ve needed to do that so not too sure of the capabilities of WYSIWYG editors regarding that side of things.
Can they not handle it at all then? Does using <pre> and <code> not work in them then?
I really do like what you’ve got going there though and would love to test it if you do need any testers.
Best wishes,
Mark
Hi Mark, Sure thing you can test it. I’ll be releasing it for free, so will most likely post it to github and open source it. Just need to get it working a bit better and tidy up the code. I also want to add more content block types, so just need ideas. Aim thinking of incorporating a file select/upload block, and using the interface from my Remote Files Browser (find it on Devot:ee)
One of the reasons this works well with code is because the symbols copy/pasted into the code blocks can automatically be converted to HTML entities, and wrapped in code/pre tags on the front end. In my experience WYSIWYG editors tend to not play nice with the formatting of code, especially if you are dealing with HTML entities. They tend to converted back into their symbol counterparts, wrapped in p tags, or worse reformatted completely Plus you have to do it all in the source view, then switch back to WYSIWYG view.
Hi Mark, Sure thing you can test it. I’ll be releasing it for free, so will most likely post it to github and open source it. Just need to get it working a bit better and tidy up the code. I also want to add more content block types, so just need ideas. Aim thinking of incorporating a file select/upload block, and using the interface from my Remote Files Browser (find it on Devot:ee) One of the reasons this works well with code is because the symbols copy/pasted into the code blocks can automatically be converted to HTML entities, and wrapped in code/pre tags on the front end. In my experience WYSIWYG editors tend to not play nice with the formatting of code, especially if you are dealing with HTML entities. They tend to converted back into their symbol counterparts, wrapped in p tags, or worse reformatted completely Plus you have to do it all in the source view, then switch back to WYSIWYG view.
Excellent news. Can’t wait to give this one a run. Looking forward to when it’s online.
Best wishes,
Mark
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.