Description for external file link.....

Author Message

Doug Johnson

Thursday 04 January 2007 2:54:28 pm

We have a link to a pdf file and would like to make the text for the link something other than the name of the file itself. Can this be done? Currently in version 3.8, we are can't enter a text description for the link. In version 3.7 we could. Any ideas? Thanks

Claudia Kosny

Saturday 06 January 2007 9:27:44 am

Hi Doug

You could just add an additional textline attribute in all classes that have a file attribute. Give it the same name in all classes, eg. file_link_text. In the template that displays the link to the file grab the content of this attribute and use it as the link text.

Claudia

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 08:05:27
Script start
Timing: Jan 31 2025 08:05:27
Module start 'layout'
Timing: Jan 31 2025 08:05:27
Module start 'content'
Timing: Jan 31 2025 08:05:28
Module end 'content'
Timing: Jan 31 2025 08:05:28
Script end

Main resources:

Total runtime0.7666 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.2344151.2109
Module start 'layout' 0.00470.0024 739.445336.6484
Module start 'content' 0.00720.7584 776.0938878.6172
Module end 'content' 0.76560.0009 1,654.71097.8438
Script end 0.7666  1,662.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4243160.0002
Check MTime0.00140.1776160.0001
Mysql Total
Database connection0.00060.077110.0006
Mysqli_queries0.715393.3046540.0132
Looping result0.00050.0671520.0000
Template Total0.710092.620.3550
Template load0.00220.286620.0011
Template processing0.707892.324620.3539
Template load and register function0.00110.149110.0011
states
state_id_array0.00330.424510.0033
state_identifier_array0.00170.227720.0009
Override
Cache load0.00170.224580.0002
Sytem overhead
Fetch class attribute can translate value0.00080.110820.0004
Fetch class attribute name0.00160.203020.0008
XML
Image XML parsing0.00020.032120.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.01321.7248100.0013
String conversion0.00000.000940.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs