"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?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:10:57
Script start
Timing: Jan 18 2025 19:10:57
Module start 'layout'
Timing: Jan 18 2025 19:10:57
Module start 'content'
Timing: Jan 18 2025 19:10:58
Module end 'content'
Timing: Jan 18 2025 19:10:58
Script end

Main resources:

Total runtime1.1153 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.1719152.6563
Module start 'layout' 0.00580.0053 740.828139.5078
Module start 'content' 0.01111.1027 780.3359604.3672
Module end 'content' 1.11380.0014 1,384.703116.0938
Script end 1.1152  1,400.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3876160.0003
Check MTime0.00160.1416160.0001
Mysql Total
Database connection0.00090.081710.0009
Mysqli_queries1.050994.2291680.0155
Looping result0.00080.0760660.0000
Template Total1.078596.720.5392
Template load0.00230.203120.0011
Template processing1.076296.495920.5381
Template load and register function0.00020.016010.0002
states
state_id_array0.00220.194110.0022
state_identifier_array0.00120.108020.0006
Override
Cache load0.00190.1701420.0000
Sytem overhead
Fetch class attribute can translate value0.00090.079330.0003
Fetch class attribute name0.00160.145470.0002
XML
Image XML parsing0.00090.077030.0003
class_abstraction
Instantiating content class attribute0.00000.001170.0000
General
dbfile0.00080.0679170.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs