Posted by coolestdude1 on November 10, 2010 at 6:48pm
3 followers
Jump to:
| Project: | Rotor Banner |
| Version: | 6.x-2.7 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Issue Summary
Hello developers i need to know if there is a way to use some sort of API for integrations into other modules such as the one i develop for (dynamic_banner)
This is all in reference to #927526: Multiple Images
One of my users asked for functionality that you already provide and rather than duplicating code i would want a way i can use your module to better my module.
Can you help me out?
Comments
#1
bump...
#2
+1
#3
Not really sure what you are looking for in terms of an API. Any more details?
#4
Sure ill explain more, basically your module works great but now I want to have the proper back end calls to make a rotor banner on any page using code. My module does banners on multiple pages from one centralized location. You can also quickly update and change displays for these pages. I would like the ability to provide the functionality that your module already provides as an option for my users. Is there a way where I can call the form elements and the themed display within your module from mine so that I can have an addon module that hooks into your module?
#5
I'm not sure how you would do that. I'm not really sure how your module works, but my assumption is that your module would need to be able to create a Rotor Item nodes (which you can easily do programmatically), but then it would also need to create a view with multiple block displays, as well as somehow positioning those blocks into regions and setting the block visibility properties.
Does your module produce blocks? one block or multiple blocks? How does it handle block visibility settings?
#6
My module creates a single block that it is placed on multiple pages. It decides what goes on which page by pulling out the address and comparing it to what the admin put in the database. It has 3-4 different display patterns. Please check out www.nptrainingworks.com for a live working demo of the module. Every page has a different banner and there is also a default banner for when a url or path does not match a value in the database. My ultimate goal for this issue is to have yet another display pattern that users can choose which is the rotor banner display method. Allowing people to specify more than one banner for a page which is displayed with javascript inside of your module. I do not want to create another block i just want to be able to pass through a hook that codes up "maybe" a comma separated string that outputs the html and javascript used to make rotor banner great. This is a sort of bypass to all the backend of rotor banner but the settings for the rotor banner can still be controlled from your module.
Does that cover it all?