Changes for page Twitter User Feed Macro
Last modified by Ludovic Dubost on 2023/04/25 09:12
From version 1.1
edited by Ludovic Dubost
on 2016/05/26 18:54
on 2016/05/26 18:54
Change comment:
There is no comment for this version
To version 5.1
edited by Ludovic Dubost
on 2016/05/26 18:57
on 2016/05/26 18:57
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
-
Objects (1 modified, 1 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,0 +1,1 @@ 1 +Twitter User Feed Macro - Syntax
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki 1.01 +XWiki 2.1 - Content
-
... ... @@ -1,0 +1,8 @@ 1 +This macro displays a twitter user feed: 2 + 3 +{{code}} 4 +{{twitter_user user="ldubost" /}} 5 +{{/code}} 6 + 7 +{{twitter_user user="ldubost" /}} 8 +
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,0 +1,5 @@ 1 +{{html clean=false}} 2 +#set($user = $xcontext.macro.params.user) 3 +<a class="twitter-timeline" href="https://twitter.com/${user}" data-widget-id="">Tweets de @${user}</a> 4 +<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> 5 +{{/html}} - Macro content availability
-
... ... @@ -1,0 +1,1 @@ 1 +Mandatory - Macro id
-
... ... @@ -1,0 +1,1 @@ 1 +twitter_user - Macro name
-
... ... @@ -1,0 +1,1 @@ 1 +Twitter User Feed - Macro visibility
-
... ... @@ -1,0 +1,1 @@ 1 +Current Wiki
- XWiki.WikiMacroParameterClass[0]
-
- Parameter mandatory
-
... ... @@ -1,0 +1,1 @@ 1 +Yes - Parameter name
-
... ... @@ -1,0 +1,1 @@ 1 +user