admin:online-platform-cms:twitter-integration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
admin:online-platform-cms:twitter-integration [2021/03/08 11:58] – created marius-viliokaitisadmin:online-platform-cms:twitter-integration [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 10: Line 10:
 <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
 </code> </code>
-You need only the first part.+Copy that code you will need to add it. 
 + 
 +{{:admin:online-platform-cms:generated-code-twitter.jpg|}}
  
 **2. Add to CMS:** **2. Add to CMS:**
   * Create or Edit CMS page and add first line from generated code to page content.   * Create or Edit CMS page and add first line from generated code to page content.
 +**Note:** You will need to add this code in HTML mode (by clicking <>)
 +
 +{{:admin:online-platform-cms:add-twitter-code.jpg|}}
  
 **3. Add Scripts:** **3. Add Scripts:**
Line 32: Line 37:
 }); });
 </code> </code>
-When CMS page is loaded it fires event //cmsPageLoaded//. This code catches that event, checks if twitter class is present and loads widget.+{{:admin:online-platform-cms:updated-scripts.jpg|}}
  
-**Note:** checked class should be same as provided in generated code 
  • admin/online-platform-cms/twitter-integration.1615204703.txt.gz
  • Last modified: 2021/03/08 11:58
  • (external edit)