Fork me on GitHub

A Thought: Gooogle Maps, Flickr, etc APIs  Bottom

  • 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
  • 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.
  • 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
  • - SmugMug API could be added
    - Does picasaweb use the same as Google maps?

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • 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 |
  • This is an idea that keeps popping up so there seems to be demand for it icon_wink

    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!"
  • But with themevariables there is no general accessibility for other modules.

    --
    | scribite! | TNGz | piwik | zweet |
  • 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.
  • A Core Registry Module would probably be the best idea IMHO

    --
    Home Page | Find on Facebook | Follow on Twitter
  • http://zikulapro.com/index.php?module=zikula&func=viewpub&tid=11&pid=26&title=Pagesetter..Google.Maps

    Someone can make some $$...
  • 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
  • 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.
  • 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 icon_wink

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • 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 icon_rolleyes



    edited by: TakeIT2, datetimebrief
  • 0 users

This list is based on users active over the last 60 minutes.