Forums / Developer / Internal links are stored in database?
ZRIBI Anoir
Wednesday 21 April 2010 7:06:25 am
Hi everybody!
I want to see the list of internal links (links pointing to objects),are there stored in database? if not how can i list them?
Regards.
Wednesday 21 April 2010 8:07:48 am
i think that i find my internal links, these are in tha table:ezcontentobject_link.
:)
Bertrand Dunogier
Wednesday 21 April 2010 11:11:32 am
Nope, ezcontentobject_link contains the object relations, e.g. links between objects.
The URLs are "stored" in ezurlalias_ml, but you won't find them as is, as the multilingual URL alias feature dynamically builds them depending on... a set of criteria ;)
The easiest way would be to fetch your content using the API, and call the url_alias attribute.
Bertrand Dunogier eZ Systems Engineering, Lyon http://twitter.com/bdunogier http://gplus.to/BertrandDunogier
André R.
Thursday 22 April 2010 12:11:02 am
I think he wanted the links between objects, not the node url alias.
If so, then he found the correct table.Just note that the table contains all relations, and relation_type can have these values:
const RELATION_COMMON = 1; const RELATION_EMBED = 2; const RELATION_LINK = 4; const RELATION_ATTRIBUTE = 8;
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Thursday 22 April 2010 6:18:04 am
hi,
thank you for reply.
but i don't understand the difference between "node url alias " and "object relations" and especially the "node url alias" role. please can you explain more.
regards.
Script start
Module start 'content'
Module end 'content'
Script end
Time used to render debug report: 0.0001 secs