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 Gerald,

You simply create the new page instance as per the instructions. Once that's done you go to the new tab, click the button to create a new page and insert the javascript and other html necessary to generate the Google map (sorry, I can't help you with that bit, but there should be many examples on the web).

Thanks,
Phil
Phil,

You already responded to another user that it is possible to embed a google map via the Google API on a tab created this way. I tried copy and pasting the code provided by the google API but am not sure where on the widget-configuration.xml file I am supposed to put the tags. A more detailed explanation would be really helpful thanks!
-Gerald
Hi Gerald,

Sorry, I'm not sure what tags you're referring to. Setting up the pages instance isn't related to putting specific content inside of one of the generated pages. From memory when you are creating the page you'll need to include the div that the map will be inserted inside, and you'll need to include the necessary js from Google, also likely wrapped in a div to prevent our html scrubber from getting rid of it. If you're still having problems, please let us know where exactly you're getting stuck.

Thanks,
Phil
Hi Phil,

Sorry to post my question in two parts of this thread. Two issues I ran in to. First, I created the new page tab and wanted it to go directly to a new page, rather than to a page that allows me to create multiple new pages. I think this requires modifying the widget-configuration.xml page. Second, once this new page loads, I would like to load the google maps API and I wasnt sure where to put the tags to prevent the google code from getting scrubbed out.
Hi Gerald,

When you create a single page in the pages instance, it's loaded automatically when the tab is clicked. If you create additional pages in the instance then the tab will show you a listing of them. Modifying the configuration won't alter that behavior.

As far as the map goes, you should be fine if you include everything (js included) in <div></div> tags.

Thanks,
Phil
Phil,
I successfully created a new tab and have added some pages. Once you click on the new tab, and the list of pages is displayed: Is there a way to increase the amount of text that is displayed for each page listing? Thx
Karsten
Hi Karsten,

If you have full access to the code then you can modify the amount of text that's shown by opening up /widgets/page/templates/page/fragment_page.php and modifying the '200' in the line that contains:
$focus->description, 200
so that it's higher. If you don't have code access then there isn't a simple way to change this I'm afraid.

Thanks,
Phil
Phil:

I have the swicki search gadget on my main page and I find that it slows things down too much. I would like to move it to a search tab. Following is the edited js code for the swicki. Exactly how and where in the widget-configuration.xml file for the tab do I insert the code?

<script charset="UTF-8" type="text/javascript" src="http://swicki.eurekster.com/sidebar?groupkey=key&target=_self&numresults=20&format=js"></script>
Hi Clay,

You don't put anything related to page content inside the widget-configuration.xml file; just add the configuration file as per the instructions. Once the new tab has appeared, click on Create a Page, and add the js code you've got above, wrapped in <div align="center></div>

Thanks,
Phil
Hey, I was just wondering if I can use this code to make a tab that links to another site.
Hi Nick,

It's probably easier to use this mechanism to create a new tab with an external link. Creating a tab with a page in conjunction with that method though will mean that you don't have the new tab appearing at the end of the page load, which you may prefer.

Thanks,
Phil
Thanks Phil,

This has helped a lot, I also like the pages tab function. It works great.

Thanks again, Nick

RSS

© 2026   Created by Ning Developer Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service