ez.no Forum reply template

Author Message

Brendan Pike

Tuesday 12 April 2005 9:36:45 pm

I love the knew design for forum replies. I've been working on improving some ez forums also and wanted to ask how it was possible to retrive information about the parent object while inside a objects edit view? I've looked at the available information and for example it doesn't seem possible to fetch the parent's topic in the eZp 3.6 alpha release.

Also what are the thought's about using a XML text field for the forum body, any reason this wouldn't be a good idea?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Ɓukasz Serwatka

Wednesday 13 April 2005 12:20:15 am

Hi Brendan,

You can fetch parent of new object:

{let parent_node=fetch('content','node',hash(node_id,$object.current.main_parent_node_id))}

{$parent_node.name}

{/let}

$parent_node.children holds information about node children. Can be use in section as loop param.

New forum design will be available in future eZ publish release.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Brendan Pike

Wednesday 13 April 2005 10:58:15 pm

Thanks Lukas
Excactly what I needed.

And what do you think about using XML datatype for forum messages? I guess I'd loose access to simpletag operaters and code tags but seems to then offer many other advantages. Any "gotcha's" I'm not thinking about?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

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