Following the A Toolbar Button to Compose a Message in Gmail - Discussion - Talk TW (tiddlywiki.org)
Here is a simple viewtoolbar button to open the LinkedIn (assumed you logged in) with content of tiddler in clipboard.
Create a tiddler like:
caption: {{$:/plugins/kookma/tweaks/images/linkedin}} {{$:/language/Buttons/LinkedIn/Caption}}
description: {{$:/language/Buttons/LinkedIn/Hint}}
list-before: $:/core/ui/Buttons/close
tags: $:/tags/ViewToolbar
title: $:/plugins/kookma/tweaks/ui/Buttons/post-linkedin
The tiddler text:
\whitespace trim
\procedure baseLinkedInUrl() http://www.linkedin.com/shareArticle?mini=true
\procedure shareLinkedInActions()
<$action-listops $tiddler=<<currentTiddler>> $tags="[[In LinkedIn]]"/>
<$action-sendmessage $message="tm-copy-to-clipboard" $param={{!!text}} />
<$action-sendmessage $message="tm-open-external-window" $param=<<baseLinkedInUrl>> />
\end
<$button tooltip={{$:/language/Buttons/LinkedIn/Hint}} aria-label={{$:/language/Buttons/LinkedIn/Caption}} class=<<tv-config-toolbar-class>> actions=<<shareLinkedInActions>> >
<%if [<tv-config-toolbar-icons>match[yes]] %>
{{$:/plugins/kookma/tweaks/images/linkedin}}
<%endif%>
<%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text">
<$text text={{$:/language/Buttons/LinkedIn/Caption}}/>
</span>
<%endif%>
</$button>
- LinkedIn URL does not allow passing post title or contnet
- Credits go to @saqimtiaz and @vilc
Please share your solution, improvement here.