Thanks so much for the Great module, I really found it useful in our intranet! ...I was wondering if it is possible to embed charts in the content of other nodes?

Possible or not, this is a cool module, Thanks!

Comments

aaron1234nz’s picture

Status: Active » Postponed

Depending on what you want to achieve there are a few ways of doing this.
1. If the node you want to insert the chart into is a custom node, then you can use the API and insert some custom code in hook_view() to render a chart.
2. If you set an input area filter to php then you could add some php code in there the same way as in 1. above.
3. You could create two nodes (one fusionchart, one other node) and use a view to show them both together. You could also install the nodelinks module in CCK to link one node to another.
4. You could extend the fusioncharts content type using CCK.

At the moment I there is no CCK support for this node. I'll look at adding this once I've got the D6 version done.

Abilnet’s picture

Thanks Aaron, that's cool! ...as a non coder I was mostly thinking about some filter syntax how Fusion Charts can be inserted in other nodes (book pages etc.) ...as an example of the idea, there's Video Filter module for example ("...This is a highly flexible and easy extendable filter module to embed any type of video in your site using a simple tag. ..)

Thanks Aaron for this Great module, your hard work appreciated!

aaron1234nz’s picture

Status: Postponed » Fixed

The functionality you want already exists in drupal

What you want to do is this:
Install the CCK module and make sure you enable the node reference part
go to administer->content->content types->
add a field of type node reference, and check fusionchart as the node type
choose the display fields and choose full node
create some content and there should be a box for choosing a chart
done.

Abilnet’s picture

Thanks Aaron so much, what a great support, appreciated!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nmorse’s picture

Status: Closed (fixed) » Active

Hi Aaron,

I appreciate your spelling out what you did above. My question is similar, but a little different... Is there a way to embed individual charts into the content/body of a page/node. Meaning, if I have a bunch of text, just being able to type (or use a WYSIWYG editor plugin) some sort of command that would insert it where I tell it -- in the midst of the other (usually text) content?

Thanks!

aaron1234nz’s picture

I've just released a new version of this module (It might take 12 hrs before it becomes downloadable though) which includes fusioncharts as a CCK field. Have a go at using this and see if it fits the bill.

nmorse’s picture

Hi Aaron,

Is this the dev snapshot?

aaron1234nz’s picture

Hi nmorse,

are you using drupal 5 or 6? I had assumed 6. FusionCharts for CCK is only available for Drupal 6 so the dev snapshot I referred to is for the Druapal 6 version. I've your on Drupal 5, I might have to write that filter after all.

aaron1234nz’s picture

Version: 5.x-1.0-beta3 » 6.x-1.x-dev
Status: Active » Fixed

I've added the an input filter for fusioncharts for the Drupal 6 version. You can now include a FusionChart node in another node by entering the text "fusionchart:x" where x is the node id of the FusionChart.

However you must enable the fusionchart input filter for this to work.

chawl’s picture

How about using the quite normative [xxx:#] notation?

Something like [fusionchart:#|w:450|h:350] or [fusionchart:#|d:450x350] might be versatile also.

Tx a million by the way, filter is incredibly useful.

Revolution is here :)

chawl’s picture

Minor typo: Filter help says "fusioncharts:x" by the way, note the extra "s".

aaron1234nz’s picture

Good idea. I like your syntax. I've applied the changes into the following form [fusionchart:#|w:450|h:350] where the w and h parts are optional.

chawl’s picture

Lightening fast! Thank you :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.