[mezzanine-users] Re: Advanced tab for image editing missing in Mezzanine 4?

2015-08-17 Thread Lee H.
Well it is of course personal preference. I used this feature quite a lot for a Mezzanine based blog. I liked to have a predefined classes dropdown in my theme that a user can select with no knowledge of HTML (e.g. Right-aligned Captioned Image, Left-aligned Captioned Image), and I like the

[mezzanine-users] Advanced tab for image editing missing in Mezzanine 4?

2015-08-17 Thread Lee H.
In previous versions of Mezzanine there was an Advanced Tab when the user clicked Insert/Edit image in a blog post. This tab allowed the user to add custom classes, styles, borders and alignment. It seems to be completely missing with the new Mezzanine and TinyMCE 4. Is it just a matter of

[mezzanine-users] Re: Advanced tab for image editing missing in Mezzanine 4?

2015-08-17 Thread Lee H.
Well re the How To part of my question, it is just a matter of adding image_advtab: true, to the tinymce_init.js file copied to your theme. But I still wonder if this is the intended default for Mezzanine. Surely most people would prefer the advanced tab on by default? Also the advanced tab

[mezzanine-users] Re: tinymce and django compressor?

2015-08-15 Thread Lee H.
I finally got around to upgrading this project to mezz4 and the new tinymce4. However, the same problem still occurs with django-compressor and the footer_scripts.html..Everything works if this include is outside of the compress block, but if you put it in the compress block you see 404s

[mezzanine-users] Re: Adding pagination to Mezzanine TabularDynamicInlineAdmin

2015-07-04 Thread Lee H.
I get how to do this on a normal page, but I'm still struggling to see how to do this in the Mezz admin. Which views/templates should I be looking at in order to wrap the code that generates the tabular inlines in a {% pagination_for ... %} etc On Wednesday, 1 July 2015 00:33:03 UTC+7, Lee H

[mezzanine-users] Linklist in pagedown like tinymce?

2015-07-03 Thread Lee H.
In tinymce it's easy to add a link to an existing blog post by just adding a link then selecting Link list, and picking the blog post from the list. I believe this has a number of advantages as the link is not hard coded. Nevertheless, I like to use pagedown for a blog with lots of code on it,

[mezzanine-users] Little bug with blog post related posts template block?

2015-07-03 Thread Lee H.
The template block for related posts in the blog detail template has `for post in blog_post.related_posts.all`, shouldn't it be `for post in blog_post.related_posts.published` (or rather published for that user...)? The way things are now, if a related post is unpublished it still gets linked

[mezzanine-users] Re: Adding pagination to Mezzanine TabularDynamicInlineAdmin

2015-06-30 Thread Lee H.
Many thanks Josh, that's very helpful! -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit

[mezzanine-users] Re: s3 and Bad Request 400 + thumbnails with s3

2015-06-30 Thread Lee H.
After killing myself to try and work out what throws this bad request (400) error when filebrowser-safe is installed and when MEDIA_ROOT is set to non ''. I finally (through blood sweat and tears), worked out that it comes from the safe_join function of the django-storages s3boto.py. Because I

[mezzanine-users] Re: Performance: Filebrowser and S3

2015-06-30 Thread Lee H.
One option is just to `pip uninstall filebrowser-safe`, then Mezzanine reverts back to the usual Django file upload (no need to change settings). Of course then you can't manage the media library, only upload, but it's not slow at least. Can anyone confirm if the bottlebeck is due to the

[mezzanine-users] Re: s3 and Bad Request 400 + thumbnails with s3

2015-06-30 Thread Lee H.
Just another note: if filebrowser-safe is uninstalled this bad request 400 does not occur, regardless if MEDIA_ROOT is set to some local fs, or empty, so I guess it must be a problem with filebrowser when MEDIA_ROOT is something other than ' ', and s3 storages being used. -- You received this

[mezzanine-users] Re: Performance: Filebrowser and S3

2015-06-29 Thread Lee H.
Did anyone find a fix for this? I'm doing exactly the same thing with the S3BotoStorageMixin, and can confirm the media browsing is cripplingly slow. It often just times out completely. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To

[mezzanine-users] Re: s3 and Bad Request 400 + thumbnails with s3

2015-06-29 Thread Lee H.
### ### STORAGE ## ### # The custom storage just allows definition of different 'locations' so media goes in media/ static goes in /static # within the bucket. Otherwise same as S3 boto

[mezzanine-users] Re: s3 and Bad Request 400 + thumbnails with s3

2015-06-29 Thread Lee H.
There is one other simpler way to get this working MEDIA_ROOT = ''# stops django throwing bad request 400 in admin when looking at blogpost detail then thumbnails will attempt to temporarily write to the local filesystem in the dir 'uploads' relative the point of execuation, so if

[mezzanine-users] s3 and Bad Request 400 + thumbnails with s3

2015-06-29 Thread Lee H.
I have something of a dilemma. On my production server I get the infinitely unhelpful message of Bad Request (400), whenever I try to access the detail of a BlogPost in the admin. This occurs wether DEBUG is True/False. It doesn't occur when viewing a BlogPost on the regular site, whether

[mezzanine-users] tinymce and django compressor?

2015-06-28 Thread Lee H.
I find that if I put the `{% include includes/footer_scripts.html %}` within the django-compressor `{% compress js %}` block, I get quite a few 404s. These are for plugins that tinymce wants to use, e.g. `plugins/fullscreen/editor_plugin.js`. The problem seems to be that with compression on

[mezzanine-users] Adding pagination to Mezzanine TabularDynamicInlineAdmin

2015-06-26 Thread Lee H.
On one of my pages I have a model called MapPlace (it's basically just a place name and some geo coords), I add it to the admin as an inline of the page like from mezzanine.core.admin import TabularDynamicInlineAdmin, class MapPlaceInline(TabularDynamicInlineAdmin): model =

[mezzanine-users] Adding a third-party app to a multilingual site using modeltranslations

2015-06-12 Thread Lee H.
*Background* I created a multilingual site theme for mezzanine using the new multi-lingual support. I had to do two things: 1) Add translations.py file to the theme app, which defined translations for my custom page models that subclass Mezzanine pages. 2) Split my theme app into two apps:

Re: [mezzanine-users] Enable Mezzanine multilingual site support

2015-06-12 Thread Lee H.
Thanks Mathias, I think it must have been using the old ordering of INSTALLED_APPS, since my settings file came from pre-upgrade Mezzanie. On a clean Mezzanine, I no longer got the error. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To

Re: [mezzanine-users] Adding a third-party app to a multilingual site using modeltranslations

2015-06-12 Thread Lee H.
Hey Eduardo, Many thanks for the reply. Yes, you are right, using the django-newsletter development branch from github (which has upgrades for the newer django migrations without south) things worked, and this error no longer occurred. -- You received this message because you are

Re: [mezzanine-users] Enable Mezzanine multilingual site support

2015-06-11 Thread Lee H.
Thanks for the reply Eduardo I upgraded to the master branch, pip install git+https://github.com/stephenmcd/mezzanine.git, (which also upgraded django to 1.8), and I now get the error: Traceback (most recent call last): File manage.py, line 29, in module

[mezzanine-users] Enable Mezzanine multilingual site support

2015-06-11 Thread Lee H.
I want to use the Mezzanine multilingual site feature, so I can have different form labels and rich text content depending on whether my site is the en or fr version. I installed django-modeltranslation and added modeltranslation to my INSTALLED_APPS, also setting USE_MODELTRANSLATION = True,

[mezzanine-users] Blog post images with captions?

2015-05-07 Thread Lee H.
Hi, As far as a I can see, the tinyMCE default editor does not provide a way to add captions to images embedded in a blog post? (the description/title are there, but not a caption field). Are captions really missing or am I being blind? Seems pretty basic functionality... If they are missing,

[mezzanine-users] Why does editable.css set paragraph line-height to zero in editable-form?

2014-09-10 Thread Lee H.
In `editable.css` there is .editable-form p { . . line-height: 0!important; } This means when the user clicks to edit inline say a blog post in which the content is formatted using p tags, the text appears squashed up in the preview pop-up window. What is the logic behind setting

[mezzanine-users] Re: two-level threaded commenting on blog

2014-08-20 Thread Lee H.
Hi Josh, Yes maybe it could be done with plain old CSS...I'll have a think. In the meantime I wrote the following filter: @register.filter(name='comment_level') def comment_level(comment):

[mezzanine-users] Is it possible to subclass the Form model?

2014-07-22 Thread Lee H.
I wanted to build a custom Page that incorporates a form, but also has some other things that can be tweaked (e.g. a section heading), something like: from mezzanine.forms.models import Form class MyFormPage(Form): secheading = models.CharField(max_length=200, help_text='A heading on

[mezzanine-users] Re: Is it possible to subclass the Form model?

2014-07-22 Thread Lee H.
Thanks for the reply Abhinav, I appreciate it. By use existing form app logic, you essentially mean I just copypaste from the Form model in the Mezzanine source, only adding some extra fields myself? Field injection looks promising, I'll have a good read. Upto now, I've just added a form to