How do I create a user friendly filename/url?

Author Message

Chris Lukenbill

Tuesday 05 June 2007 1:25:42 pm

I'm sure I'm not the first person to try to do this, but I can't find the answer anywhere. If there is another post that already covers this, just post up the link (I couldn't find one).

I'm trying to find a way to create a user friendly filename and url for a file (such as a .pdf) that I create from the admin. When I upload a file, either through a file class, or through a custom class that I've created, I would like to have a way to assign a name to the file or at least use the name of the file, instead of assigning some filename like, "1c9316f4ef7dfd8af66bcd7acf50d309.pdf". Some type of url translation would help the situation, but I haven't figured out a way to translate to a file.

Thank you for any help.

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 10:13:10
Script start
Timing: Jan 31 2025 10:13:10
Module start 'layout'
Timing: Jan 31 2025 10:13:10
Module start 'content'
Timing: Jan 31 2025 10:13:11
Module end 'content'
Timing: Jan 31 2025 10:13:11
Script end

Main resources:

Total runtime1.1257 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.2578151.2266
Module start 'layout' 0.00470.0022 739.484436.6797
Module start 'content' 0.00691.1178 776.1641822.4688
Module end 'content' 1.12460.0010 1,598.63287.8125
Script end 1.1256  1,606.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2681160.0002
Check MTime0.00130.1194160.0001
Mysql Total
Database connection0.00060.056210.0006
Mysqli_queries1.084396.3243460.0236
Looping result0.00050.0416440.0000
Template Total1.080196.020.5401
Template load0.00220.199620.0011
Template processing1.077995.753520.5389
Template load and register function0.00160.141710.0016
states
state_id_array0.00260.228010.0026
state_identifier_array0.00320.281920.0016
Override
Cache load0.00180.161260.0003
Sytem overhead
Fetch class attribute can translate value0.00070.064810.0007
Fetch class attribute name0.00190.171110.0019
XML
Image XML parsing0.00020.019310.0002
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00250.2252100.0003
String conversion0.00000.000440.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/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: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs