how can i extract the url of a page from the database?

Author Message

vlad katz

Sunday 21 August 2011 1:04:35 pm

i'm trying to get the virtual urls of some pages form the database.  is there a table where this info is stored?  i thought that this was stored in the path_identification_string column of the ezcontentobject_tree table, but it looks like those urls are not correct (they have special characters changed so a "_-_" in the actual url is just "_" in the path_identification_string.

Daniel A. Øien

Sunday 21 August 2011 10:17:03 pm

Virtual URL aliases are stored in the ezurlalias_ml and ezurlalias tables, but it's easier to get this info through a custom template that outputs the full url aliases using {$node.url_alias}.

Daniel A. Øien
Open Concept SA, Norway
Web: http://openconcept.no/
In English: http://openconcept.no/eng

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 29 2025 13:34:40
Script start
Timing: Jan 29 2025 13:34:40
Module start 'layout'
Timing: Jan 29 2025 13:34:40
Module start 'content'
Timing: Jan 29 2025 13:34:40
Module end 'content'
Timing: Jan 29 2025 13:34:40
Script end

Main resources:

Total runtime0.0127 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.0043 588.3594151.2266
Module start 'layout' 0.00430.0026 739.585936.6875
Module start 'content' 0.00690.0047 776.273490.1094
Module end 'content' 0.01160.0011 866.382829.9766
Script end 0.0127  896.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002015.4741140.0001
Check MTime0.00097.1159140.0001
Mysql Total
Database connection0.00086.083810.0008
Mysqli_queries0.002015.960130.0007
Looping result0.00000.219610.0000
Template Total0.00096.710.0009
Template load0.00064.942910.0006
Template processing0.00021.754610.0002
Override
Cache load0.00043.336510.0004
General
dbfile0.00118.761780.0001
String conversion0.00000.058240.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