Forums / Setup & design / "Add Location" & "Related Objects" turn out unexpectedly... frustrated

"Add Location" & "Related Objects" turn out unexpectedly... frustrated

Author Message

Badger Mushroom

Monday 17 January 2005 11:00:14 am

I just installed EZPublish 3.5, and found out a very convenient "Add Location" for my objects. However, to my surprise, this function has serious design flaw in that it doesn't display the children.

Then, I tried to see if "Related Objects' can fit my objective. Turns out it's something much more weird in that it displays a hyperlink only...

I was wondering if you guys could help me here.

Here's what I'm trying to do.

Badgers (1)
- Badger A
- Badger B
- Badger C

Snakes (2)
- Snake A
- Snake B
- Snake C
- Badger C (same content but the hyperlink points back to URL /badgers/badger_c/)

Unfortunately, the "Add Location" results in something similar to copying the content over to the /snakes/ folder. I seriously don't want two URLs containing the same content.

Could I solve my problem with "Related Objects"? It would seem the default "Related Objects" is a stripped down version of what it can do.

Thanks much!

Badger Mushroom

Thursday 20 January 2005 10:37:13 pm

Could anyone shed light on this problem?

Gabriel Ambuehl

Friday 21 January 2005 2:20:46 am

I really don't exactly get your problem. Do you want to have the menu contain Badger C in both locations? In that case, add location is for you (it doesn't copy anything, it just creates another URL for the same object).

Visit http://triligon.org

Badger Mushroom

Friday 21 January 2005 7:43:10 am

Hi Gabriel,

Thanks for your reply.

Basically, what I want is to have my 'main' URL remain the same in other secondary locations.

Say, I've added an object to folder A, and also added a location to folder B. When viewing folder B, I would like the URL to point to the same object URL in folder A.

I desperately need this feature... could anyone pls help? My whole site rely on this to function.

In my original thread, I've said "Related Objects" maybe the key to this... but all it does is to add a link whereas I want the flexibility of adding locations without duplicating the URL.

Thanks much for any help!

Paul Borgermans

Friday 21 January 2005 9:42:05 am

You probably have now something like (simplified code)

{section loop=$children var=child}
  <a href={$child.url_alias|ezurl}
{/section}

You can point to the main location by using

{section loop=$children var=child}
  <a href={$child.object.main_node.url_alias|ezurl}
{/section}

hth

-paul

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

Badger Mushroom

Friday 21 January 2005 11:05:51 am

Thanks. That's a simple fix. No wonder you're the moderator.

BTW, could you link me to doc that contains 'changing URL' info?

eZ debug

Timing: Jan 18 2025 18:17:48
Script start
Timing: Jan 18 2025 18:17:48
Module start 'content'
Timing: Jan 18 2025 18:17:50
Module end 'content'
Timing: Jan 18 2025 18:17:50
Script end

Main resources:

Total runtime1.5453 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0101 587.9688180.7969
Module start 'content' 0.01011.3308 768.7656609.4766
Module end 'content' 1.34090.2043 1,378.2422337.0859
Script end 1.5452  1,715.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00480.3096210.0002
Check MTime0.00160.1033210.0001
Mysql Total
Database connection0.00100.065310.0010
Mysqli_queries1.465294.81742050.0071
Looping result0.00240.15452030.0000
Template Total1.504097.320.7520
Template load0.00240.156220.0012
Template processing1.501597.170020.7508
Template load and register function0.00020.012110.0002
states
state_id_array0.00200.127410.0020
state_identifier_array0.00140.092520.0007
Override
Cache load0.00200.1282420.0000
Sytem overhead
Fetch class attribute can translate value0.00180.119540.0005
Fetch class attribute name0.00080.052770.0001
XML
Image XML parsing0.00110.069140.0003
class_abstraction
Instantiating content class attribute0.00000.000970.0000
General
dbfile0.00190.1212280.0001
String conversion0.00000.000730.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs