[xwiki-users] Making Changes to the Editor

2016-02-19 Thread Jesse Bright
I am looking to modify the editor in two ways:

1) I would like to change the default editor to the new CKEditor per these 
instructions: 
http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration#HReplacetheDefaultEditor
 I get stuck at: "In order to open the CKEditor by default (i.e. replace the 
default editor) you can edit the CKEditor.EditMenuEntry page in Objects mode..."

2) I would like to change the “Is Minor Edit” to checked by default and these 
are the only instructions I can find: 
http://lists.xwiki.org/pipermail/users/2009-August/012857.html I can locate 
many files in the /usr/lib/xwiki/templates folder that start with the word 
‘edit’ but none of them are ‘editactions.vm’.

I am sorry if these are two totally different questions but they both seem to 
be related, as in each case I am unable to find the avenue for changing the 
default editor behavior. Thanks for your time.

Regards,

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


[xwiki-users] All links are shown as "WebHome"

2016-02-19 Thread tskala
I'm a bit desperate. We have newly installed XWiki (Enterprise
8.0-milestone-1) and I'm trying to get familiar with very basic page
editing. 

For some reason every single link like [[whatever]] shows "WebHome" as a
text. I need to use [[whatever>>whatever]] with all links to show what it
actually is. It doesn't act like that on xwiki playground (or any other
wiki) so I don't know what could be wrong.

A steps I do: 
1) open: http://url.com/view/NET/String/
2) click edit > Source
3) write: [[Number]] 
4) Save and View
5) and I see "WebHome(?)" with link
http://url.com/create/NET/Number/WebHome?parent=NET.String.WebHome
6) after click and template selection it creates new page, which look ok, I
save that one
7) and the original link shows now as "WebHome" with link
http://url.com/view/NET/Number/

So.. how can I convince it to actually show "Number" instead of "WebHome"
without writing [[Number>>Number]] every single time? 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/All-links-are-shown-as-WebHome-tp7598043.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


[xwiki-users] Mailto: Extension

2016-02-19 Thread jsp...@emdinc.com
I am looking for an extension that adds div.xcontent as the body of an email
but populates it in an outlook message rather than sending from xwiki.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Mailto-Extension-tp7598041.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] Comments on WYSIWYG editor

2016-02-19 Thread vinc...@massol.net
Hi,

On 19 Feb 2016 at 16:12:04, Bruno 
(bruno.joffr...@ec-nantes.fr(mailto:bruno.joffr...@ec-nantes.fr)) wrote:

>  
> Hello,
>  
> Let me share with you my comments about the WYSIWYG editor :

Which one?

FYI, we just released version 1.2 of the CKEditor integration, see:
http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration#Hv1.2

> * when inserting tables, borders are hardly visible. Internal and
> external borders, 1 pixel solid would be more visible
> * same thing with the horizontal ruler that is invisible :-(
> * lists are not flexible. For example, if I insert code or contents of
> a configuration file under a 2nd or 3rd level bullet, I can't take
> back my list after this insertion at the same level. I can't do that :
> o XWiki setup :
> + code :
>  
> apt-get update
> apt-get clean
> apt-get install xwiki-enterprise-tomcat8-mysql
>  
> + during the installation, let dbconfig take care of the MySQL
> configuration
> * a box to highlight code or file configuration content in monospace
> and background-color will be great ! Like that :
>  
> # We need a workers file exactly once
> # and in the global server
> JkWorkersFile /etc/libapache2-mod-jk/workers.properties
>  
> # Our JK error log
> # You can (and should) use rotatelogs here
> JkLogFile /var/log/apache2/mod_jk.log
>  
> # Our JK log level (trace,debug,info,warn,error)
> JkLogLevel info
>  
> # Our JK shared memory file
> JkShmFile /var/log/apache2/jk-runtime-status
>  
> * or that :
>  
> jdbc:mysql://localhost/xwiki
> xwiki
> MOT.DE.PASSE
> com.mysql.jdbc.Driver
> org.hibernate.dialect.MySQL5InnoDBDialect
> true
> 20
> 

I’ll let Marius comment on those, thanks for the feedback!

-Vincent

> Thank you for your excellent work !
> Bruno Joffredo

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


[xwiki-users] Comments on WYSIWYG editor

2016-02-19 Thread Bruno


Hello,

Let me share with you my comments about the WYSIWYG editor :

 * when inserting tables, borders are hardly visible. Internal and
   external borders, 1 pixel solid would be more visible
 * same thing with the horizontal ruler that is invisible :-(
 * lists are not flexible. For example, if I insert code or contents of
   a configuration file under a 2nd or 3rd level bullet, I can't take
   back my list after this insertion at the same level. I can't do that :
 o XWiki setup :
 + code :

   apt-get update
   apt-get clean
   apt-get install xwiki-enterprise-tomcat8-mysql

 + during the installation, let dbconfig take care of the MySQL
   configuration
 * a box to highlight code or file configuration content in monospace
   and background-color will be great ! Like that :

# We need a workers file exactly once
# and in the global server
JkWorkersFile /etc/libapache2-mod-jk/workers.properties
 
# Our JK error log

# You can (and should) use rotatelogs here
JkLogFile /var/log/apache2/mod_jk.log
 
# Our JK log level (trace,debug,info,warn,error)

JkLogLevel info
 
# Our JK shared memory file

JkShmFile /var/log/apache2/jk-runtime-status

 * or that :

jdbc:mysql://localhost/xwiki
xwiki
MOT.DE.PASSE
com.mysql.jdbc.Driver
org.hibernate.dialect.MySQL5InnoDBDialect
true
20


Thank you for your excellent work !


Signature mails
_

Bruno Joffredo

Ecole Centrale de Nantes

Centre de Ressources Informatiques - Bur. D019

1 rue de la Noë

BP 92101

F-44321 Nantes cedex 3

Tél. 02.40.37.68.06
Mail : bruno.joffr...@ec-nantes.fr 
_


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


Re: [xwiki-users] Modifying macro.mv

2016-02-19 Thread Clemens Klein-Robbenhaar
Hi Mehdi:


> Hello everyone,
> 
> I am trying to modify the way the table of content (toc) macro behaves on
> xwiki, and I have a few questions concerning that.
> 
> 1- Is there anywhere else the macro is defined besides in macros.mv? the
> changes I've made there did not show up on my xwiki instance after I
> restarted it.
> 

is it possible we are talking about different macros?

 a) the "velocity level" macro   #toc(...)
 b) the wiki syntax macro (in wiki pages):  {{toc ..}}

The latter one is implemented as a java component here:

   
https://github.com/xwiki/xwiki-rendering/blob/master/xwiki-rendering-macros/xwiki-rendering-macro-toc/src/main/java/org/xwiki/rendering/internal/macro/toc/TocMacro.java

You can override / reimplement components, either as java code:

  http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents

or as a quick prototype in a wiki page (I am sure there is documentation, 
cannot find that page :( )

you can look at the .../xwiki/bin/view/XWiki/WikiMacros  for a list of "macros 
as wiki pages" installed in your wiki,
and look at the corresponding pages in the obejct editor to see how they are 
put together.


Side Note: If you update your /WEB-INF/xwiki.properties:

velocity.properties = file.resource.loader.cache=false
velocity.properties = velocimacro.library.autoreload=true

you should not need to restart the server to see changes in the *.vm


more side notes:  in the flamingo skin there is a "macro.vm" file that 
"shadows" the one in templates/macros.vm

 ./webapps/xwiki/skins/flamingo/macros.vm

try appending "?skin=colibri" when viewing pages to use another skin that does 
not overwrite "macros.vm". (assuming that "colibri" is still installed in your 
wiki instance, check the "webapps/xwiki/skins" dir for a "colibri" subdir ...)


> 2- what is the point of macros.txt? I was not able to find documentation
> for what xwiki is doing with that.
> 
> 3- how would you recommend going about writing a new toc macro? I've been
> doing that using velocity on a dedicated xwiki page, but I'm not able to
> call some of the methods that toc macro is using, namely this call:
> 
> #set ($tocData = ${tdoc.getTOC($init, $max, $numbered)})
> 

What is exactly the problem? Is there any error message?  Maybe some of the 
variables are just not initialized?
(that is where velocity trips me usually ...)

hope this helps
clemens


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


[xwiki-users] Modifying macro.mv

2016-02-19 Thread Mehdi Oulmakki
Hello everyone,

I am trying to modify the way the table of content (toc) macro behaves on
xwiki, and I have a few questions concerning that.

1- Is there anywhere else the macro is defined besides in macros.mv? the
changes I've made there did not show up on my xwiki instance after I
restarted it.

2- what is the point of macros.txt? I was not able to find documentation
for what xwiki is doing with that.

3- how would you recommend going about writing a new toc macro? I've been
doing that using velocity on a dedicated xwiki page, but I'm not able to
call some of the methods that toc macro is using, namely this call:

#set ($tocData = ${tdoc.getTOC($init, $max, $numbered)})

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