A text input for the site visitor to write the message to publish.
3 buttons to publish the message. Each one corresponds to a specific channel. Only site visitors with sufficient permissions can publish to each channel.
The code in this file enables site visitors to publish messages to 1 of 4 channels. The messages are displayed on the site, grouped by channel.
In this file, we:
Defined 4 channels.
Subscribed the site visitor to the channels, and defined that messages should be displayed in the text box corresponding to the specified channel when they are published.
Added onClick event handlers to the Publish buttons that publishes the message entered by the site visitor to the specified channel.
The code in this file enables site visitors to publish messages to 1 of 3 channels:
updatesChannel: All site visitors can publish to this channel.
updatesMembersChannel: Only site members can publish to this channel.
updatesAdminsChannel: Only site admins can publish to this channel.
The messages are displayed on the site, collated by channel.
In this file, we
Defined 3 channels.
Subscribed the site visitor to the channels they have permissions to publish to, and defined that messages should be displayed in the text box when they are published.
Added onClick event handlers to the Publish buttons that publishes the message entered by the site visitor to the channel. The messages aren't published if the site visitor isn't subscribed to the channel.
The code in this file uses a permissions router to define the permissions you want to grant to subscribers on channels.
We defined permissions for the channels used on the Permissions page.
Join the Wix Studio community on Discord, where experienced developers and fellow creators come together to share tips, troubleshoot issues, and collaborate.
Building a coded solution on your own can be challenging. Let an experienced Wix developer build it for you, so you can keep working on your site or business.
Visit the Wix Marketplace to find a trusted developer.