Forums / Setup & design / Symlinking content (solved)

Symlinking content (solved)

Author Message

Wednesday 22 December 2004 3:18:09 am

I know it is possible to copy content, but is it possible to symlink content so that content can be presented several places on a site ?
If so you only have to update the content one place.

Ulrich L.

Wednesday 22 December 2004 3:37:12 am

This is a very basic feature of ezp. E.g. you can place a node (= content carrier) at several different locations. When changing the content, the changes will appear at the different locations. It is that what you were asking for?

Balazs Halasy

Wednesday 22 December 2004 4:39:43 am

Hi,

A kind of symbolic linking (creation of shortcut) is possible by assigning several nodes to the same object. This is easily done by the addition of an extra location (add new location from within the admin interface). However, please keep in mind that this feature does not support symlinking on a subtree/recursive basis. Let me demonstrate...

Let's say you have the following objects:

1: Root folder
2: News folder
3: Sports folder
4: Article one
5: Article two

..and that you've set up the following node tree:

   A
   |
  -+-
 /   \
B     C
      |   
     -+-
    /   \
   D     E

In other words, you'll have the following node assignments:

Node A ---> Object 1
Node B ---> Object 2 
Node C ---> Object 3
Node D ---> Object 4
Node E ---> Object 5

(Node A points to object 1, node B points to object 2, and so on.)

Okay, now, let's say you want to make the object that is pointed to by node C (object 3) available under node B. Okay, you'll simply add a node assignment (using the locations panel from the admin interface). The result will be:

Nodes & objects:
----------------

Node A ---> Object 1 (Root folder)
Node B ---> Object 2 (News folder)
Node C ---> Object 3 (Sports folder)
Node D ---> Object 4 (Article one)
Node E ---> Object 5 (Article two)
Node F ---> Object 3 (Sports folder)  *NEW LOCATION*


Your node tree would look like this:
------------------------------------

       A
       |
      -+-
     /   \
    B     C
    |     |   
    F    -+-
        /   \
       D     E

In other words, you have successfully placed the Sports folder under the News folder at the same time as it is also availalbe at its original location (directly below the root). However, notice that the children of the Sports folder were not symlinked.

Conlcusion:
Object symlinking is possible but only on a per-object-basis and not recursively. It is important to keep this in mind whenver you're sketching out / planning the node tree of an upcoming eZ publish site. A lot of people fall into the same pitfall over and over again, thinking that symlinking is possible just like it would be on a filesystem.

Balazs

Wednesday 22 December 2004 5:10:23 am

OK, thanks a lot.
This was the feature I was looking for but was not aware of.

-
Hans-Henry

eZ debug

Timing: Jan 19 2025 11:46:52
Script start
Timing: Jan 19 2025 11:46:52
Module start 'content'
Timing: Jan 19 2025 11:46:52
Module end 'content'
Timing: Jan 19 2025 11:46:52
Script end

Main resources:

Total runtime0.4191 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0095 588.9531180.8359
Module start 'content' 0.00950.0064 769.789197.9922
Module end 'content' 0.01580.4032 867.7813525.8984
Script end 0.4190  1,393.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.8397200.0002
Check MTime0.00130.3195200.0001
Mysql Total
Database connection0.00180.434010.0018
Mysqli_queries0.364286.90901410.0026
Looping result0.00160.38631390.0000
Template Total0.402796.110.4027
Template load0.00110.263410.0011
Template processing0.401695.815410.4016
Override
Cache load0.00080.186310.0008
Sytem overhead
Fetch class attribute can translate value0.00110.262210.0011
XML
Image XML parsing0.00020.053410.0002
General
dbfile0.00230.5379200.0001
String conversion0.00000.001730.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
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