Re: [xwiki-users] I can't download doc and docx files.

2015-10-27 Thread AlexIv
btw, I tried to export the Wiki through xar file (7.2) and import this file
to 7.3. I received "?" instead of Russian-titled pages. See the
screenshot.


 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/I-can-t-download-doc-and-docx-files-tp7596528p7596626.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki as our Intranet

2015-10-27 Thread Clemens Klein-Robbenhaar
Hi Rolf,

for use case 2:

 actually I did not realize that the main wiki:Main.Activity page
still uses my locally adapted "activity" macro ... that is why it worked for 
me, and not for you.

So, it seems we need to get our hands dirty and modify the "activity" Macro:

a) in the subwiki, go to the .../Main/Activity page
b) go to "Edit" -> "Objects"
c) click "Objects of type XWiki.WikiMacroClass
d) this opens several text fields;
   the big field for "Macro code" contains, unsurprisingly, the code for the 
macro
   which makes sure we only see messages from the local wiki.
  Here we need to make some changes:

d1) just at the start:

  {{velocity output=false}}
  ##

 add a line remembering the current wiki, so it looks instead like:

  {{velocity output=false}}
  #set($currentWiki = $xcontext.getDatabase())
  ##


d2) look for the code

 ## Always assume access to messages. For the rest of the documents, check 
access.
 #if 
($pageName.matches(".*:XWiki[.][0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}")
 || ($xwiki.hasAccessLevel('view', $xcontext.user, 
"${xcontext.database}:${pageName}") && 
!$iterationDocuments.contains($pageName)))

  insert five lines of code in between so it looks like:

 ## Always assume access to messages. For the rest of the documents, check 
access.
 #if 
($pageName.matches(".*:XWiki[.][0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}"))
   #set($myWiki = "xwiki")
 #else
   #set($myWiki = $currentWiki)
 #end
 #if 
($pageName.matches(".*:XWiki[.][0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}")
 || ($xwiki.hasAccessLevel('view', $xcontext.user, 
"${xcontext.database}:${pageName}") && 
!$iterationDocuments.contains($pageName)))

what it does: prepares to set the "right" wiki/database: if it is a message, 
look it up in the main wiki (which knows all messages), for all other events, 
stay at the local wiki

d3) look a few lines below for:

  #set ($discard = $subqueryParameters.addAll($filterParameters))
  #set ($events= $xwiki.activitystream.searchEvents("$!whereClause", false, 0, 
0, $subqueryParameters))

   in between them insert a line actually setting the wiki to look up the 
event; it should looks like

 #set ($discard = $subqueryParameters.addAll($filterParameters))
 #set ($discard = $xcontext.setDatabase($myWiki))
 #set ($events= $xwiki.activitystream.searchEvents("$!whereClause", false, 0, 
0, $subqueryParameters))

this actually sets the wiki to the one where the event is looked up.


d4) at the very end replace:

#end
{{/velocity}}

with:

#end
#set($discard =  $xcontext.setDatabase($currentWiki))
{{/velocity}}

this sets the "current wiki" back to the original wiki, just in case (I think 
XWiki does it for you, too, but I prefer to be polite and clean up after myself 
;))

press "Save and View"

If you see horrible, horrible error messages, something went wrong; to back to 
the object editor and try to find the missing " or ),
or use the page history, to get back to the last version before the edit.

If you do not see any error message ... you should see that nothing has 
changed, yet.
That is because by default the activity stream only looks up events for the 
subwiki ... we need to change this, too, but that goes without wild coding

Go to the "Dashboard", edit the page, and edit the Gadget "Activity stream"
Find the input field "wikis", and type in "xwiki,mysubwiki"  (replace mysubwiki 
with the name of the current wiki)

Close the dialog to edit the gadget, save the dashboard, and it should work.


hope it works this time. Sorry, if it is a bit complicated; that is why I did 
not post in my first reply




- Ursprüngliche Nachricht -
From: Rolf Lang
At:  Dienstag, 27.10.2015, 15:03
To: Xwiki Users
Subject: Re: [xwiki-users] xwiki as our Intranet


> Hi Clemens,
> 
> thanks for your advise.
> 
> 1. point
> Works great as you described (ok)
> 
> 
> 2. point "global xwiki send messages should be visible also at local xwiki"
> We follow your recommendations.
> 
> if we use "reference" : xwiki:Main.Activity 
> - we see subWiki Activities (ok)
> - but we miss the main Activities listed here
> 
> If we use a wrong "reference" : xwiki:MainXX.Activity
> - we see a clear error msg on GUI (ok)
> 
> 
> We try to change "administration.users"
> The option 'what kind of users can access the wiki' to
> - only global users
> 
> But it makes no difference.
> 
> 
> Kind regards
> Rolf LANG
> 
> 
> -Ursprüngliche Nachricht-
> Von: users [mailto:users-boun...@xwiki.org] Im Auftrag von Clemens
> Klein-Robbenhaar
> Gesendet: Montag, 26. Oktober 2015 12:37
> An: users@xwiki.org
> Betreff: Re: [xwiki-users] xwiki as our Intranet
> 
> 
>> Hi
>> We like to use the xwiki as our Intranet solution.
>>
>>
>> Currently it's setup as one global xwiki where people find downloads and
> the
>> dashboard.
>> Also each department use a subWiki, which uses local dashboard and infos.
>>
>> Maybe we need some help on howto 

Re: [xwiki-users] xwiki as our Intranet

2015-10-27 Thread Rolf Lang
Hi Clemens,

I like to say thank you for your great support.
We will try it tomorrow.

Kind regards
Rolf

-Ursprüngliche Nachricht-
Von: users [mailto:users-boun...@xwiki.org] Im Auftrag von Clemens
Klein-Robbenhaar
Gesendet: Dienstag, 27. Oktober 2015 17:38
An: users@xwiki.org
Betreff: Re: [xwiki-users] xwiki as our Intranet

Hi Rolf,

for use case 2:

 actually I did not realize that the main wiki:Main.Activity page
still uses my locally adapted "activity" macro ... that is why it worked for
me, and not for you.

So, it seems we need to get our hands dirty and modify the "activity" Macro:

a) in the subwiki, go to the .../Main/Activity page
b) go to "Edit" -> "Objects"
c) click "Objects of type XWiki.WikiMacroClass
d) this opens several text fields;
   the big field for "Macro code" contains, unsurprisingly, the code for the
macro
   which makes sure we only see messages from the local wiki.
  Here we need to make some changes:

d1) just at the start:

  {{velocity output=false}}
  ##

 add a line remembering the current wiki, so it looks instead like:

  {{velocity output=false}}
  #set($currentWiki = $xcontext.getDatabase())
  ##


d2) look for the code

 ## Always assume access to messages. For the rest of the documents, check
access.
 #if
($pageName.matches(".*:XWiki[.][0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{
4}-[0-9a-z]{12}") || ($xwiki.hasAccessLevel('view', $xcontext.user,
"${xcontext.database}:${pageName}") &&
!$iterationDocuments.contains($pageName)))

  insert five lines of code in between so it looks like:

 ## Always assume access to messages. For the rest of the documents, check
access.
 #if
($pageName.matches(".*:XWiki[.][0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{
4}-[0-9a-z]{12}"))
   #set($myWiki = "xwiki")
 #else
   #set($myWiki = $currentWiki)
 #end
 #if
($pageName.matches(".*:XWiki[.][0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{
4}-[0-9a-z]{12}") || ($xwiki.hasAccessLevel('view', $xcontext.user,
"${xcontext.database}:${pageName}") &&
!$iterationDocuments.contains($pageName)))

what it does: prepares to set the "right" wiki/database: if it is a message,
look it up in the main wiki (which knows all messages), for all other
events, stay at the local wiki

d3) look a few lines below for:

  #set ($discard = $subqueryParameters.addAll($filterParameters))
  #set ($events= $xwiki.activitystream.searchEvents("$!whereClause", false,
0, 0, $subqueryParameters))

   in between them insert a line actually setting the wiki to look up the
event; it should looks like

 #set ($discard = $subqueryParameters.addAll($filterParameters))
 #set ($discard = $xcontext.setDatabase($myWiki))
 #set ($events= $xwiki.activitystream.searchEvents("$!whereClause", false,
0, 0, $subqueryParameters))

this actually sets the wiki to the one where the event is looked up.


d4) at the very end replace:

#end
{{/velocity}}

with:

#end
#set($discard =  $xcontext.setDatabase($currentWiki))
{{/velocity}}

this sets the "current wiki" back to the original wiki, just in case (I
think XWiki does it for you, too, but I prefer to be polite and clean up
after myself ;))

press "Save and View"

If you see horrible, horrible error messages, something went wrong; to back
to the object editor and try to find the missing " or ),
or use the page history, to get back to the last version before the edit.

If you do not see any error message ... you should see that nothing has
changed, yet.
That is because by default the activity stream only looks up events for the
subwiki ... we need to change this, too, but that goes without wild coding

Go to the "Dashboard", edit the page, and edit the Gadget "Activity stream"
Find the input field "wikis", and type in "xwiki,mysubwiki"  (replace
mysubwiki with the name of the current wiki)

Close the dialog to edit the gadget, save the dashboard, and it should work.


hope it works this time. Sorry, if it is a bit complicated; that is why I
did not post in my first reply




- Ursprüngliche Nachricht -
From: Rolf Lang
At:  Dienstag, 27.10.2015, 15:03
To: Xwiki Users
Subject: Re: [xwiki-users] xwiki as our Intranet


> Hi Clemens,
> 
> thanks for your advise.
> 
> 1. point
> Works great as you described (ok)
> 
> 
> 2. point "global xwiki send messages should be visible also at local
xwiki"
> We follow your recommendations.
> 
> if we use "reference" : xwiki:Main.Activity 
> - we see subWiki Activities (ok)
> - but we miss the main Activities listed here
> 
> If we use a wrong "reference" : xwiki:MainXX.Activity
> - we see a clear error msg on GUI (ok)
> 
> 
> We try to change "administration.users"
> The option 'what kind of users can access the wiki' to
> - only global users
> 
> But it makes no difference.
> 
> 
> Kind regards
> Rolf LANG
> 
> 
> -Ursprüngliche Nachricht-
> Von: users [mailto:users-boun...@xwiki.org] Im Auftrag von Clemens
> Klein-Robbenhaar
> Gesendet: Montag, 26. Oktober 2015 12:37
> An: users@xwiki.org
> Betreff: Re: [xwiki-users] 

Re: [xwiki-users] I can't download doc and docx files.

2015-10-27 Thread vinc...@massol.net
So your XWiki 7.2 is configured to be RU only?

Thanks
-Vincent

On 27 Oct 2015 at 14:25:08, AlexIv (a.iva...@inostudio.com) wrote:

no, we don't use MULTILINGUAL 

thanks 



-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/I-can-t-download-doc-and-docx-files-tp7596528p7596630.html
 
Sent from the XWiki- Users mailing list archive at Nabble.com. 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users