Adding Navigation Tab Items

From Weever Apps API
Jump to: navigation, search

To add a navigation tab item you must pass app=ajax and m=add_tab in your query to our API. For details on adding each type of content, see below.

Contents

Adding Website Content

Add a Blog

Required Variables Values
component "blog"
type "blog"
name Name of the blog in the app.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
cms_feed An url to the R3S feed for the blog.

Add a Static Web Page

Required Variables Values
component "page"
type "page"
name Name of the page in the app.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
cms_feed An url to the R3S output for the page.
var An url to a thumbnail image for the content.

Add Content to a Directory Tab

Required Variables Values
component "directory"
type "directory"
name Name of the category of content being added.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
cms_feed An url to the R3S feed for the content list.
var An url to a thumbnail image or icon for the category.

Add a Static Page to the Welcome Panel

Required Variables Values
component "panel"
type "panel"
name Name for the page in the app.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
cms_feed An url to the R3S object for the content.

Add a Static Page to the About App Panel

Required Variables Values
component "panel"
type "panel"
name Name for the page in the app.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
cms_feed An url to the R3S object for the content.

Add Content to a Map

Required Variables Values
component "map"
type "map"
name Name of the category of content being added.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
cms_feed An url to the geo-tagged R3S feed for the content list.

Adding Content from Social Networks

The following are details on what data you need to send the Weever server to add third-party services such as Twitter, Facebook, Flickr, and more.

Add a Twitter Search Term

Required Variables Values
component "twitter"
type "social"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour A string containing the search term.

Add a Twitter User Stream

Required Variables Values
component "twitteruser"
type "social"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour A string containing the username (@ symbol optional).

Add an Identi.ca Search Term

Required Variables Values
component "identi.ca"
type "social"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour A string containing the search term.

Add a Facebook Page Wall/Stream

Required Variables Values
component "facebook"
type "social"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour The url to the Facebook page or profile.

Adding Photos from Photo Hosting Services

Adding all public Flickr Photosets from user

Required Variables Values
component "flickr.photosets"
type "photo"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour The url to the Flickr user's page OR the Flickr Account NSID.

Adding latest public photos posted to Flickr from user

Required Variables Values
component "flickr"
type "photo"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour The url to the Flickr user's page OR the Flickr Account NSID.

Adding all public Picasa Albums from user

Required Variables Values
component "google.picasa"
type "photo"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour The url to the Picasa user's profile OR the associated email address.

Adding all public Facebook Albums from page or profile

Required Variables Values
component "facebook.photos"
type "photo"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour The url to the Facebook page or profile.

Adding all public Foursquare venue photos

Required Variables Values
component "foursquare"
type "photo"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour The url to the venue on FourSquare.com.

Adding Video from Video Hosting Services

Adding all public YouTube videos from a user/channel

Required Variables Values
component "youtube"
type "video"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour The url to user on YouTube.com.

Adding all public YouTube videos from a playlist

Required Variables Values
component "youtube.playlists"
type "video"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour The url to playlist on YouTube.com, or the ID code of the playlist.

Adding all public Vimeo videos from a user or channel

Required Variables Values
component "vimeo"
type "video"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour The url to user or channel on Vimeo.com.

Adding Forms from Form Building Services

Adding all active forms from a Wufoo account

NOTE: Forms using the "likert"-style form element or file uploads will not work correctly in the app. Avoid using these for mobile forms.

Required Variables Values
component "wufoo"
type "form"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour The url to the Wufoo account.
var The user's Wufoo API key.

Adding Contact Info

Adding a contact

Required Variables Values
component "contact"
type "contact"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
var A JSON object with the below variables set:
telephone A telephone number.
email_to The email address the contact can be reached at.
name The name of the contact.
address The street address of the contact.
town The town of the contact.
state The state, province, or territory of the contact.
country The country of the contact.
emailform 1: Use an email form rather than exposing the email address

0: Link directly to the email address (opens the user's email app)

googlemaps 1: Link the address to Google Maps, display a static map of the surrounding area

0: Do not link to or display a Google Map

image An url to an image of the contact.
misc Extra information in html format, that will be displayed underneath the contact info.

Adding Events from Calendar Services

Adding a public Google Calendar

Required Variables Values
component "google.calendar"
type "calendar"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour The Google Calendar ID (either the user's email address or a special complex-looking email address assigned to the calendar under Calendar Settings).

Adding upcoming public Facebook Events from page or profile

Required Variables Values
component "facebook.events"
type "calendar"
name Name for what you want to call this search tab.
published A 1 or 0 for published or unpublished.
ordering A value to indicate where to insert the new item in the existing order. 0 will insert it first, and decimals are allowed to insert between existing items.
component_behaviour The url to the Facebook page or profile.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox