Author Topic

Eirik Alfstad Johansen

Thursday 25 November 2004 11:14:04 am

Comment41858

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/