3 in 1 (link to frontpage, file upload, gd error)

Author Message

Kaiko Kaur

Tuesday 01 April 2003 6:57:28 pm

Hi

I have many questions! I hope nobody will not mind if they are in one topic.

1. How can I make link in article text to frontpage (node 2) and name it like "here". (So, html output should be like <a href="/mydesign/content/view/full/2">here</a>).
2. How can I upload some file (for example doc or pdf) and link to it.
3. I get error message in debug area (it appears if there is some image on page; image is not shown):
"Undefined attribute 'contentobject_attribute_id, version, requestedwidth, requestedheight', cannot get"

Thank you

Karsten Jennissen

Tuesday 01 April 2003 11:39:49 pm

As for (1): http://ez.no/manual/user/everyday#Tags

The others I can't help you right now.

Karsten

Kaiko Kaur

Wednesday 02 April 2003 2:01:37 am

about this link.
I have found this url and as I can understand I should write like this:
<link id='2'>to main page</link>

But it doesn't work. So - can you give me example? How exactly should I write this? And where should I get this id?

Karsten Jennissen

Wednesday 02 April 2003 4:34:02 am

Hi Kaiko,

when I looked through the forums I found that we were on this subject earlier (http://ez.no/developer/ez_publish_3/forum/general/link_to_node_with_different_title) :-)

However, I can't help you with this, since I have only used the <link href='...'> function. Be sure to use single quotes, double quotes didn't work for me. As for the id (which according to the above thread should be the object id), you could try different ids, play around, maybe you'll find an id that is working and deduct from that how it should be?!

Regards,
Karsten

Wenyue Yu

Thursday 10 April 2003 7:40:29 am

>about this link.
> I have found this url and as I can >understand I should write like this:
><link id='2'>to main page</link>

The code should work if id 2 does exist in table ezurl. After storing, the input will be changed to <link href='url of id 2'>to main page</link>

If you want link to frontpage, you can write like this:<a href="content/view/full/2">here</a> or <link href="content/view/full/2">here</link>.

To upload file and link to it, you need first create a class which has attribute binaryfile, then create an object of this class. You can either link it as embeded object ( find related object first ) or just use code <link href="content/view/full/object_id>file object</link> to link it.

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 18 2025 10:30:08
Script start
Timing: Jan 18 2025 10:30:08
Module start 'layout'
Timing: Jan 18 2025 10:30:08
Module start 'content'
Timing: Jan 18 2025 10:30:09
Module end 'content'
Timing: Jan 18 2025 10:30:09
Script end

Main resources:

Total runtime1.2904 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1563152.6406
Module start 'layout' 0.00630.0034 741.796939.4766
Module start 'content' 0.00981.2790 781.2734528.2656
Module end 'content' 1.28880.0016 1,309.539112.1250
Script end 1.2904  1,321.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2637160.0002
Check MTime0.00140.1079160.0001
Mysql Total
Database connection0.00100.073710.0010
Mysqli_queries1.235595.7399650.0190
Looping result0.00060.0475630.0000
Template Total1.258497.520.6292
Template load0.00200.157720.0010
Template processing1.256497.358920.6282
Template load and register function0.00030.021110.0003
states
state_id_array0.00120.091810.0012
state_identifier_array0.00090.073320.0005
Override
Cache load0.00170.1313320.0001
Sytem overhead
Fetch class attribute can translate value0.00060.049730.0002
Fetch class attribute name0.00140.105250.0003
XML
Image XML parsing0.00040.028530.0001
class_abstraction
Instantiating content class attribute0.00000.000850.0000
General
dbfile0.00070.0518100.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs