New Ticket

TICKET_CREATE privileges are required to perform this operation. You don't have the required permissions



Login Close


Implement aliases for iGoogleGadget

Ticket #50 Assigned to olemis, last modified 5 years ago

Details

Reporter olemis
Keywords iGoogle, gadgets, TracMacros
Type enhancement
Status closed
Priority major
Product dataviz
Milestone tracgviz_1.3.3
Component gviz_igoogle
Version
Cc

Description

Add support for macro aliases This way iGoogle gadgets may be embedded in wiki pages even easier. Aliases are names of macros configured using gadgets.aliases option which are shortcuts to use iGoogleGadget with a fixed gadget URL. For example, if the aforementioned option is set to MotionChart=http://www.google.com/ig/modules/motionchart.xml then the following snippets are equivalent (so users wont need to remember gadget URLs anymore but names they are familiar with ;).

    [[iGoogleGadget(url=http://www.google.com/ig/modules/motionchart.xml, _table_query_url=http://spreadsheets.google.com/tq?range=B3%3AG17&key=1234, _table_query_refresh_interval=5)]]

    [[iGoogleGadget(url=gadget:google:modules:motionchart, _table_query_url=[gviz:google:sheet:1234:B3-G17], _table_query_refresh_interval=5)]]

    [[MotionChart(_table_query_url=[gviz:google:sheet:1234:B3-G17], _table_query_refresh_interval=5)]]
Note: See TracTickets for help on using tickets.

olemis

It works now !

[[iGoogleGadget(url=http://www.google.com/ig/modules/motionchart.xml, _table_query_url=http://spreadsheets.google.com/pub?key=pCQbetd-CptE1ZQeQk8LoNw, _table_query_refresh_interval=30000, width=600, height=500)]]

[[iGoogleGadget(url=gadget:google:modules:motionchart, _table_query_url=[gviz:google:sheet:pCQbetd-CptE1ZQeQk8LoNw::A1-G307], _table_query_refresh_interval=30000, width=600, height=500)]]

[[MotionChart(_table_query_url=[gviz:google:sheet:pCQbetd-CptE1ZQeQk8LoNw::A1-G307], _table_query_refresh_interval=30000, width=600, height=500)]]




PS: Notice that second and third plots do not use the whole data.

  • Milestone set to tracgviz_1.3.3 - by olemis, 9 years ago
  • Resolution set to fixed - by olemis, 9 years ago
  • Status changed from new to closed - by olemis, 9 years ago

olemis

Bind ticket for iGoogle gadgets to gviz_igoogle component

  • Component changed from plugin_trac_gviz to gviz_igoogle - by olemis, 5 years ago