Forums / Setup & design / new class

new class

Author Message

Javier Loureiro

Tuesday 25 October 2005 12:21:03 pm

I need to create a new class that will be used for short news on the front page. I derived a class from article, and removed almost everything except body, and image, and I added an URL field.

Now I have 2 problems with the new class. On theadmin panel, when I list the short articles, there is no title, so, I see only the icon but nothing else on the content list. Is there any way to setup the body as title text or something?

And also, when I display the code, using a simple table:

<a class="newshort" target="_blank" href={$node.object.data_map.url.content|ezurl}>{$node.object.data_map.body.content|wash}</a>

I got the url, but the body part is empty... I dont know hot to start to check what is happening. On the admin menu, I can read the body content, and the id is body... any help, please?

Thanks!

Javier Loureiro

Kristof Coomans

Thursday 27 October 2005 12:59:46 am

What datatype has the body attribute?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Javier Loureiro

Thursday 27 October 2005 11:09:51 am

Hello! Thanks for your question, because looking the answer, I found the solution :)

it's a ezxmltext

$node.object.data_map.body.content.output.output_text

Javier Loureiro