Forums / Suggestions / User contributed docs: change from url_alias to node id linking

User contributed docs: change from url_alias to node id linking

Author Message

Paul Borgermans

Saturday 07 June 2003 5:51:23 am

----------------------
Arrghh redundant, Karsten posted the same request earlier here, so consider it as more weigth to his request
----------------------

Hi ez crew,

With the upcoming changes and the need to adapt the contributed docs, I think the cross linking may pose problems with the use of url_alias.

As the docs grow in size and number, some re-arrangements may be necessary. The use of url_alias is not robust in this respect.

A simple additional field with "link me url" in the style of /content/view/full/nodeid may make the work of contributors a bit easier for porting between these link styles.

Regards

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Bård Farstad

Saturday 07 June 2003 6:17:14 am

We will do something with this. Most likely add something like <link href="eznode:42">link to node 42</link>.

Alternatively <node id="42" />, which will work similar to object related object but will have information about the node placement.

Suggestions about how to make this as simple as possible are appreciated.

--bård

Documentation: http://ez.no/doc

Gabriel Ambuehl

Sunday 08 June 2003 4:31:16 am

Keep the url_alias stuff and make the content module intelligent enough to change references?

The ignorant version is to just scan the DB for references and substitute them with the new URL, the somewhat more elegant version would keep track of what pages links to what other pages.

Visit http://triligon.org

Paul Borgermans

Monday 09 June 2003 5:58:03 am

>We will do something with this. Most likely add something
>like <link href="eznode:42">link to node 42</link>.
>Alternatively <node id="42" />, which will work similar to
>object related object but will have information about the
>node placement.

Either of them seem fine, but I do not quite understand what you mean by "but will have information about the node placement". Does it mean that it'll display like url_alias?

>Suggestions about how to make this as simple as possible are
>appreciated.

In any case, to "port" the links , it would be handy to have the node id displayed somewhere (a tiny string at the bottom is OK). Opening each article in edit mode gives the object id, not the node id so that's no option to discover it. Or else an interface for contributors like the admin->content for this section (also for moving things around and/or deleting obsolete articles).

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Bård Farstad

Monday 09 June 2003 6:03:35 am

> Either of them seem fine, but I do not quite understand what you mean by
> "but will have information about the node placement". Does it mean that
> it'll display like url_alias?
Yes, if you have a node tag you can make it display the url_alias as a link. When you have an object you don't know which node placement to show ( of course you could show the main ).

In any case, eZ publish should update the links when moving an object. This is no problem. However we do not use XML in the forums and many links would then be broken when a page moves. How should this be handled?

--bård

Documentation: http://ez.no/doc

Paul Borgermans

Monday 09 June 2003 8:20:21 am

>In any case, eZ publish should update the links when moving an
>object. This is no problem. However we do not use XML in the
>forums and many links would then be broken when a page
>moves. How should this be handled?

Difficult, but ....

--------I know this means quite some work------
Since path (node placement) is unfortunately not kept with object versions, some conversion should be done before moving anything. Links in forum messages should be converted to /content/view/full/<nodeid> upon posting if they refer to content on ez.no.
---------------------------------------

Actually, this is the universal nightmare of persistent content. The use of /content/view/full/node-id is probably the only way to go in the long term for content within one-and-ony-one site.

One of the things to discuss in the future developments of ez publish is to how to use universal locators of content in general, even across sites. This is also one of the tough issues for W3C standardisation, allthough some of it is addressed in a down to earth approach:

http://purl.oclc.org/

What we want to do is setting up something like that and integrate this into ezpublish. Perhaps not for every content object, but at least for some classes where a upon creation of a new object, a PURL is registred into the local as well as a central server. An ezpublish template operator could then be used to generate always the PURL link (for backwards compatibility --generate a PURL if one does not exist yet) together with a new object attribute delivering the very same PURL.

Something for discussion at the summer camp I guess....

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Gabriel Ambuehl

Tuesday 10 June 2003 1:25:42 am

Paul,
as to getting node id: the admin interface will show it to you when you hover over a link, the number at the end of the edit URL will be the node id. Sure, it isn't exactly straight forward but it works.

Visit http://triligon.org

Paul Borgermans

Tuesday 10 June 2003 1:38:55 am

Gabriel,

Yes I know, but I doubt we'll getting access to the admin interface fo ez.no for editing the user contributed docs ;-)

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Jerry Jalava

Friday 13 June 2003 9:17:18 am

Just a thougt:
One good add to the url_alias would be converting Ä,Ö,Å's to A,O,A's and also special marks could be changed to _'s...
This would help alot when using other languages like finnish...
ie. Right now I have a link "hkkisen_psiinen" which should be like "häkkisen_pääsiäinen"... ;)

Regards,
Jerry

willy jansen

Wednesday 03 November 2004 6:25:27 am

This discussion took place a year ago.
Is there any news on this topic? Did this suggestion end up in the bin?

I searched the website for "eznode" and get 0 results.

eZ debug

Timing: Jan 18 2025 04:27:39
Script start
Timing: Jan 18 2025 04:27:39
Module start 'content'
Timing: Jan 18 2025 04:27:40
Module end 'content'
Timing: Jan 18 2025 04:27:40
Script end

Main resources:

Total runtime0.7300 sec
Peak memory usage4,096.0000 KB
Database Queries221

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 589.1016180.7969
Module start 'content' 0.00860.6147 769.8984746.5391
Module end 'content' 0.62340.1064 1,516.4375350.2031
Script end 0.7298  1,866.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5907210.0002
Check MTime0.00160.2239210.0001
Mysql Total
Database connection0.00110.147010.0011
Mysqli_queries0.626485.80472210.0028
Looping result0.00270.37082190.0000
Template Total0.698195.620.3490
Template load0.00220.306420.0011
Template processing0.695895.319020.3479
Template load and register function0.00010.018710.0001
states
state_id_array0.00090.121710.0009
state_identifier_array0.00070.091520.0003
Override
Cache load0.00190.2554770.0000
Sytem overhead
Fetch class attribute can translate value0.00140.188260.0002
Fetch class attribute name0.00170.2278120.0001
XML
Image XML parsing0.00200.274060.0003
class_abstraction
Instantiating content class attribute0.00010.0094160.0000
General
dbfile0.00190.2611350.0001
String conversion0.00000.001030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 41
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs