Hello there !
This very module creates a block that contains a very easy to use and sexy horizontal accordion (so that what meant the name :o). In there you can put any text you want or an image.
Even if there are other accordion module out there, Horizontal Accordion is the first one to actually to work horizontally and do not require the views dependency. Fully configurable, the accordion adapts either itself to the tab dimension or the other way around. Plus it comes with 4 themes (for the moment), all very nice !
And by the way I did this module only to help a french guy begging for some help on the french community forum (see there http://drupalfr.org/forum/support/avant-linstallation/33767-resolu-avez-...) and just when I started to work on it I realized many people could need something like that.
How does it work ?
- Download the library littleaccordion the you can find on git hub :
https://github.com/nikki/liteAccordion - Create a folder called littleaccordion in /sites/all/librairies and put the
content of the git repository - Activate the module (checkout dependencies : media and libraries)
- Choose the block position
- Add some tabs to the accordion via admin/structure/horizontal_accordion
So you see even a child could do it.
And of course if you want you can personalize your accordion as much as you want. Image dimensions, easing effect, trigger event are already there and many others are coming so come on approve me !
Drupal version : 7.x
Sandbox project : http://drupal.org/sandbox/ukan/1700574
Git : git clone --recursive --branch master ukan@git.drupal.org:sandbox/ukan/1700574.git horizontal_accordion
Main other module project : Sweaver
Oh by the way this is the site where I got the awesome js code : http://nicolahibbert.com/demo/liteAccordion/
Reviews :
http://drupal.org/node/1468596#comment-6281292
http://drupal.org/node/1705646#comment-6293658
http://drupal.org/node/1701498#comment-6278216
http://drupal.org/node/1751748#comment-6394058
http://drupal.org/node/1676528#comment-6276652
http://drupal.org/node/1697648#comment-6276588
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | Coder review.jpg | 121.11 KB | Anonymous (not verified) |
| #8 | drupalcs-result.txt | 13.31 KB | klausi |
| #4 | image_failed.png | 103.33 KB | bartlantz |
Comments
Comment #1
patrickd commentedwelcome,
You are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
As installation and usage instructions are quite important for us to review, please take a moment to make your project page follow the tips for a great project page. Also create a README.txt that follows the guidelines for in-project documentation.
An automated review of your project has found some issues with your code; As coding standards make sure projects are coded in a consistent style we please you to have a look at the report and try to fix them. Anyway, note that issues found are possibly false positives and fixing all issues is not a requirement for getting through the application process.
Report: http://ventral.org/pareview/httpgitdrupalorgsandboxukan1700574git
There are about 100 other applications waiting for review and only a hand full of active reviewers.
We do really need more hands in the application queue and highly recommend to get a review bonus so we can come back to your application sooner.
regards
Comment #2
Anonymous (not verified) commentedAlright I guess I have done everything.
I ran the code through Coder after rewriting it via a code beautifier and coder signaled me nothing.
Comment #3
Anonymous (not verified) commentedComment #4
bartlantz commentedHi Quentin,
This is an interesting module, I think when a few adjustments are made, it will be very useful!
Critical License Issue
1. The liteAccordion code is not compatible with Drupal's GPL license (the liteaccordion library uses an MIT license). So you cannot bundle the code with your module, instead it must be downloaded separately into a libraries directory and you can use the Libraries API to include it. Here's a module developer's guide to using the Libraries API:
http://drupal.org/node/735160
Functionality:
2. The form for adding an element to the horizontal accordion was confusing. There is no label on the first textfield, I had no idea what that field would be used for. I would suggest adding: "title" or something as the field label.
3. The image functionality didn't work, I attached a screen shot of the error message. There was no file upload form element on the "new element" form. Perhaps there is another module that is required for this functionality to work?
Thanks,
Bart
Comment #5
Anonymous (not verified) commentedAlright, I'll check everything out later. And yeah as my first tester told me, I forgot to add the media module has a dependency.
Comment #6
Anonymous (not verified) commentedI have done everything.
But just a little question : what should I name the library folder ? I chose 'liteaccordion', is that alright ?
I have a small css file that contains only one entry but I'm already seeing stuff to add in there, that is why I created it and I didn't put the entry directly in the .module.
Comment #6.0
Anonymous (not verified) commentedUpdating "how to" process.
Comment #7
Anonymous (not verified) commentedAdding > PAReview: review bonus
Comment #8
klausiYour reviews of other projects were quite short. When finishing your review comment also set the issue status either to "needs work" (you found some problems with the project) or "reviewed & tested by the community" (you found no flaws).
There is still a master branch, make sure to set the correct default branch: http://drupal.org/node/1659588 . Then remove the master branch, see also step 6 and 7 in http://drupal.org/node/1127732
Review of the 7.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #9
miksan commentedLooks like a nice module :)
Here are some remarks:
1) I found a lot of lines exceed the the advised limit of 80 characters per line.
2) Typo in horizontal_accordion.info, line 5:
libraires should be: 'libraries'
3) horizontal_accordion.admin.inc, lines: 256, 364, 407:
$form_state is missing &
4) horizontal_accordion.module, line 84:
Suggestion for a more simple/readable code:
5) horizontal_accordion.module, line 141:
I think it better to avoid inline js if possible. It gives a cleaner HTML (search engines like that) and improves performance.
I would create a js file and store the js variables in the Drupal.settings namespace.
6) horizontal_accordion.module, line 117:
In the horizontal_accordion_block_view you are mixing code and HTML. I suggest creating theme function(s) to get a better overview.
7) horizontal_accordion.module, line 172:
Instead concatenate a string into an ordered list I suggest you build up an array of rows and render it through theme_item_list.
Comment #9.0
miksan commentedAdding reviews
Comment #10
Anonymous (not verified) commentedI've corrected everything. And the library is supposed to be called litleaccordion, it is a typing error.
About renaming the module, I'm not really a fond of liteaccordion, I think people can understand better what this module is about with the current name.
Also there is no master branch, it is still shown in the git repository for some obscure reason but the main branch is 7.x-1.x and I deleted the master one yesterday.
Finally I ran my code through coder (minor detection mode) and I joined the result. It's all clear.
Comment #11
Anonymous (not verified) commentedClear automated review : http://ventral.org/pareview/httpgitdrupalorgsandboxukan1700574git
Comment #11.0
Anonymous (not verified) commentedAdding precisions
Comment #12
Anonymous (not verified) commentedPlease review. (UP)
Comment #12.0
Anonymous (not verified) commentedAdding a review
Comment #13
klausiSorry for the delay. I think you forgot to add the "PAReview: review bonus" tag as explained in http://drupal.org/node/1410826 , so you didn't show up on my high priority list.
manual review:
Review bonus tag is removed already, you can add it again if you have done another 3 reviews of other projects.
Comment #14
lolandese commentedIn the .css file margin-left and right are used. Drupal supports conditional loading of CSS files with specific override rules for right-to-left languages. See http://drupal.org/node/302199.
Good job, happy coding.
Comment #15
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.
Comment #16
caw67 commenteddoesnt work for me. there no site to add tabs or somthing. only twice config sites
Comment #16.0
caw67 commentedAdding a review