The SocialBar server control lets users of a community Web site bookmark colleagues, community groups, and content. The following table explains the details.
Item being bookmarked |
Description |
---|---|
Users |
|
Group |
|
Content |
Add or remove content and URLs from a user’s Favorites. See Also: Favorites Server Control |
The Social Bar control also is used to bookmark Web pages with Social Bookmarking services, such as Digg.com or del.icio.us. By default, Digg.com and del.icio.us are loaded in the Items
property of the server control.
In addition, the Social Bar control can print or email a Web page, and invite non-site users to become members of the site. Clicking Invite links to a Web page that hosts the Invite server control. See Also: Invite Server Control.
You can let users add a Web page’s URL to their Favorites when they click Add to Favorites on the Social Bar. Typically, you would do this if more than one content item appears on a Web page, but you want only one Social Bar control on the page.
DefaultObjectID
property to 0 (zero).DynamicObjectParameter
property blank.Items
property to the Addto item property.ObjectType
property to Content.The image below shows a Web page with several content items. A Social Bar control is associated with each one. In this example, when a you click Add to Favorites, you add the associated content item to your Favorites.
In the second image, one Social Bar appears on the Web page with several content items. In this example, if you click Add to Favorites on the Social Bar, you add the Web page’s URL to your Favorites.
See Also: Adding a URL to Your Favorites
You can send private messages to another user or the community group administrator from the Social Bar control.
ObjectType
property to User or Group.Items
property.PrivateMessageUser
to let a user send a message to the user whose profile is being viewed. PrivateMessageAdmin
to let a user send a message to the group administrator.MessagingUrl
property, identify a page that contains the Messaging server control. See Also: Messaging Server ControlDynamicObjectParameter
is set, if necessary.You can let site visitors use Twitter to tweet their current browsing location by adding the Twitter item to the list of parameters in the SocialBar’s Items
property. After the item is added, a Twitter icon and link appear in the Social Bar. When you click the link, Twitter is launched. After you log into your Twitter account, your current browsing location appears in the “What are you doing?” status box. You then can click Twitter’s Update button to post the status.
DefaultObjectID
property is set to 0 (zero).DynamicObjectParameter
property blank.Items
property.ObjectType
property to Content, User or Group, depending on the type of page you are editing.The following are Ektron-specific server control properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that the server control’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The default object ID for this control to use when there is no matching dynamic parameter value passed. If you set this property set to 0 (zero) and leave the DynamicObjectParameter blank, the social bar can be used to add Web pages to your favorites.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a object ID dynamically. To use the default object ID, leave blank.
Hides or displays the output of the control in design time and run time.
Select whether icons are displayed next to each item.
The URL to the Invite server control’s Web page. Two variables used within the URL.
The link must have both variables. The Web form can be relative or absolute. Below is an example.
invitepage.aspx?id={0}&type={1}
A comma separated list of items that you want to appear on the Social Bar.
WARNING! For the Invite item to be active, you must enter a link to the page hosting the Invite control into the InviteURL
property.
Digg.com
, a social bookmarking service.del.icio.us
, a social bookmarking service.Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkML file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Output with Ektron Markup LanguageControlling Output with Ektron Markup Language
The Web page that hosts the Messaging server control. This property is used when either PrivateMessageUser
or PrivateMessageAdmin
appears in the Items property.
If a value appears in the ek_RedirectFromLoginKeyName
key in the web.config
file, the user is returned to the original URL after sending the message. By default, this value is RedirectUrl
. If you remove this value and do not add another, the person sending a message sees a note stating “Your message has been sent.”
The type of object to which this control is assigned. Choices are:
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
WARNING! If you enter a valid EkML file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.