Can I order by name - minifrontpage

I see that all order options are just by date, is there an option to order by name?
4 years 10 months ago #1 by ddd rrrr

Please Log in or Create an account to join the conversation.

Another thing - It doesn't seem to be responsive. I get beautiful 3 columns on my desktop, but on my mobile it becomes a single column with a bloated thumbnail. Am I missing a setting?
Thanks
4 years 10 months ago #2 by ddd rrrr

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline
Hi,

I see that all order options are just by date, is there an option to order by name?

Did you mean alphabetical order? Unfortunately it's not possible at the moment

Another thing - It doesn't seem to be responsive. I get beautiful 3 columns on my desktop, but on my mobile it becomes a single column with a bloated thumbnail. Am I missing a setting?

Could you let me know the URL of your site so I can take a look?
4 years 10 months ago #3 by TemplatePlazza

Please Log in or Create an account to join the conversation.

I found the issue on mobile - in the default.php file, the following line appears:
<div class="mfp-col-xs-12 mfp-col-sm-6 mfp-col-md-<?php echo 12/$default_num_column;?> mfp_default_item">
So if I understand, for mobile/tablet it ignores the number of columns...
For my site, i edited it manually so it will be 3 column wide for tablet/desktop and 2 column wide for mobile.

It will be awesome if you can add a setting for number of columns on mobile / responsive, as I think I might not be the only one wanting different number of columns based on user device.
Also, I dropped the h4 from the article link, as on mobily the text size was too large.

I changed the orderering by title by going to the file MinifrontpageHelper.php and adding an option for 'a.title'.
Also it seems that the ordering can only be changed by editing the file. I didn't find a setting for it.

Finally, it seems that the thumbnail that is generated is low quality. Not sure how to improve it.

If you can add the above features to the base extension, it will be awesome. I'm not a coder, so my fixes are hack, but I'm sure you will do it in a professional way.
Thanks for your extension.
4 years 10 months ago #4 by ddd rrrr

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline
Hi Vin1, thank you for your valuable feedback ;)

I found the issue on mobile - in the default.php file, the following line appears:

It's a common responsive grid/column rules that means it will be 2 column wide in screen width > 48em (mostly tablet or phablet), 1 column wide in smartphone, and follow the column setting for devices width screen width > 75em (desktop, notebook). This rules generally will work most of cases, that's why I was asked for your website url that maybe have a different case.

For my site, i edited it manually so it will be 3 column wide for tablet/desktop and 2 column wide for mobile.

Did you edit the module's file directly? I wouldn't suggest you to as your modification will be overrided every time you install the new update. I'd suggest you to do template override instead. extensions.joomla.org/blog/item/override...mise-almost-anything

It will be awesome if you can add a setting for number of columns on mobile / responsive, as I think I might not be the only one wanting different number of columns based on user device.

Adding too much settings will make it less simple / intuitive to start for new user so I'll leave it as it is. Additionally it also will increase the xml codebase that will potentially adding unnecessary extra loading time for module's backend

Also, I dropped the h4 from the article link, as on mobily the text size was too large.

Minifrontpage will follow your template typography style, so it is likely following your template's h4 rule. This is the reason why CSS Adjustment tab exist. You can add css overriding there without touching the physical files.

I changed the orderering by title by going to the file MinifrontpageHelper.php and adding an option for 'a.title'.
Also it seems that the ordering can only be changed by editing the file. I didn't find a setting for it.

I haven't tested it so I can't comment about it but I'm glad it works for you.

Finally, it seems that the thumbnail that is generated is low quality. Not sure how to improve it.

To improve the thumbnail quality, simply increase the thumbnail size with the same ratio. Don't forget to delete all thumnail images under folder ../images/thumbnails/mod_minifrontpage after you have changed the setting, so it will generate the new ones.
4 years 10 months ago #5 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Thanks for the information regarding layout override, I knew it existed but didn't have the chance to use it yet.
Regarding the h4 setting, I will also look into the css option.

about the ordering, it was actually pretty simple to add, as you have a robust codebase, so it was just adding another option. I think it is a good setting to have and shouldn't add clutter as you already have some options.

My remaining issue is the thumbnail quality - it is not related to size, but to the jpeg setting probably. You can see here: www.pundak.co.il/role-playing-games/reviews it appears blocky and much worse than the article intro image which is roughly the same size.
If you can point me to were I can set the quality, that will be great.
4 years 10 months ago #6 by ddd rrrr

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum