Adding a add-on block to composer page
Permalink
Hi
I'm using the add-on HTML5 Audio Player Basic for playing audio files on blog pages. Every page is likely to have an audio file so I wanted to have the add-on block listed as a default in the relevant page setup. I've followed the following document and see that this is possible by having a composer.php override file.http://documentation.concrete5.org/developers/working-with-blocks/c...
My challenge is this is now beyond my technical ability - I'm great at tweaking, but not writing new code. Has anyone done this already, or able to help?
Justyn
I'm using the add-on HTML5 Audio Player Basic for playing audio files on blog pages. Every page is likely to have an audio file so I wanted to have the add-on block listed as a default in the relevant page setup. I've followed the following document and see that this is possible by having a composer.php override file.http://documentation.concrete5.org/developers/working-with-blocks/c...
My challenge is this is now beyond my technical ability - I'm great at tweaking, but not writing new code. Has anyone done this already, or able to help?
Justyn
I'm sorry if I misunderstand, but I think concrete only supports adding blocks in edit mode, unless you know really good html and maybe some css. Sorry, I'm pretty basic a HTML myself.
I'm sorry if I misunderstand, but I think concrete only supports adding blocks in edit mode, unless you know really good html and maybe some css. Sorry, I'm pretty basic a HTML myself.
I haven't done this with an add-on block, but I think it might be possible by customising the relevant page type output defaults. Alas, I can't find much thorough documentation, but you might look at
http://documentation.concrete5.org/editors/dashboard/pages-and-them...
http://documentation.concrete5.org/tutorials/setup-a-simple-blog-wi...
http://documentation.concrete5.org/tutorials/how-to-recreate-the-bl...
You won't have to recreate anything from scratch, so read selectively.
Also, if you get it wrong, you could stuff up the default blog thing, so backing up prior to playing might be wise.
http://documentation.concrete5.org/editors/dashboard/pages-and-them...
http://documentation.concrete5.org/tutorials/setup-a-simple-blog-wi...
http://documentation.concrete5.org/tutorials/how-to-recreate-the-bl...
You won't have to recreate anything from scratch, so read selectively.
Also, if you get it wrong, you could stuff up the default blog thing, so backing up prior to playing might be wise.
Thanks for the links, I've seen some of them already, but good to review again. The challenge with file blocks is that they will only let you add them to the output defaults if there is a file attached. Naturally the desire is to have it blank ready for a file to be added. I've done a work around by adding a default file that users will have to remember to replace. It's not the ideal solution, but one that will work!