Ning Developer Docs

The instructions for adding pages to your network have been moved into the wiki. You can find them here.

Views: 222

Replies are closed for this discussion.

Replies to This Discussion

Hi Sudeep,

Once you've added the initial 'page' directory instance, you can create multiple other instances of the pages feature, in differently named directories in /instances. Just make sure that you give each one a different id value in the widget-configuration.xml file (choosing anything above 500 for the ids should be very safe).

Thanks,
Phil
hi phil, alva, george!

dunno if this is one of them 'silly questions' but once a page is created, is it editable only by the network creator or can members edit (add pages) too?

thanks,
shyam
Hi shyam,

Only network administrators can add pages right now, and only the person who created a page can edit it.

Thanks,
Phil
thanks phil!
Thanks Phil, I want to know how to export the data which is input in the added pages?
Hi Warren,

If your network is public rather than private, you can get an atom feed of all the Page content with a url like this:

http://yournetowork.ning.com/xn/atom/1.0/content(type='Page')
(replacing yournetwork above with your own network's subdomain)

Thanks,
Phil
Hello Phil.
When I add new pages, which is know as the ID that I have to give.
I Have this error code:
Uh-oh!
Unknown Controller: IndexController

Trace:
# 0 / php / includes / XN / WWF / lib / W_Widget.php (443): NF: bailOut ( 'Unknown control ...')
# 1 / apps / socialnetworkmain / lib / XG_App.php (1281): W_Widget-> dispatch ( 'index', 'index')
# 2 [internal function]: XG_App: dispatchRequest (NULL)
# 3 / php / includes / XN / WWF / lib / W_WidgetApp.php (121): call_user_func (Array, NULL)
# 4 / apps / socialnetworkmain / lib / index.php (31): W_WidgetApp: go ()
# 5 / apps/saiqt93/index.php (3): require_once ( '/ apps / socialnet ...')
Main # 6 ()

Can You help me?
hi

very useful tut, i created some pages in no time
btw, was wondering if there is any way to set a page to be viewable by registered members only after login, I tried playing with the 0 1 parameters in the .xml but no luck

thanks
Alan,

You have an error in the second widget config that you set up. The root attribute always needs to be 'page'.

Thanks,
Phil
Hi cabaz777,

No, there's no way to do this other than to change the privacy options for your entire network.

Thanks,
Phil
Phil, please help.

I have a live network to which I have tried to add a tab.
The tab added fine, but once I went to create a page I got this message.

Uh-oh!

Could not create widget: page, error was Can't load config /apps/bemoretest/instances/page/widget-configuration.xml: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "/apps/bemoretest/instances/page/widget-configuration.xml"

Trace:
#0 /php/includes/XN/WWF/lib/NF_Controller.php(108): NF::bailOut('Could not creat...', NULL)
#1 [internal function]: NF_Controller->action_error(Object(NF_Exception), NULL)
#2 /php/includes/XN/WWF/lib/NF_Controller.php(746): call_user_func_array(Array, Array)
#3 /php/includes/XN/WWF/lib/NF_Controller.php(157): NF_Controller->_invokeAction('error', Array)
#4 /php/includes/XN/WWF/lib/W_Controller.php(66): NF_Controller->action(Object(NF_ArgWrapper))
#5 /php/includes/XN/WWF/lib/NF_Controller.php(132): W_Controller->action('error', Object(NF_Exception), NULL)
#6 /php/includes/XN/WWF/lib/NF_Controller.php(592): NF_Controller->error(Object(NF_Exception))
#7 [internal function]: NF_Controller->_doRender('show', 'page')
#8 /php/includes/XN/WWF/lib/NF_Controller.php(176): call_user_func_array(Array, Array)
#9 /php/includes/XN/WWF/lib/W_Controller.php(66): NF_Controller->action(Object(NF_ArgWrapper))
#10 /php/includes/XN/WWF/lib/W_Widget.php(419): W_Controller->action('show')
#11 /apps/socialnetworkmain/lib/XG_App.php(1281): W_Widget->dispatch('page', 'show')
#12 [internal function]: XG_App::dispatchRequest(NULL)
#13 /php/includes/XN/WWF/lib/W_WidgetApp.php(121): call_user_func(Array, NULL)
#14 /apps/socialnetworkmain/lib/index.php(31): W_WidgetApp::go()
#15 /apps/bemoretest/index.php(3): require_once('/apps/socialnet...')
#16 {main}

HELP!

bemoretest.ning.com
Hi there,

The directory that you've put the configuration in is not called page; it needs to be. Also, you have a page directory, but it's currently empty.

Thanks,
Phil

RSS

© 2026   Created by Ning Developer Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service