im looking for a way for a user to create new content in the form of a ....umm...form!
this form will be a pedigree to an animal. if you guys havent seen this before it looks like this
..............................................|---------------sire
.........................------------sire............................
..........................|...................|---------------dame
animal-------------.................................................
..........................|.....................|--------------sire
..........................------------dame............................
.................................................|--------------dame
i am wanting to make it possible for someone to choose how many generations they can display, and then fill in those generations to where the finished product will have a structure similar to the crude one i made up above. and then this content type will be available for users to create and post like a blog posting.
is there something built in the drupal core already that does this? or is there any module that anyone knows of that can get close to this? i havent been able to find a mod who's description says it does this.
Comments
I don't think there's a
I don't think there's a module like this. I'm sure that there is a script though out there in the world, and somebody can integrate it, mayhaps.
This may be possible... a little, with cck, but it would be really really clunky.
It may also be possible with with a node relationships module and a graph module, but that probably isn't what you're looking for either, IE, the each animal would be a node.
Anyway, I don't think anything exist yet to do what you're saying exactly.
i didnt know if it could be
i didnt know if it could be done via drop down boxes set in a custom arrangement that would resemble something close to what i was referring to. only thing though, is that it would have to be where the user could enter what info appeared in each field....i dont know im still looking though....
i know something like this
i know something like this could easily be done via HTML but i hoped there was already a mod that allowed for a better way of integrating it with drupal.
if i did end up coding this out in HTML, would there be a way to have it set as its own content type? not sure if im even saying it right....still pretty new to drupal...
I was replying under the
I was replying under the assumption that you were looking for something dynamic, IE, users can edit each animal, rearrange them, etc. If you're just looking to do some kind of HTML thing, well then that's much simpler.
Set as its own content type, yes. Simply go to content management, and look in 'content types'.
well i too assumed i wanted
well i too assumed i wanted that, but im not gonna fool anyone, including myself, if i say i have the time and knowledge to code a module that would do this....
this is a simple html chart generator that i found on a horse site.
http://foxtrotters.tripod.com/generator.htm
its crude yes, but it works too....
you mentioned up above that maybe this could be done through the chart module, and if one could build a chart to resemble this type of format found on that generator, couldnt it just be set as a content type and made up sort of like a stationary form that people could then add too and make their own? maybe i need to wait on this until i get finished with the site, and then come back to it. i cant seem to get my head around it.
if a 2d chart was made to
if a 2d chart was made to run from right to left, and you could place the bars in the same way and length as the html generated version, you'd only have to label the ends of the bars to make it look like a really nice pedigree.......im gonna start fiddling around with the chart mod and see if i can create one....
Family module?
Perhaps http://drupal.org/project/family might be useful? It mentions "Graphs for ascendancy and descendancy." as one of the features.
i tried the resource link
i tried the resource link for a demo, but didnt see any charts....its also not updated to work on 6.3 yet..but that sure sounded like exactly what i was looking for, the geneology chart part anyway....
i managed to get some code scribbled down to output a chart that would be similar to what i want...
however, i dont know how to code it where the bars come from the other direction, and even then, the bars dont appear to be scaling right. i cant get it to be uniform length bars even though the values are the same for each step down, or step up. can anyone give a hint to where i might need to look to find out what parts of this code im missing that is making it look the way it is.
<?php
$chart = array(
'#plugin' => 'google_charts', // Google Charts API will be used
'#type' => 'hbar2D', // To show a simple 2D hbar chart
'#height' => 600, // in pixels
'#width' => 500, // in pixels
'#color' => 'FFFFFF', // background color, in RRGGBB format
'#title' => t('Chesters Pedigree'), // The chart title
array(
'#legend' => t('Sire'),
5,
10,
15,
20,
15,
10,
5
),
array(
'#legend' => t('Offspring'),
10,
15,
20,
25,
20,
15,
10,
),
array(
'#legend' => t('Dame'),
5,
10,
15,
20,
15,
10,
5
),
);
return charts_chart($chart);
?>