Vox Populi(x) forum

Alexandria Book Library => Supporto (Support) => Topic started by: tester on 29 February 2012, 17:45:17

Title: allinonemodule - display only 9 books
Post by: tester on 29 February 2012, 17:45:17
Sorry for my bad English.
Hi I have problem with setting the number of books displayed in the module allinonemodule (random).
Currently showing all records from the database.
It needs to display only 9 of every category.
Is it possible?

---
I have joomla 2.5
Alexandria Book Library component Version:2.0.2
and All-in-one module Version:1.0.3


Screenshot (http://grafik.uwb.edu.pl/all-boks-priv.JPG)
Title: Re: allinonemodule - display only 9 books
Post by: federica on 29 February 2012, 20:59:59
Hi tester,
this is a bug!!! Thanks for your notice.
To fix it open the file your_site/modules/mod_abook_allinone/helper.php
Modify the row number 138
from
$db->setQuery($query);
to
$db->setQuery($query, 0, $count);

I will fix this bug as soon as possible.
To choose the number of book to show you can change the "Counter" parameter on module configuration.
Title: Re: allinonemodule - display only 9 books
Post by: tester on 01 March 2012, 09:08:08
It works thanks for your help ;)
I finish the project to pay a donation.
Regards
Title: Re: allinonemodule - display only 9 books
Post by: federica on 01 March 2012, 09:46:48
Hi mnich20,
I fixed the bug and published the new version of module.
If you want you can download it following this link
Alexandria Book Library All-in-one module (http://www.alexandriabooklibrary.org/en/downloads/viewdownload/26-modules/59-all-in-one-module.html)
Upgrade the old version.

Thank you for your donation. If you like this component, I'd appreciate if you would put a review on the joomla.org site.
Bye bye