So this is my first post with Mango Blog!
I'm liking what I'm seeing so far. I like the skin that I've downloaded and used on here as a quick fix and I kinda like the admin interface. Its... different to what I'm used to, but I'll get used to it.
The one thing that has annoyed me about Mango Blog, and yes I know its a known issues, but it shouldn't be an issue.... code blocks..... They only sort of work and you have to disable TinyMCE if you want to use them. bah bloody humbug I say!
In the admin folder you'll find layout.cfm. This is where TinyMCE is initialised. To the extended_valid_elements add ",code[class]". This will stop TinyMCE from stripping out the <code></code> tags. Then add "remove_linebreaks : false," somewhere in the init. I've inserted it straight after the mode: "exact", entry on mine. This prevents TinyMCE from stripping out linebreaks, so that your preformatted code doesn't end up all on one line.
Next time you edit a blog entry, you'll still have to use the HTML button to edit the source code, but at least now you can add code blocks without TinyMCE trashing them. Hope that helps someone.
Next job... Get my LastFM page working again and add something so I can have BlogCFC style text blocks.
Mar 24, 2008 at 12:27 PM Cool! I will add this to my files tonight :) thanks for looking into this problem.
Mar 25, 2008 at 6:23 AM Hi Nil,
Thank you for taking the time to fix this and thanks for trying Mango out!
All suggestions are welcomed, so if you find things that you don't like, I am interested in knowing about them.
I think getting the LastFM page to work should be pretty straight forward to do by creating a plugin similar to Seb's youtube plugin: http://sebduggan.com/posts/youtube-plugin-for-mango-blog or Josh's Brighcove plugin. Just an idea.
What are text blocks by the way?
Mar 28, 2008 at 3:35 PM I'll take a look at Seb's youtube plugin. I think you're right something like that should do the trick.
Text blocks are bits of common bits of code that you can include into a blog post or page. For instance, my last Scotch on the Rocks post included a javascript widget for Hostel Bookers. The JS widget was stored separately and then included on the entry when its rendered. The text block can be used in a multiple locations and not just in the one block entry.
Mar 29, 2008 at 10:47 PM I think the text blocks are also a great job for a plugin. So when you want to add a text block, how do you specify it? I mean, how do you say what block of text to add?
Mar 31, 2008 at 9:24 AM It probably wouldn't be that dissimilar to Seb's youtube plugin, except that the videoid would be an identifier that you set when you add the text block via the admin interface.