Hi XWikiers,
We have written a software specification (SRD) inside our wiki. This
specification is a set of pages with graphics (as attached images) and
mockups (using Balsamiq Mockups).
Now, we want to communicate easily this specification to our external
partner and, of course, they can't access our wiki (intranet only).
Our first idea was to produce a document (PDF). We try to use the PDF export
but it seems that the inclusion of the children pages doesn't work. Other
problem with PDF (with a unique page), the included images don't appear.
Just for info, we are using the last 2.7 release of XWiki.
So, do you have encountered the same need and how did you solve it ? Do
XWord may help ? Other idea ?
Thanks for your response.
Maxime
Hi community,
This Thursday we'd like to do a Bugfixing Day, and everyone is welcome
to participate with bug reporting or patching.
(Sorry, forgot to announce this earlier)
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
Hey all,
the TagCloud macro has a rounding error.
The result is, that the highest occurrence has no value in class attribute and is displayed similar to notPopular.
The following code should solve the problem:
{{velocity}}
##
## tagCloudSpace - the space to display the tag cloud for. If blank, display cloud for the whole wiki. Default is blank.
#set ($tagCloudSpace = $context.macro.params.get('space'))
##
## Configurable popularity levels. You must an even number of levels. Default: 6.
#set ($popularityLevels = ["notPopular", "notVeryPopular", "somewhatPopular", "popular", "veryPopular", "ultraPopular"])
#set ($levelsHalf = $popularityLevels.size() / 2)
##
$xwiki.ssx.use("XWiki.TagCloud")
##
## Get tag count map. Key: tag, value: number of occurrences.
#set ($tagCount = $xwiki.tag.getTagCount("$!tagCloudSpace"))
##
## only build popularity map if at least one tag exists
#if ($tagCount.size() > 0)
##
## Store the minimum and maximum number of occurrences.
#set ($sortedTagCounts = $sorttool.sort($tagCount.values()))
#set ($maxIndex = $sortedTagCounts.size() - 1)
#set ($minCount = $listtool.get($sortedTagCounts, 0))
#set ($maxCount = $listtool.get($sortedTagCounts, $maxIndex))
##
## Calculate the total number of tags in the wiki.
#set ($totalTagNumber = 0)
#foreach ($currentTagCount in $sortedTagCounts)
#set ($totalTagNumber = $totalTagNumber + $currentTagCount)
#end
#set ($countAverage = $mathtool.div($totalTagNumber, $tagCount.size()))
##
## Build popularity map using the difference between minimum maximum tag occurrences counts
## and the average tag occurences count.
#set ($firstHalfIntervalSize = $mathtool.div($mathtool.sub($countAverage, $minCount), $levelsHalf))
#set ($secondHalfIntervalSize = $mathtool.div($mathtool.sub($maxCount, $countAverage), $levelsHalf))
##
## use a sorted map
#set ($popularityMap = $util.getTreeMap())
#set ($previousPopularityMax = $minCount)
#set ($intervalSize = $firstHalfIntervalSize)
#set ($halfPassed = false)
#foreach ($popularityLevel in $popularityLevels)
#if ($velocityCount > $levelsHalf && !$halfPassed)
#set ($intervalSize = $secondHalfIntervalSize)
#set ($halfPassed = true)
#end
#set ($currentPopularityMax = $mathtool.add($previousPopularityMax, $intervalSize))
##
## round the threshold
#set ($threshold = $mathtool.roundTo(1, $currentPopularityMax))
#set ($discard = $popularityMap.put($threshold, $popularityLevel))
#set ($previousPopularityMax = $currentPopularityMax)
#end
#end
##
## Display tag cloud.
{{html}}
#if ($tagCount.size() > 0)
<ol class="tagCloud">
#foreach ($tagEntry in $tagCount.entrySet())
#foreach ($popularityEntry in $popularityMap.entrySet())
#if ($popularityEntry.Key >= $tagEntry.Value)
#set ($liClass = $popularityEntry.Value)
#break
#end
#end
<li class="$liClass">
<a class="tag" href="$xwiki.getURL("Main.Tags", "view", "do=viewTag&tag=$escapetool.url($tagEntry.Key)")" title="$msg.get("xe.tag.tooltip", ["$tagEntry.Value"])">$escapetool.xml($tagEntry.Key)</a>
</li>
#end
</ol>
#else
#if("$!tagCloudSpace" == "")
$msg.get("xe.tag.notags")
#else
$msg.get("xe.tag.notagsforspace", ["$tagCloudSpace"])
#end
#end
{{/html}}
{{/velocity}}
best regards
Jörg
Ok, I'm not sure what happened, but previously I was able to create a new
Topic and post to that topic. Now, even as an admin, when I try to create a
new Topic I get messages like the following in the Tomcat stdout log:
WARN internal.DefaultVelocityEngine - Deprecated usage of getter
[com.xpn.xwiki.api.XWiki.getArrayList] in xwiki:BulletinBoard.CTAs@126,29
WARN internal.DefaultVelocityEngine - Deprecated usage of getter
[com.xpn.xwiki.api.XWiki.getArrayList] in
xwiki:BulletinBoard.TestCategory@126,29
I had also gotten a similar message when I tried to reply to a post in a
topic I had already created, but I forgot to capture the message right after
it happened, and so I'm not sure which of the messages in the log came from
that. I also deleted that topic trying to see if I could create another to
fix the problem, but no dice.
I would have thought this might have come from using a newer version of XWiki
than BulletinBoard expects, but I don't see any documentation saying that it
needs an older version, and I'm pretty sure I installed this plugin after I
upgraded to 2.7.
Can anyone give me a hand here? I'm working on a tight deadline, and had
this working before. I need it working again quickly.
Thanks,
Lenny
Hi,
We are currently using LDAP for authentication and configured it so
the users profile page gets updated with the latest information from
our Active Directory. This results in the Recently Modified panel
mainly listing user profile pages instead of regular pages.
I would like to modify the Recently Modified Panel, so it excludes the
above mentioned profile pages. Is there a simple way to distinguish a
profile page from any other page?
Thanks,
Alex Jakobsen
Hi Peter,
is Glassfish capable of serving a proxy address (like Tomcat) to the
application? This would be address and port Zeus presents to the
clients.
The approach of changing the xwixik.cfg would make the hostname and
port differ from the ones Glassfish expects and is using. That leads
to problems.
Sorry, don't know a thing about Glassfish but possibly it helps finding
a solution.
Best wishes
Werner Greßhoff
Am 07.02.2011 07:31, schrieb peter evans:
>
> Webserver Zeus
> Javaserver Glassfish v3
> Database mysql but who's checking.
> Xwiki 2.7 (Also verified something similar in 3.0 M1)
>
> Glassfish lives on localhost:8080
> Zeus gateways http://MYSITE/xwiki --> localhost:8080
> Within reason, Zeus is fully capable of re-writing most stuff to match, URLS, cookies
>
> So, what xwiki.cfg etc should I be setting to make generated URLs reflect the
> external address rather than internal.
>
> xwiki.home alone does not seem sufficient.
>
>
> Also, with this setup, besides the stuff below, activation emails are:
>
> Subject: Validate your account on localhost:8080
>
> In order to activate your account, please follow this link:
> http://localhost:8080/xwiki/bin/XWiki/AccountValidation?validkey=GtQZK8lZf7…
>
> Which suggests $xwiki.getDocument("Main.WebHome").getExternalURL()
>
>
> Gruesome details below.
> ------------------------------------------------------------------------------------------
> Some stuff isn't getting converted:
>
> for example: http://MYSITE/xwiki/ --> /xwiki/bin/view/Main/
> where in the log-in corner, we have:
> <input name="xredirect" type="hidden" value="http://localhost:8080/xwiki/bin/Blog/Test"/>
>
> This is present pretty much everywhere.
>
> click on log-in
>
> <input name="xredirect" type="hidden" value="http://localhost:8080/xwiki/bin/view/Main/"/>
>
> Successfully logged in, now we have:
>
> <a class="tme" href="/xwiki/bin/logout/XWiki/XWikiLogout?xredirect=http%3A%2F%2Flocalhost%3A8080%2Fxwiki%2Fbin%2Fview%2FMain%2F" fire="function(){var M=D([this],arguments);
> return L.apply(null,M)
> }" observe="function(){var M=D([this],arguments);
> return L.apply(null,M)
> ... LOTS ...
> }">
>
> Go to the blog page:
>
> the "tme" above is present everywhere.
>
>
> If I set the user to use "wysiwyg" editor, then attempt to create a blog entry.
>
> Both "content" and "summary" are stuck with the spinner. Searching for localhost gives me:
>
>
> <script type="text/javascript" fire="function(){var M=D([this],arguments);
> return L.apply(null,M)
> ............................ LOTS .............
> return L.apply(null,M)
> }" _extendedByPrototype="function(){}">//<![CDATA[ var cancelEditNextOnunload; var cancelCancelEditFlag = true; var lockEditFlag = false; function cancelEditResponse(){ } function cancelEdit(){ if (cancelCancelEditFlag) { var surl = "http://localhost:8080/xwiki/bin/cancel/Blog/Test+2?ajax=1"; var myAjax = new Ajax.Request( surl, { method: 'get', parameters: "", asynchronous: true, discardResponse: true }); cancelCancelEditFlag = false; } if (cancelEditNextOnunload!=null) cancelEditNextOnunload(); } function lockEdit(){ if (lockEditFlag==false) { var surl = "http://localhost:8080/xwiki/bin/lock/Blog/Test+2?action=inline&ajax=1&"; var myAjax = new Ajax.Request( surl, { method: 'get', parameters: ""
, asynchronous: true }); lockEditFlag = false; } } function prepareCancelEdit() { lockEdit(); } function cancelCancelEdit() { cancelCancelEditFlag = false; } Event.observe(window, "unload", cancelEdit); Event.observe(window, "pagehide", cancelEdit); Event.observe(document, "dom:loaded", prepareCancelEdit); // ]]></script>
>
>
> plus "tme" as above.
>
> <script type="text/javascript">//<![CDATA[ var wysiwygConfigck21 = { syntax: 'xwiki\/2.0' ,cacheId: 'wysiwygCachetgAm' ,toolbar: 'bold italic underline strikethrough | subscript superscript | unorderedlist orderedlist | outdent indent | undo redo | format | hr symbol | paste' ,plugins: 'submit line separator embed text valign list indent history format symbol link image table macro import' ,page: 'Test 2' ,menu: 'link image table macro import' ,convertInput: 'true' ,hookId: 'Blog.BlogPostClass_0_content' ,wiki: 'xwiki' ,space: 'Blog' ,inputURL: 'http:\/\/localhost:8080\/xwiki\/bin\/edit\/Blog\/Test+2?xpage=wysiwyginput&token=-rFMYvcXF-BBWUwe3qaVXg' }; //]]></script>
>
> <script type="text/javascript">//<![CDATA[ var wysiwygConfigck21 = { syntax: 'xwiki\/2.0' ,cacheId: 'wysiwygCachetgAm' ,toolbar: 'bold italic underline strikethrough | subscript superscript | unorderedlist orderedlist | outdent indent | undo redo | format | hr symbol | paste' ,plugins: 'submit line separator embed text valign list indent history format symbol link image table macro import' ,page: 'Test 2' ,menu: 'link image table macro import' ,convertInput: 'true' ,hookId: 'Blog.BlogPostClass_0_content' ,wiki: 'xwiki' ,space: 'Blog' ,inputURL: 'http:\/\/localhost:8080\/xwiki\/bin\/edit\/Blog\/Test+2?xpage=wysiwyginput&token=-rFMYvcXF-BBWUwe3qaVXg' }; //]]></script>
>
>
>
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
Hi,
I'm using livetable component with the _actions column and noticed a peculiar behavior depending on the user
rights.
When user doesn't have admin right for the space which contain the table and displaying objects the _actions
column disappears from the table but still user is able to edit/delete the pages displayed by the livetable
( using the xwiki menus ).
When I grant him admin right the column appears.
My code is:
#set($columns = ["a","b","c","d","_actions"])
#set($columnsProperties = {
"a" : { "displayName" : "A", "type" : "text" },
"b" : { "type" : "text", "link" : "view", "html" : "true", "sortable":true, "displayName" : "B" },
"c" : { "displayName" : "C", "type" : "text" },
"d" : { "displayName" : "D", "type" : "text" },
"_actions" : {"actions": ["edit","delete"], "displayName" : "E"}
})
#set($options = {
"resultPage":"IPR.IPREntryClassJSON",
"rowCount": 20
})
#livetable("userdirectory1" $columns $columnsProperties $options)
In my opinion, there is an inconsistency in the livetable behavior. I can edit/delete my document manually
but livetable prevents from displaying the action column at the same time with the same privileges for the
user.
Any thoughts on that ?
Thanks,
Piotr
First of all I want say Hello to all the community.
I'm newbie of XWiki and wiki in general; I'm trying to start a enterprise
wiki and I choose XWiki after many consideration.
To create a clean and organized wiki I want give to the users the
possibility of create page starting from some template.
Previously, I use PbWiki and this platform offer some template by default,
like:
- blank template
- meeting (to schedule meetings)
- press release
- project
- to do list
and so on.
I have see the
http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateADocumentTemplate LINK
that explain that purpose, but what I want to do is offer to the users a
choice from a list of templates to start from.
Have you some help to me?
Thank you
--
View this message in context: http://n2.nabble.com/Create-document-from-many-template-tp2424398p2424398.h…
Sent from the XWiki- Users mailing list archive at Nabble.com.
When I create a live table and some of the objects shown have empty
values, the table shows: "emptyvalue" for those fields. In the
documentation I can't find a way to make a nicer presentation (e.g.
show "-" or just a blank field). Does someone have a solution for
replacing the word "emptyvalue", preferably per livetable settings?
I've written an example:
https://wiki.noiv.nl/xwiki/bin/view/Sandbox/ClassBugsLivetable