Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

To facilitate users to easily share their favourite content to various social platforms: QQ, Qzone, WeChat, Weibo, etc., thus extending the reach and visibility of the content. These platforms appear as small icons, and users can quickly share links or content by clicking on the buttons. Modules are available in three ways: Will Nice Social Share Block, views global areas (Global: Will Nice Social Share), and template extensions ({{ render_wn_social_share() }}).

Post-Installation

Configure the wn_social_share module:
Configure the Will Nice Events module in "/admin/config/wn-social-share/settings".
Entry 1: Module installation page, accessed by the Configuration link under wn_social_share module;
Entry 2: Manage-Configuration-System-Will Nice Social Share).

Usage:

1.Blocks
After configuration, you can find "Will Nice Social Share Block" in the block layout.
In the block settings, in the "Sharing Content" column, there are two options: "Page" and "Website". If you choose "Page", the url of the page where the block is located will be shared; if you choose "Website", the url of the website will be shared.
2.Views
Provides a view of the global area -- Global: Will Nice Social Share.
3.Template
How to use:
Use {{ render_wn_social_share() }} to render social share template.
This method takes a string parameter to specify the type of address to be shared, when passed "page" it will share the current page url (default), when passed "site" it will share the website url.
Example:
{{ render_wn_social_share('page') }} Share the current page URL.
{{ render_wn_social_share('site') }} Share the current page URL.

用途:

方便用户将自己喜欢的内容轻松分享到各种社交平台: QQ、QQ空间、微信、微博等,从而扩展内容的影响力和可见度。这些平台以小图标的形式出现,用户点击按钮即可快速分享链接或内容。模块提供三种使用方式: Will Nice 社交分享区块、视图全局区域(全局:Will Nice社交分享)和模板扩展({{ render_wn_social_share() }})。

配置wn_social_share模块:

在“/admin/config/wn-social-share/settings”中配置Will Nice Events模块
入口1:模块安装页面,wn_social_share模块下的Configuration链接进入;
入口2:管理-配置-系统-Will Nice社交分享)。

使用方法:

1.区块
配置完成后,可在区块布局中引入"Will Nice Social Share Block"社交分享区块。
区块设置中,"分享内容"一栏有"页面"和"网站"两种选项。如果选择"页面",分享出去的是区块所在页面的URL地址;如果选择"网站",分享出去的则是网站URL地址。
2.视图
提供视图全局区域 Global: Will Nice Social Share。
3.模板
模板引入方法:
使用 {{ render_wn_social_share() }} 即可引入社交分享按钮。
该方法可接收一个字符串参数用于指定分享的地址类型,当传入"page"将分享当前页面地址(默认),传入"site"则分享网站地址。
例:
{{ render_wn_social_share('page') }} 分享当前页面URL;
{{ render_wn_social_share('site') }} 分享当前页面URL。

如您需要额外的技术支持请联系“未来很美(深圳)科技有限公司”

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jul 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.0 Stable Jul 22, 2024