Since there are several modules that use these APIs would it not be better for all involved (particularly the administrator) to not store these as module variables, or in the module's data tables, but rather as System Variables?
--
Home Page | Find on Facebook | Follow on Twitter
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
A Thought: Gooogle Maps, Flickr, etc APIs
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
-
- Rank: Softmore
- Registered: Sep 30, 2008
- Last visit: May 29, 2010
- Posts: 201
i agree, there is no point to configure (for example) your GoogleMap API key for every module, but existing modules should be updated to check it and make sure it is set (maybe give you some sort of warning of how to set it) or have the module able to configure it as always before in its settings, but have it store as a system variable. as long as in every module that requires it it is obvious on how to set it / whether its set, because if its lost in some system setting somewhere many users will not know to look for it or where to look. -
- Rank: Softmore
- Registered: May 22, 2004
- Last visit: Apr 03, 2010
- Posts: 451
It should be an option in the settings module... an area for API keys for all sorts of things...
Flickr
Google
Yahoo
Wordpress
etc...
They can either be saved in the database or as a global pnRender variable...Fine idea!
--
Burnham Racing
Illinois Cycling Association -
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
- SmugMug API could be added
- Does picasaweb use the same as Google maps?
--
campertoday.nl, Module development, Dutch Zikula Community -
- Rank: Developer
- Registered: Aug 05, 2003
- Last visit: May 06, 2010
- Posts: 187
I don't think this API keys should be included in Settings module. The Settings module has so much options. Why add more?
Perhaps a special module can provide such functionality and every module using those keys can get them.
Anyone interested? That should be easy done and i would do that ;)
--
| scribite! | TNGz | piwik | zweet | -
- Rank: Software Foundation
- Registered: Sep 03, 2002
- Last visit: May 09, 2010
- Posts: 909
This is an idea that keeps popping up so there seems to be demand for it
A Question: How do module developers know how the name is for example of the define for the Google Maps API key?
Have you thought about using themevariables?
--
best regards from Kiel, sailing city
Steffen Voss
Member of the Zikula Steering Committee
Read The Zikulan's Blog "If you want people to RTFM, make a better FM!" -
- Rank: Softmore
- Registered: Jul 02, 2002
- Last visit: Oct 21, 2009
- Posts: 240
A special module or area for this would certainly be a good idea. But I believe it should be a core feature ... 1) because it is usefull for many modules, and 2) because it would be a pain to have yet another module to install when you want to try out a new module.
But API keys are just one facet of a centralized registry. You could probably find all sorts of common globally interesting key/value pairs. So I would like to see it extended a bit:
- It is a common settings registry of key/values pairs.
- Key/value pairs are stored under a category (not the standard Zikula categories). So you can have categories like "API keys" or "Standard image sizes" with keys like "Flickr", "Google maps" or "Preview image size", "Thumnail image size".
- Each module uses a predefined plugin system to present the categories and keys (and key descriptions) it depends on.
- The registry provides an interface for editing all those key/value pairs.
- There should be a special Wiki page where standard categories and keys can be listed such that the modules devs knows what keys to use. -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
A Core Registry Module would probably be the best idea IMHO
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
http://zikulapro.com/index.php?module=zikula&func=viewpub&tid=11&pid=26&title=Pagesetter..Google.Maps
Someone can make some $$... -
- Rank: Softmore
- Registered: May 22, 2004
- Last visit: Apr 03, 2010
- Posts: 451
jaenosjelantru-
Using pgForms and some of google's API's I created a pgForms publication submit form where a user can click to show a map (hidden div), have the google map centered on one location (Chicago), and allow the user to click on a point and have that street address populate a Pagesetter field (right below the map)... Pretty neat... And no custom module needed!!!
www.binaryoven.com/map.tiff
PM me if you'd like the code- at least as a reference point
--
Burnham Racing
Illinois Cycling Association -
- Rank: Team Member
- Registered: Jul 15, 2004
- Last visit: May 27, 2010
- Posts: 277
Are there any new information about this topic? I think that we necessarily need such a feature. There are really many modules, which now require API keys.
Or should we still add a variable in the settings module? For Core 1.3? Better than nothing for now. -
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
A separate part in Settings is fine as well I think. With a variable number of items (like attributes in News or the categories).
Then all the API keys needed can be stores there.
And all the modules using the API keys should be adapted too, otherwise it makes no sense
--
campertoday.nl, Module development, Dutch Zikula Community -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: May 31, 2010
- Posts: 303
JørnWildt
- Key/value pairs are stored under a category (not the standard Zikula categories). So you can have categories like "API keys" or "Standard image sizes" with keys like "Flickr", "Google maps" or "Preview image size", "Thumnail image size".
this sounds like simplicity, and timelessly elegant.
...but that probably means I am wrong
edited by: TakeIT2, datetimebrief
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
