Create a diagram object?

Author Message

Andrew Zahra

Monday 09 February 2004 4:49:23 pm

I want to create a class that contains a graphic of a software class diagram as well as the original source from my class diagram tool. I only want the graphic displayed in documents but I want the source to be available so future authors can download it to update.

Is this possible?

Alex Jones

Tuesday 10 February 2004 6:35:41 am

Yep, it is possible. You can store binary files such as your source in eZ publish, and link to them. The image itself can be a part of the article, a custom class or a related object. There are some examples on the forums which a quick search should show you.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Andrew Zahra

Tuesday 10 February 2004 2:47:14 pm

Thanks - I actually had done a search before posting. Perhaps you could give me some clues as to good search strings?

thanks again,
Andrew

Vidar Langseid

Wednesday 11 February 2004 3:11:36 am

Well, what you basically have to do is:
Edit your content class and add an attribute of the following datatype:
BinaryFile

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 04:24:09
Script start
Timing: Jan 31 2025 04:24:09
Module start 'layout'
Timing: Jan 31 2025 04:24:09
Module start 'content'
Timing: Jan 31 2025 04:24:09
Module end 'content'
Timing: Jan 31 2025 04:24:09
Script end

Main resources:

Total runtime0.0143 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.1250151.2109
Module start 'layout' 0.00560.0030 739.335936.6484
Module start 'content' 0.00860.0043 775.984490.1406
Module end 'content' 0.01290.0014 866.125033.9922
Script end 0.0142  900.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002316.3402140.0002
Check MTime0.00117.6402140.0001
Mysql Total
Database connection0.00085.748110.0008
Mysqli_queries0.002819.831930.0009
Looping result0.00000.230710.0000
Template Total0.00096.610.0009
Template load0.00075.201610.0007
Template processing0.00021.323810.0002
Override
Cache load0.00053.632110.0005
General
dbfile0.00032.171280.0000
String conversion0.00000.068540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs