Sidehistorik
Hide children |
---|
Here are different User Macros that I have made, ripped off, copied and changed/customized.
Some are just ready, and some are raw or pure samples. Find several good ones also at Shared User Macros
Feel free to contact me at bnp@mos-eisley.dk for questions or advice.
My User Macro categories:
UI Children |
---|
Small programming Tips
Random number:
$action.dateFormatter.calendar.timeInMillis
Links
- http://confluence.atlassian.com/display/DOC/Writing+User+Macros
- http://confluence.atlassian.com/display/DOC/Guide+to+User+Macro+Templates
- https://developer.atlassian.com/display/CONFDEV/Confluence+Objects+Accessible+From+Velocity
- http://confluence.atlassian.com/display/DOC/Examples+of+User+Macros
- http://confluence.atlassian.com/display/DISC/Shared+User+Macros
- http://velocity.apache.org/
- Confluence List Space Administrators User Macro
- Confluence
- Confluence User Macros
- Confluence Objects Accessible from Velocity
- Confluence API – Space
- Confluence API – SpacePermission
- Confluence API – UserAccessor
- http://blog.networkedcollaboration.com/category/atlassian/
Macro Guide
See my Macro Guide
Indholdsfortegnelse |
---|
Google Analytics
Kodeblok |
---|
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-10804579-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
</script>
|
Facebook like Button
Exkluder "&layout=button_count" for at få mere text med
Kodeblok |
---|
<script language="JavaScript" type="text/javascript">// <![CDATA[
{
document.write('<iframe src="http://www.facebook.com/plugins/like.php?href='+location.href+'&layout=button_count" frameborder="0" scrolling="no" width="100%" height="62px" allowtransparency="true" style="height: 62px; width: 100%;"></iframe>');
}
// ]]></script>
|
Image lightbox med Confluence style
Der blive resized on the fly, så det er en langsom metode
Kodeblok |
---|
## @param path:title=Status\|type=string\|required=true\|desc=Status to display
## @param image:title=Status\|type=string\|required=true\|desc=Status to display
## @param group:title=Status\|type=string\|required=true\|desc=Status to display
<a href="/images/${parampath}thumbs/800pxHigh/${paramimage}" class="confluence-thumbnail-link" title="${paramimage}"><img src="/images/${parampath}thumbs/200pxHigh/${paramimage}"></a>
|
Slimbox2 inkludering
Slimbox JS og Jquery skal hentes fra http://www.digitalia.be/software/slimbox2 og ligger i f.eks /opt/confluence/confluence/slimbox
Kodeblok |
---|
<script type="text/javascript" src="/slimbox/js/jquery.js"></script>
<script type="text/javascript" src="/slimbox/js/slimbox2.js"></script>
<link rel="stylesheet" href="/slimbox/css/slimbox2.css" type="text/css" media="screen" />
|
Slimbox2 lightbox for images
Kræver "Slimbox2 inkludering" også
...