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

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.

eZ debug

Timing: Jan 18 2025 03:00:21
Script start
Timing: Jan 18 2025 03:00:21
Module start 'content'
Timing: Jan 18 2025 03:00:21
Module end 'content'
Timing: Jan 18 2025 03:00:21
Script end

Main resources:

Total runtime0.2371 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.8359180.8203
Module start 'content' 0.00740.0104 768.656397.7891
Module end 'content' 0.01780.2192 866.4453526.6250
Script end 0.2370  1,393.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00451.9086200.0002
Check MTime0.00210.8752200.0001
Mysql Total
Database connection0.00080.349710.0008
Mysqli_queries0.148062.41971410.0010
Looping result0.00140.57301390.0000
Template Total0.218892.310.2188
Template load0.00080.318510.0008
Template processing0.218191.974210.2181
Override
Cache load0.00050.222210.0005
Sytem overhead
Fetch class attribute can translate value0.00100.429410.0010
XML
Image XML parsing0.00050.220610.0005
General
dbfile0.037915.9994200.0019
String conversion0.00000.002130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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