Share » Forums » Setup & design » "Add Location" & "Related Objects"...

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

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

Monday 17 January 2005 11:00:14 am - 5 replies

Modified on Monday 17 January 2005 11:02:07 am by Badger Mushroom

Author Message

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?

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu