Ning Developer Network

I want to make an edit page for own content and so I need a signifier for the edit form.
How do I get the content id(s) of a query result/ content object?
I don't know, because 'getId()' is for internal use and XN_Content::contentId is too much, I guess.
By the way, are these results real XN_Content objects?

Thanks in advance

Edit: Do I really have to make my 'own' ids?

Share Twitter

Replies to This Discussion

Hello again,
Is some information missed?
Or did I overlook something in the docs?

At last:

contentId ($name=null, $returnArray=false)
Returns the ids of XN_Content objects referenced under the given name, or the ids of all
referenced XN_Content objects if no name is given.

Does $name represent the string in the xn:type tag or in the title tag?

RSS

© 2010   Created by Ning Developer Admin

Badges  |  Report an Issue  |  Privacy  |  Terms of Service