Using linked objects

Using linked objects

Thursday 25 November 2004 8:11:11 am - 3 replies

Author Message

Eirik Alfstad Johansen

Thursday 25 November 2004 11:14:04 am

Hi Robert,

This can all be accomplished using basic eZP template language. For #1, you paste the following into the full view template of the contacts page:

<form method="post" action={"/content/action"|ezurl}>
<input type="hidden" name="NodeID" value="{$node.node_id}" />
<input type="hidden" name="ClassID" value="[ClassIdofContactsClass]">
<input class="button" type="submit" name="NewButton" value="Add contact" />
</form>

For #2, you use a basic fetch to get the contacts:

{let contacts=fetch(content, list, hash($node.node_id, class_filter_type, include, class_filter_array, array(contacts_class_identificator)))}
{section loop=$contacts}
{$:item.name}
{/section}
{/let}

Remember that you can learn a lot by searching the forums, and studying the documentation, as well as code that comes with eZP.

Good luck !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Robert Munteanu

Friday 26 November 2004 12:40:41 am

That easy? Well, thank you for quick solution :)

Robert Munteanu

Friday 26 November 2004 12:42:51 am

That was easy ... thank you for your quick reply :)

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

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