Designer Content 2.0 Beta
Permalink 2 users found helpful
I've got a beta version of Designer Content 2.0 up and ready for testing:
https://github.com/jordanlev/c5_designer_content...
***NOTE: DO NOT USE THIS ON A PRODUCTION SITE JUST YET! It has been decently tested but there may still be a few bugs that need to be worked out.***
If you'd like to test out the new version of Designer Content, you can download it from the github link above (installation instructions are at the bottom of that page -- just scroll down a bit to see them). There are a ton of new features to play around with (see below for a full list)! I am going to release this to the marketplace soon, so please let me know if you run into any bugs or usability issues, or have general comments.
TRANSLATORS: An updated language template can be found in languages/messages.pot -- feel free to send me your translations or submit them as pull requests directly on github.
Thank you!
WHAT'S NEW IN 2.0?
This version adds a bunch of new field types that can be added to blocks, and also provides some new options on existing field types. The workflow for creating block types has not been changed, though -- if you know how to use Designer Content already this will be very easy to figure out.
* New options for the "Image" field:
~Image Cropping
~Links can now be internal pages (sitemap selector) or external URL's. External URL's can be opened in new windows. You can also choose to not show the link field at all.
~Optionally hide the "Alt Text" field
* New option for the "Textbox" field: ability to set a character limit
* Text Area field (converts newlines to html <br /> tags)
* File Download field (just one file per field, not filesets)
* Date Picker field (gives users a javascript calendar in the add/edit dialog, and displays date in a specific format in the block view)
* External URL field (can optionally be opened in a new window)
* Dropdown List field (this one is more advanced -- it only provides a dropdown list in the add/edit dialog -- it is up to you to modify the view.php file after the block type has been created to make the choices actually do something)
* Improved the generated "getSearchableContent()" controller function so it puts a separator between each field's content
* Changed the addon's description in the "Add Functionality" dashboard list so it makes more sense why it needs to stay installed.
* "Phantom" database tables for blocks that have been removed can now be overwritten when generating a new block that uses the same handle.
* Bug fixes: at least 2 fields are now always put into the db.xml file; removed white space between prefix, data, and suffix for textbox output; changed htmlspecialchars to htmlentities so blocks will work better with non-ascii characters.
* Many improvements to the code generation, so your generated block type only has the code it needs (for example, if you don't have a WYSIWYG field, you won't get all of those content helper functions in your controller)
Thanks to everyone for your support and suggestions!
-Jordan
https://github.com/jordanlev/c5_designer_content...
***NOTE: DO NOT USE THIS ON A PRODUCTION SITE JUST YET! It has been decently tested but there may still be a few bugs that need to be worked out.***
If you'd like to test out the new version of Designer Content, you can download it from the github link above (installation instructions are at the bottom of that page -- just scroll down a bit to see them). There are a ton of new features to play around with (see below for a full list)! I am going to release this to the marketplace soon, so please let me know if you run into any bugs or usability issues, or have general comments.
TRANSLATORS: An updated language template can be found in languages/messages.pot -- feel free to send me your translations or submit them as pull requests directly on github.
Thank you!
WHAT'S NEW IN 2.0?
This version adds a bunch of new field types that can be added to blocks, and also provides some new options on existing field types. The workflow for creating block types has not been changed, though -- if you know how to use Designer Content already this will be very easy to figure out.
* New options for the "Image" field:
~Image Cropping
~Links can now be internal pages (sitemap selector) or external URL's. External URL's can be opened in new windows. You can also choose to not show the link field at all.
~Optionally hide the "Alt Text" field
* New option for the "Textbox" field: ability to set a character limit
* Text Area field (converts newlines to html <br /> tags)
* File Download field (just one file per field, not filesets)
* Date Picker field (gives users a javascript calendar in the add/edit dialog, and displays date in a specific format in the block view)
* External URL field (can optionally be opened in a new window)
* Dropdown List field (this one is more advanced -- it only provides a dropdown list in the add/edit dialog -- it is up to you to modify the view.php file after the block type has been created to make the choices actually do something)
* Improved the generated "getSearchableContent()" controller function so it puts a separator between each field's content
* Changed the addon's description in the "Add Functionality" dashboard list so it makes more sense why it needs to stay installed.
* "Phantom" database tables for blocks that have been removed can now be overwritten when generating a new block that uses the same handle.
* Bug fixes: at least 2 fields are now always put into the db.xml file; removed white space between prefix, data, and suffix for textbox output; changed htmlspecialchars to htmlentities so blocks will work better with non-ascii characters.
* Many improvements to the code generation, so your generated block type only has the code it needs (for example, if you don't have a WYSIWYG field, you won't get all of those content helper functions in your controller)
Thanks to everyone for your support and suggestions!
-Jordan
Hi Jordan, I will gladly translate your great add-on to Danish, before you add the package to the marketplace.
*bump*
I've got a couple of sandbox sites not in use anymore and I just used your V1 for the first time last week for a site. I'd be willing to give it a spin and provide some feedback.
-Brian
-Brian
Thanks Brian, much appreciated!
I have made a few more fixes and added some more features -- I'm going to put this up on the marketplace soon (once I get updated translations), and would like to get some last-minute testing done in the next couple of days.
Thanks for your help!
-Jordan
Thanks for your help!
-Jordan
Hi Jordan,
I tried to test the version 2. I installed the designer content version 2 using your installation procedure. I already had your version 1 (which is already very useful, thanks! It was working but I could not load a video so I wanted to try the v2).
No problem on the installation, I tried to design a block, but when I click on Make The Block!, I get a blank page with this error :
Fatal error: Cannot redeclare class PageNotFoundController in C:\xampplite\htdocs\concrete\controllers\page_not_found.php on line 12
I tried it twice (de-install designer content and re-install), but it doesn't want to work, sorry.
Thanks,
Caroline
I tried to test the version 2. I installed the designer content version 2 using your installation procedure. I already had your version 1 (which is already very useful, thanks! It was working but I could not load a video so I wanted to try the v2).
No problem on the installation, I tried to design a block, but when I click on Make The Block!, I get a blank page with this error :
Fatal error: Cannot redeclare class PageNotFoundController in C:\xampplite\htdocs\concrete\controllers\page_not_found.php on line 12
I tried it twice (de-install designer content and re-install), but it doesn't want to work, sorry.
Thanks,
Caroline
Hi Caroline,
Thanks for testing this out -- sorry it gave you trouble. I'm curious if you could provide some more details about how exactly you installed 2.0 the first time -- did you just get rid of the old designer_content package folder and replace it with the new one, or did you also then go to the dashboard and click "Update Package", or something else entirely? This info will be very helpful for me to figure out the problem and fix it.
Thanks again.
-Jordan
Thanks for testing this out -- sorry it gave you trouble. I'm curious if you could provide some more details about how exactly you installed 2.0 the first time -- did you just get rid of the old designer_content package folder and replace it with the new one, or did you also then go to the dashboard and click "Update Package", or something else entirely? This info will be very helpful for me to figure out the problem and fix it.
Thanks again.
-Jordan
Just downloaded & installed perfectly. Created a new block with all of the new fields and it worked beautifully... no issues so far.
Things I really dig about the new version:
- the new image cropping & resizing options
- the date picker
- the new plain text area
- the WYSIWYG editor now has it's own editor_config.php & editor_controls.php files for total customization on per block basis!
- oh yeah and can add custom drop down lists for adding extra block functionality!
Wow, Designer Content just upped a level in awesomeness, thanks Jordan!!!!!!
Things I really dig about the new version:
- the new image cropping & resizing options
- the date picker
- the new plain text area
- the WYSIWYG editor now has it's own editor_config.php & editor_controls.php files for total customization on per block basis!
- oh yeah and can add custom drop down lists for adding extra block functionality!
Wow, Designer Content just upped a level in awesomeness, thanks Jordan!!!!!!
Hi Jordan,
Designer content is now working, and the only thing I've done is a reboot.
About the installation: I remove the version 1 directory from /packages, replace with the version 2, and then I updated it in 'add functionality'.
Everything looks to work properly except I still don't know how to load an embedded video (youTube or vimeo). I keep working around.
Anyway thanks for this container, it's a very good tool.
Merci,
Caroline
Designer content is now working, and the only thing I've done is a reboot.
About the installation: I remove the version 1 directory from /packages, replace with the version 2, and then I updated it in 'add functionality'.
Everything looks to work properly except I still don't know how to load an embedded video (youTube or vimeo). I keep working around.
Anyway thanks for this container, it's a very good tool.
Merci,
Caroline
Thanks Caroline,
Glad you got it working. If you wanted to have a field for an embedded video, I'd suggest figuring out what the format of those embed url's are, then make a textbox field where the user would enter the video URL, and put the surrounding embed code in that field's "Wrapper HTML". For example, you could add a textbox field called "Youtube URL", put this in the "Wrapper HTML Open":
...and this in the "Wrapper HTML Close":
Then the user pastes in a youtube url when they add a block, and the block will combine everything and output it to the browser.
Let me know if you want any more help with this.
-Jordan
Glad you got it working. If you wanted to have a field for an embedded video, I'd suggest figuring out what the format of those embed url's are, then make a textbox field where the user would enter the video URL, and put the surrounding embed code in that field's "Wrapper HTML". For example, you could add a textbox field called "Youtube URL", put this in the "Wrapper HTML Open":
<iframe width="425" height="349" src="
...and this in the "Wrapper HTML Close":
" frameborder="0" allowfullscreen></iframe>
Then the user pastes in a youtube url when they add a block, and the block will combine everything and output it to the browser.
Let me know if you want any more help with this.
-Jordan
Hola Jordan !
Your solution works with a youTube link as :http://www.youtube.com/embed/vQrrLATDS_g....
For a Vimeo video, we have to clean a bit the embedded code as they add title and comment separately. I kept only the frame and the video :
<iframe src="
http://player.vimeo.com/video/23924182?title=0&byline=0&...
" width="400" height="225" frameborder="0"></iframe>
Again thank you for your help,
Caroline
Your solution works with a youTube link as :http://www.youtube.com/embed/vQrrLATDS_g....
For a Vimeo video, we have to clean a bit the embedded code as they add title and comment separately. I kept only the frame and the video :
<iframe src="
http://player.vimeo.com/video/23924182?title=0&byline=0&...
" width="400" height="225" frameborder="0"></iframe>
Again thank you for your help,
Caroline
this is a great updat, only thing I notcied was that for me the ui of the wysiwyg editor is a bit off- see the screenshot.
Hmm... strange. I haven't come across that issue before -- perhaps this is an issue with your theme's stylesheet? I notice the little c5 icon isn't appearing on the left side of that bar -- perhaps that's been removed or permissions not set correctly?
Or maybe there is a problem with a certain combination of fields -- were there other fields in that block you created?
Or maybe there is a problem with a certain combination of fields -- were there other fields in that block you created?
maybe- im using plain yogurt but its my testing ground so it might have gotten screwed up.
Mmmm I will definitely be checking this out. The usefulness of your work Jordan is fantastic. I appreciate it! :-)
- Josh