Active
Project:
Open Flash Chart API
Version:
6.x-2.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2010 at 02:42 UTC
Updated:
26 Sep 2010 at 23:48 UTC
I have chart in a custom node template file. It works and shows up correctly.
I want to move it somewhere else and therefore put it in a custom page template, but it won't render the chart, it only renders the "get flashplayer" image.
The swfobject.js file is included on the page and the 'open_flash_chart_api_render' seems to be called since it is returning the flash player image but not object.
Any reason why it would work in a node template but apparently not find flash player in a page?
Comments
Comment #1
noptien commentedHi, I've the same problem.
The chart is rendered in a custom node template but not in a custom page template. But if i called the function in the page and in the node, the chart is rendered twice ?????
Any idea ?
Thanks
Comment #2
cerup commentedI'm not sure I understand what you're doing. You said if you call it in the page and node it'll render twice; if you call it twice it should render twice.
Comment #3
noptien commentedYes , it's normal i got the chart twice if i put it (the php code) in the node template and the page template. I did that to make a try. But if i put the code only in the page template, the chart is not rendered. It' clear ? Maybe my english is not ?
@+
Comment #4
cerup commentedOh, I see what you're saying.
Unfortunately, for me that doesn't work. If I print the chart twice (one in page and one in node) it only shows up in the node one. In the page one all I get is the flash player icon. Any thoughts on how to fix this? Something apparently isn't getting initialized through page.tpl
Comment #5
pedrorocha commentedThe version you said to have this problem are old(we are now in 2.12). Are you still having this problem?