How to get contentId of wikipage created ?

mmln
Joined: 22 Jun 2008

How to get contentId of wikipage created ?

Posted:12 Jul 2008 (00:54 UTC)
I would like to assign permisisons to content(wiki page). After creating wikipage how to retrieve the contentId so that it can be passed in

$wikiPage = new BitPage();
$wikiPage ->store($wikiParams);



$contPerm = new LibertyContent();
$contPerm ->storePermission( $groupId,"p_wiki_edit_page",FALSE,pContentId);
xing
Joined: 07 Mar 2004

Re: How to get contentId of wikipage created ?

Posted:12 Jul 2008 (19:51 UTC)
in bitweaver, $gContent has the content id in $gContent->mContentId. we have some useful debugging and developing tools that can help you with sort of stuff:

<?php
vd
$gContent );
?>

or

<?php
bt
();
?>

see:
bitweaverFAQ
mmln
Joined: 22 Jun 2008

Re: How to get contentId of wikipage created ?

Posted:14 Jul 2008 (22:02 UTC)
Thanks xing....I used the below code..it worked.

$pContentId = $wikiPage->mContentId;
  Page 1 of 1  1