Hello sven.lauer and wildkatana :
I created a BPC Display submodule that improves upon the original provided by BPC in that it adds the ability to redirect to a View with Node ID, thus allowing the creation of a View as a "response" to the BPC results and gives all that Views customization goodness.
Basically this is a shameless clone of the original with some extra changes in it that I am sure most experience coders have thought of and implemented on their own.
What would be your preference for sharing it? A patch, a separate module in Drupal or a Features export?
If I went the Features route, I could also include the View as well, which right now would need to be made by the developer.....Or I can just make my first module and bundle it as a true BPC submodule module.
Let me know.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | bpc_display_result screen_in_views.png | 129.17 KB | 3rdLOF |
| bpc_display_views_with_nid.png | 19.81 KB | 3rdLOF |
Comments
Comment #1
3rdLOF commentedHere is my version of the BOC result page I created, sort of mimicing the Product Display Manager layout.
Comment #2
sven.lauer commented(Sorry for not replying earlier)
Nice.
I am of two minds about including this in BPC ... one the one hand, I want to fix up the "custom location" field so that it works with tokens---once that is done, something like what you did could be done be done by using tokens and just creating a view with the right kind of arguments. On the other hand, I think it would also be nice to have the option to direct to a view as one of the selectable choices as you have it (ideally with a select field for the view) ...
Could you post your module in a sandbox project so I can have a look at it?
Also, the product IDs that have been created are actually saved in the session, so they could be passed to a view even without a product display node ...
And: You don't need to go the feature route to inclue a view with a module---views can be exported to code and included in a module as a "default" directly. I could give you pointers on how to do this, if we decide that it is better to have this as a separate module.
Finally:
It may be true that "exprerienced coders" could have thought of this on their own, but this is true for most modules---that does not mean at all that it would not be a great contribution!