Custom datatype : link + object relations

Author Message

Christian BELLET

Tuesday 08 July 2008 1:45:46 am

Hello,
I'm wondering if it is possible to create a custom datatype like "object relations" so I would be able to choose the name (input field) for each related objects and then, fetch all these objects, make a link to each of them with the custom name like

<a href="/path/2/object1">Custom text 1</a>
<a href="/path/2/object2">Custom text 2</a>
<a href="/path/2/object3">Custom text 3</a>

"Custom text" is not an attribute of the related objects (article, image ...).

Thanks

Michael Scofield

Wednesday 09 July 2008 1:19:30 am

I think I didn't understand what you want to do but,

If what you want is a list of links in your webpage and you want to manage the links from Ez Publish Administration interface, maybe you can do that by creating a folder anywhere in the Content Structure tree and then insert objects of class "Link" inside it.

Later, to retrieve and show these links in the webpage, you can use one the Ez Publish fetch functions, like this one:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/list

You have to specify the Id of your node (your folder), so only objects inside this folder will be retrieved.

Michael

Christian BELLET

Wednesday 16 July 2008 4:17:09 am

Yes, it's what I'd like to do but instead of getting an attribute like 'title' or 'short_title', I'd like to permit backend users to specify a custom/free text when you click on a link.

Thanks

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