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

noptien’s picture

Hi, 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

cerup’s picture

I'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.

noptien’s picture

Yes , 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 ?

@+

cerup’s picture

Oh, 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

pedrorocha’s picture

The version you said to have this problem are old(we are now in 2.12). Are you still having this problem?