ez projects / xmlwash / forum / general / problem of utilisation
You need to be logged in to post messages in the forums. New users may register here.
|
Member since: Posts: 9 |
Tuesday 05 June 2007 3:33:30 pm Hello,
Thank for your extension. I read your readme.txt and when I insert your code {attribute_view attribute=$node.object.data_map.intro maxlength=42} in my line view template nothing appeer. When I use the normal code I can see the intro : {attribute_view_gui attribute=$node.data_map.chapeau} I follow your instruction to install xmlwash extension. Your have some idea. Stéphane |
|
Member since: Posts: 37 |
Tuesday 05 June 2007 4:29:42 pm Salut,
Put debug on, clear the caches, reload the page. Do you have any warning/error message ? What's the ez publish version you use ? X+ |
|
|
Member since: Posts: 9 |
Thursday 07 June 2007 10:27:13 am Salut,
I use ez publish 3.9.2. When I write : {attribute_view_gui attribute=$node.object.data_map.chapeau maxlength=42} nothing appear. There is no warning or error message in debug. But when I write : {$node.data_map.chapeau.content.output.output_text|strip_tags(array('<p>','<i>','<a>'))|shorten(1000)|xmlwash()} it's working correctly. Thank for your help. Stéphane |
|
|
Member since: Posts: 5 |
Tuesday 26 February 2008 1:10:05 am I have the same problem. But this could be im trying to add it to a eZ Flow block.
{attribute_view_gui attribute=$valid_nodes[0].data_map.intro maxlength=42} Just blanks the block completly. -------------------------------------------- |
|
|
Member since: Posts: 1 |
Monday 01 February 2010 1:05:50 am Thanks to the author for this extension, it is very useful!
To those with errors, the problem might be that your ezxmltext.tpl is not getting overridden. This is what a standard-ish ezxmltext.tlp looks like: {$attribute.content.output.output_text|striptags} You need your ezxmltext.tpl to look something more like the template provided by xmlwash: {if is_set($maxlength)} {$attribute.content.output.output_text|xmlwash( $maxlength )} {else} {$attribute.content.output.output_text|xmlwash( 0 )} {/if} As you can see, this code passes the $maxlength variable to xmlwash and it should return the text correctly. This was actually a fix for a slightly different issue, but may provide a good start for anyone having problems. Disclaimer: This solution is only for those who have xmlwash "working", but the maxlength operator is failing. It might work, or it might not *fingers crossed* Thanks again to everyone who has contributed to this handy little extension! Julian Apatu, |
You need to be logged in to post messages in the forums. New users may register here.