A simple skeleton module added to this project that people can utilize for learning how to create additional styles as well as templates to create for formating would greatly enhance the usage of this module even further. I'm just starting with Views 2 and having some difficulty getting my style modules to display in Views and I know having a skeleton module for this would increase my success rate considerably.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | jonjon.zip | 4.12 KB | iamjon |
Comments
Comment #1
dawehneri'm not sure whether it is just to provide a module with views. This leats to people wondering what this module does and asking in the issue queue.
i would better add a api-styles.html and provide there one example.
Any oppinions about this?
Comment #2
esmerel commentedThis does seem like a reasonable idea; I know adv help contains a plugin example for something, but it might be panels. So there's at least precedent for containing this documentation. I need to do some doc work anyway, I might as well see if this is in there yet, or what I can come up with if there isn't :)
Comment #3
iamjon commentedSo I made a sample views style plugin module. It implements a simple rollover show hide effect on the attachment, if the view pulls up titles.
It still needs some love, but it does demonstrate the basics of how to create a style plugin.
There are a lot of things that I need help with to get it to the level of of node example module, which is what I'm aiming for. http://views-help.doc.logrus.com/help/views/api-example
I spoke to merlinofchaos for a bit about this on irc, he mentioned that if you use the row display you have to make due with the markup provided by views and add your own. (Most of the modules that I looked at that implement new styles seemed to follow that route)
My questions
Thoughts and comments would be greatly appreciated.
I already ran it through coder, I'll get rid of the stupid name once I'm done, i have no intent on keeping it jonjon.module
Comment #4
manuel garcia commentedWell, I'm wondering now whether we shuould start a project called views_plugin_examples, following the outstanding examples project. I know there is already a project called views_examples, but those are examples of actual views, not implementations of its api's.
I think the best way would be to create one module per plugin example, like one for loading default views, a simple style plugin, a more complex one, etc etc etc.
It would definitely be something not to be done in one day, but I think it's a great idea.
I'm more in favour of keeping it outside of views itself, mainly for being more agile in its development, not having to bother the already very busy maintainers of views itself. I think it'd also be easier to get patches that way, easier to promote the project etc. Once it gets stable, documented and merlin/dereine give their ok, we could just link to the project page from the views project page, if they see it fit.
Comment #5
merlinofchaos commentedI have a pager plugin example ready to go.
Comment #6
manuel garcia commentedmerlinofchaos, do you want to create the project page then? I wouldn't mind comaintaining it along iamjon and whoever wants to chip in, but since it's not my idea I don't want to go ahead and create the project myself...
I'm also pondering whether we should setup a group on groups.drupal.org to discuss some guidelines for building examples, sharing ideas for the actual examples themselves, etc.
Comment #7
merlinofchaos commentedI don't think I want to maintain it to be honest. If I create it, I'll just give it to someone else. You're more than welcome to go ahead and create it, and anyone who wants to pitch in can do so, I think, just like with the original examples module.
Comment #8
manuel garcia commentedOK, here it is then. http://drupal.org/project/views_plugin_examples
I would make you comaintainer iamjon, but apparently you dont have a CVS account...
I've added links to the group page and a wiki page I created so we can start at least defining something.
Comment #9
scottprive commentedsubscribe
Comment #10
iamjon commentedWOOO GOING TO APPLY FOR CVS GIT :)
Comment #11
iamjon commentedWhile I wait for my the cvs git migration I'm going to add a some cool links I found planet drupal
1) To remember them for later,
2)Maybe they can go into the module.
Comment #12
vjevremovic commentedImportant subject!
I've tried jonjon module but it is not showing any options under styles of a view.
Have I done something wrong?
Comment #13
iamjon commentedMoving queue
Comment #14
marcusx commentedsubscribe
Comment #15
adrianmak commentedsubscribe