How to save from PHP all the fields of an eZURL attribute?

How to save from PHP all the fields of an eZURL attribute?

Wednesday 02 November 2005 6:35:44 am - 2 replies

Author Message

Björn Dieding@xrow.de

Wednesday 02 November 2005 11:16:18 am

			if ( is_array( $data) )
			{
				//set data and text
			 	$contentObjectAttribute->setAttribute( 'data_text', $data['text'] );
			 	$contentObjectAttribute->setContent( $data['url'] );
			}
			else 
			{
            	$contentObjectAttribute->setContent( $data );
			}
			$contentObjectAttribute->store();

I guess this helps...

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Massimiliano Bariola

Thursday 03 November 2005 3:27:17 am

Great! that's what I was trying to achieve. thank you.

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.