1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

XenCarta meets Google API tables

Discussion in 'Resource Discussions [Archive]' started by Moses, Dec 22, 2011.

  1. Moses

    Moses Well-Known Member

    I've put together an Excel template which simplifies the process of inserting Google API tables into XenCarta. Still needs work, at this stage it's more a proof of concept and I'm hoping to get feedback to improve it and simplify the process for users.

    You can download it from the demo page

    Thanks to Brogan for his help with Google API tables.
    Digital Doctor and Andy.N like this.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Be aware that you can override the Google CSS, even though they don't explicitly explain how to do it.

    Unfortunately, it has to be included in the page otherwise certain elements don't change.
    It's a pain but it's better than having the Google washed out blue-grey style.
  3. Digital Doctor

    Digital Doctor Well-Known Member

    Attached Files:

  4. Brogan

    Brogan XenForo Moderator Staff Member

  5. Moses

    Moses Well-Known Member

    It'll display in a XenCarta page - to put it in a XenForo page you need to write the HTML, or modify the Excel template.

    It's not using fusion tables, looks like they are for mapping
  6. Moses

    Moses Well-Known Member

    Thanks Brogan,
    I've been looking at how you achieved done this - passing the classes in the options tag. Noticed you wrote a function, think I'll just embed the CSS in the table call
  7. Moses

    Moses Well-Known Member

  8. Moses

    Moses Well-Known Member

    Brogan, or anyone else, how do I stop the tables taking so much width? Seems Google are inserting a style tag in the header with a hardcoded and massive pixel fixed size?? That massive fixed size seems dependant on my browser size when I load the page, here is the opening HTML rendered for two window sizes

  9. Moses

    Moses Well-Known Member

    I got it close by setting the width property in the options function, it's still 100% but at least it doesn't pop below the floated div to the bottom now

    var options = {
    'cssClassNames': css,
    'allowHtml': true,
    'width': 'auto'
  10. Moses

    Moses Well-Known Member

    Latest version avoids strings being terminated early by a ' by changing these to the smart quote equivalent.

    Next version to handle dates....
    Andy.N likes this.
  11. Andy.N

    Andy.N Well-Known Member

    Any new update?
  12. Moses

    Moses Well-Known Member

    Yeah, currently articles with lots of tables are causing the XenCarta template thingy to timeout... so I'm looking to port it into KingK's BBCode Manager
    zett likes this.

Share This Page