uCoz: Размещение нескольких кнопок «Поделиться» или «Мне нравится» на странице
Last modified:
Multiple Share buttons allow your website visitors to share your posts without going to the post page. To do this, place Share buttons into the "Appearance of entries" template to make them look like this:
Here are the steps you need to take:
- Upgrade to the PRO plan
- Create a Share button set
- Place the set code on your website
Create a Share Button Set
Create a new Share button set:
In the settings, scroll down to "Don’t share this page" and check "Use the URL which is different from the page’s one":
In the field that will appear, specify the website domain name and the template variable that takes to the post page: http://example.com$ENTRY_URL$ or https://example.com$ENTRY_URL$. This value will be added into the data-url attribute:
data-url="http://example.com$ENTRY_URL$"
If needed, you can change the value of this attribute in the template. That’s why you don't need to create an individual set for a forum. Just change the value of the data-url attribute to $THREAD_URL$ in the generated code:
data-url="http://example.com$THREAD_URL$"
In the mobile settings, you can also disable mobile version:
Now save the set and copy the received code:
How Do I Place the Set Code on My Website
Open the Control Panel of the website and go to Design -> Design management (templates). On the page that will open, choose the "Appearance of entries" template of the module you want to add the Share buttons to. For example, "Ad Board":
Paste the code you have received (1) and click "Save"(2):
The installation is complete!