ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Social Network control
  • Overview of the Social Network control
  • Creating a Social Network control
  • Characteristics of the Social Network control
  • Event handled by default
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview of the Social Network control
The "Social network" control is a toolbar containing icons used to establish the link to the main social networks of the Web:
  • Facebook,
  • Tweeter,
  • Linkedln,
  • Tumblr,
  • Pinterest.
  • Instagram.
  • TikTok.
  • WhatsApp.
In most cases, this control is inserted into a site or on the side of an article.
This control allows the Web user to perform two types of actions:
  • Share his experience with the community of his social network.
  • Evaluate a page or a site via the "I like" feature of Facebook or the "+1" feature of Google+.
Remark: The Social Network control is not available for Ajax and browser loopers. The Social Network control is available for standard loopers only.
Creating a Social Network control
To create a Social Network control:
  1. On the "Creation" tab, in the "Integration" group, expand "Social networks" and select the desired social network.
  2. Click where you want to create the control in the page. The control appears in the editor.
To display the characteristics of the control:
  1. Select the control corresponding to the social network you want.
  2. Select "Description" in the control popup menu.
Remark: To create a "WhatsApp" Social Network control:
  1. Directly click "Social networks".
  2. Click where you want to create the control in the page.
  3. Select the type of social network in the control description window.
Characteristics of the Social Network control
The "General" tab of the control description is used to define:
  • The type of link to display. One or more types of buttons can be displayed for each social network:
  • The target of the action on the social network. This target can be:
    • the domain. A click on the Social Network control will create a link to the actual domain of the current site.
    • the site. A click on the Social Network control will create a link to the current site (which means the current address without the name of the page).
    • the current page. A click on the Social Network control will create a link to the current page of the WEBDEV site. If the WEBDEV site is a dynamic site, the link will be performed toward the domain.
    • a custom target. A click on the Social Network control will create a link to a site other than the current site. This site can be specified in the "URL or target account" control.
      For more details, see Available targets for each type of link.
  • Target URL: URL address to use when the target is customized (for a "Tweeter" link for example).
  • Target account: Address of the account to use when the target is customized (for a "Follow" link for example).
    For more details, see Available targets for each type of link.
Depending on the type of link, you have the ability to:
  • Use the native button recommended by the social network. In this case, some options can be configured:
    • Show number of shares in a tooltip: If this option is checked, the number of shares will be displayed in a tooltip beside the Social Network control.
    • Ask the social network to be displayed in the current language of the page: If this option is checked, the button characteristics will be displayed in the page language (for example, the caption of "Recommend" button will be automatically translated).
  • Use a custom image link. In this case, all you have to do is select the image to use.
    Caution: You must comply with the use conditions of social networks, especially the restrictions regarding the images in the links that direct to their services. Use the official images supplied by the sites.
Event handled by default
WEBDEV handles the following event by default:
EventRuntime condition
Initializing (Server code)Executed when the page is opened.
Related Examples:
Photo_Gallery Complete examples (WEBDEV): Photo_Gallery
[ + ] This example is a photo gallery site and is composed of 2 main parts:
- the "visitor" part, developed in Active WEBDEV Page mode and SEO-compatible.
- the administration part, secured and developed in standard WEBDEV mode.  
 
These are some of the available features:
- organize photos via albums
- include links to social networks
- enable users to comment on posts
- user login via WEBDEV'S GPU
- contact form
- ability to upload, describe, and classify photos via albums on the administration side
Minimum version required
  • Version 18
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help