- Overview
- The available actions
- Preset actions
- Specific actions
- Special case: sharing on social networks
- Action destination
Choosing the action associated with the link
You can associate an action with the link regardless of the type of link. WEBDEV offers the most common actions in the general tab of the control description window. For more specific actions, click "More options". In any case, you will have to define the destination of this action. Preset actions Several preset actions are proposed by default in a drop-down list box. These preset actions depend on the elements in the page or project. For example, you can choose to: - execute the click code of a Link control (browser code or server and browser code),
- display a page of the site,
- display a page from another site,
- perform a custom action (send an email, call a phone number, connect to an FTP server, download a file, etc.). In this case, different parameters can be specified.
Caution: The actions are performed after the link click code (browser and server code) Specific actions The "More options" link shows more options. You can for example: - do an action on another control,
- set the position on one of the page anchors,
- share a social network,
- change current language
- send the value of the page controls to ... a page or a script. For example, this option can be used to process the content of a form in a static site.
Remark: All these operations can also be performed in the code. Special case: sharing on social networks The "Share on a social network" action is used to create a link allowing you to share the current page, the current domain or a specific URL on a social network. This action can also be performed via the Social Network control. Remark: Using a button, a link or a clickable image allows you to entirely configure the style used (however, we advise you to comply with the license agreements of the different social networks). The Social Network control has advanced settings (e.g., display the number of shares, etc.). The table below presents the information used for each social network: | | | Social Network | Shared element | Effect |
---|
Facebook | The domain | Creates on the Facebook wall of connected Web user a link to the domain of current site. Caution: A default index page must exist on the hosting server. | | The page | Creates on the Facebook wall of connected Web user a link to the page of current site. | | Custom target | The URL must be typed in the "Target URL" control. Case 1: URL of a Facebook page: - Increments the counter of Facebook page that was liked.
- Creates a favorite on the Facebook wall of connected Web user.
Case 2: URL of any page or site: Creates on the Facebook wall of connected Web user a link to the specified page or site. | Twitter | The domain | Creates on the Twitter wall of connected Web user a message containing a link to the domain of current site. | | The page | Creates on the Twitter wall of connected Web user a message containing a link to the page of current site. | | Custom target | The URL must be typed in the "Target URL" control. Creates on the Twitter wall of connected Web user a message containing a link to the specified URL. | LinkedIn | The domain | Creates a post on the news of connected LinkedIn profile with a link on the domain. Caution: A default index page must exist on the hosting server. | | The page | Creates a post on the news of connected LinkedIn profile with a link on the page. | | Custom target | Creates a post on the news of connected LinkedIn profile with a custom link. The URL of the link to be sent must be entered in the "Target URL" control. | Tumblr | The domain | Creates on the Tumblr wall of connected Web user a message containing a link to the domain of current site. | | The page | Creates on the Tumblr wall of connected Web user a message containing a link to the page of current site. | | Custom target | The URL must be typed in the "Target URL" control. Creates on the Tumblr wall of connected Web user a message containing a link to the specified URL. | New in version 28WhatsApp | The page | Creates a WhatsApp message containing a link to the Page of the current site. | | Custom target | The URL must be typed in the "Target URL" control. Creates a WhatsApp message with a link to the specified URL. |
The "Destination" field is used to select the display mode of the connection and input window on the social network. If no destination is chosen for the action, the action is performed in the default destination defined for the current page. The available targets for an action performed on a link are: | | New browser (_blank): Displays the result in a new window of the browser. | | Current frame (_self): Displays the result in the same frame. | | Parent frame (_parent): Displays the result in the parent frame (case of nested framesets). | | Current browser (_top): Displays the result in the current page of the browser (without frames). | | Other frames of the frameset (if the page belongs to a frameset): Displays the result in a specific frame. | | iFrame control of the page (if the page contains at least one iFrame control): Displays the result in an iFrame control. | |
|
|
|
|