Forums / General / How to fetch all url_aliases of a given node ?

How to fetch all url_aliases of a given node ?

Author Message

H-Works Agency

Friday 05 February 2010 4:01:07 am

Hello,

How do we fetch/retrieve the url_aliases associated with a certain node ?

Say i have my node "Movies/StarWar-2" and that i created multiple url_aliases thru "content/urlalias/{$node_id}" like :

  1. /starwar
  2. /best-movie
  3. /movie/star-war

Given that and starting from the $node or $object how do we retrieve this list in a template ?

Is there a built-il operator ?

Is this a properties of $node or $object ?

Do we have to write a custom fetch function ?

Thanx for any help

EZP is Great

eZ debug

Timing: Jan 17 2025 23:59:16
Script start
Timing: Jan 17 2025 23:59:16
Module start 'content'
Timing: Jan 17 2025 23:59:16
Module end 'content'
Timing: Jan 17 2025 23:59:16
Script end

Main resources:

Total runtime0.0244 sec
Peak memory usage4,096.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.2656180.8203
Module start 'content' 0.00710.0117 770.085989.9922
Module end 'content' 0.01880.0055 860.078166.7031
Script end 0.0243  926.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00239.5724120.0002
Check MTime0.00114.6991120.0001
Mysql Total
Database connection0.00093.809610.0009
Mysqli_queries0.003213.053140.0008
Looping result0.00000.090020.0000
Template Total0.005120.910.0051
Template load0.00093.808610.0009
Template processing0.004217.049610.0042
Override
Cache load0.00062.643110.0006
General
dbfile0.007229.5146100.0007
String conversion0.00000.066530.0000
Note: percentages do not add up to 100% because some accumulators overlap

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