Re: [xwiki-users] how do I apply theme colouring to the Panel macros.

2010-02-04 Thread Bubulina

hello,
A sollution can be this:
- see what skin you are using
- open the main css file from it and add some new code for what you want.
You can replace the color of the panel changing there in the already
existing css, or you can use the new ones you are creating.
- using firefox firebug, can be much helpfull, to see what css classes are
used for the panels.
Hope this works
-- 
View this message in context: 
http://n2.nabble.com/how-do-I-apply-theme-colouring-to-the-Panel-macros-tp4471570p4512296.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] embed nabble

2010-02-04 Thread Bubulina

Hello,
i don't know if i got this right, but you want to integrate nabble forum
into a xwiki platform of yours?
In theory i guess you have to make an intermediate component to get the
xwiki user and syncronize it with nabble...but nabble is not a public
software to manipulate, so i don't think it is possible in this situation.
Maybe if you integrate an open source forum and then you can mingle with
both platforms core.
good luck
-- 
View this message in context: 
http://n2.nabble.com/embed-nabble-tp4445988p4512313.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] New blog entry overwrites old

2010-02-04 Thread Bubulina

Hello,
I just tested what you said, and in xwiki2.1.1 the behaviour described by
you did not replicate.
i created a test page and then tried several times to create another test
page, but i kept getting the message page already exists
may it be possible that you deleted the article in the first place, and it
somehow got stuck in the cache of the browser?
try restarting the server, cleaning browser caches .

-- 
View this message in context: 
http://n2.nabble.com/New-blog-entry-overwrites-old-tp4475221p4512334.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] PDF with UTF characters

2010-02-04 Thread Valdis Vītoliņš
I learned how to add custom TTF font and metrics for FOP.
Test project can be downloaded from http://odo.lv/ftp/temp/FOP.zip
There are FOP jars and Lucida Sans Unicode TTF font with generated
metrics file.
Metrics can be created using generate_font_metrics.bat script. Test PDF
can be generated with test1.bat script. 

Now questions are:
How can I invoke customized FOP with additional parameter for my config
file from Xwiki?
Or how can I change default font From Times-Roman to Lucida Sans
Unicode?

Valdis

 On 02/01/2010 09:47 PM, Valdis Vītoliņš wrote:
  I'm investigating issue http://jira.xwiki.org/jira/browse/XWIKI-4724
  Now I can generate right PDF using separate FOP with additional
  configuration files and invocation parameters.
  Though I don't know, how to invoke it in such way from Xwiki.
 
  Do you have any suggestions/ideas?
 
 I gave a workaround in a comment on that issue, in case somebody else is 
 interested in this problem and wants an answer.
 


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


Re: [xwiki-users] Jump to Page not displayed on pages with xwiki/2.0

2010-02-04 Thread Reto Hotz
Hi,

Thanks for the replies. I'll have a look at it again, as soon as I find 
some time.

BTW: The Jump to page is a really nice feature!

Greetings
Reto

On 02.02.2010 16:35, Sergiu Dumitriu wrote:
 On 02/02/2010 03:45 PM, Reto Hotz wrote:
 Hi,

 After migrating our XWiki from 1.8.3 --   2.1.1 we notices that the Jump
 to page-feature is only working with pages made with the old xwiki/1.0
 syntax.
 When I create a new page with syntax to 2.0, the Jump to Page is not
 displayed anymore in the Quick Links panel.
 As soon as I change the page syntax back to 1.0, the Jump to page is
 displayed again.


 It should work also with xwiki/2.0 syntax, shouldn't it?

 I don't know if this is from importance but we use a fully customized
 skin based on toucan. So maybe we have missed something in the migration.

 Any help or hint is very much appreciated.

 It works OK with the default installation and the default skins, so it
 could be either a wrong migration (some files were not updated), or
 something wrong in the custom skin.

 - Is the link to the JS file present in the HTML source? Should be
 something like /xwiki/bin/skin/resources/js/xwiki/widgets/jumpToPage.js
 - Are there errors in the Javascript error console?
 - Does the dialog appear if you press the key shortcut (Ctrl+G) instead
 of looking for the link in the panel?


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


Re: [xwiki-users] PDF with UTF characters

2010-02-04 Thread Sergiu Dumitriu
On 02/04/2010 01:32 PM, Valdis Vītoliņš wrote:
 I learned how to add custom TTF font and metrics for FOP.
 Test project can be downloaded from http://odo.lv/ftp/temp/FOP.zip
 There are FOP jars and Lucida Sans Unicode TTF font with generated
 metrics file.
 Metrics can be created using generate_font_metrics.bat script. Test PDF
 can be generated with test1.bat script.

Even the FOP developers say that generating font metrics is not needed, 
and deprecated. FOP should correctly find and use system fonts, and 
should correctly work with TTF fonts. The problem is that FOP doesn't 
find the fonts provided by XWiki because Tomcat doesn't use an URI 
scheme that FOP understands. You can extract 
WEB-INF/lib/xwiki-core-XYZ.java#fop-config.xml into WEB-INF/classes and 
adjust the fonts settings so that you manually specify the path to the 
right font files. The syntax for the config xml should be on the FOP site.

 Now questions are:
 How can I invoke customized FOP with additional parameter for my config
 file from Xwiki?
 Or how can I change default font From Times-Roman to Lucida Sans
 Unicode?

Extract xhtml2fo.xsl from WEB-INF/lib/xwiki-core-XYZ.jar into 
WEB-INF/classes and search for the line:

xsl:attribute name=font-familyFreeSerif,serif/xsl:attribute

Replace FreeSerif with what you want.

 Valdis

 On 02/01/2010 09:47 PM, Valdis Vītoliņš wrote:
 I'm investigating issue http://jira.xwiki.org/jira/browse/XWIKI-4724
 Now I can generate right PDF using separate FOP with additional
 configuration files and invocation parameters.
 Though I don't know, how to invoke it in such way from Xwiki.

 Do you have any suggestions/ideas?

 I gave a workaround in a comment on that issue, in case somebody else is
 interested in this problem and wants an answer.


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Jump to Page not displayed on pages with xwiki/2.0

2010-02-04 Thread Sergiu Dumitriu
On 02/04/2010 02:37 PM, Reto Hotz wrote:
 Hi,

 Thanks for the replies. I'll have a look at it again, as soon as I find
 some time.

 BTW: The Jump to page is a really nice feature!

Yep, not as impressive as, say, the Office Importer, but very useful, 
and a good productivity enhancer.

 Greetings
 Reto

 On 02.02.2010 16:35, Sergiu Dumitriu wrote:
 On 02/02/2010 03:45 PM, Reto Hotz wrote:
 Hi,

 After migrating our XWiki from 1.8.3 --2.1.1 we notices that the Jump
 to page-feature is only working with pages made with the old xwiki/1.0
 syntax.
 When I create a new page with syntax to 2.0, the Jump to Page is not
 displayed anymore in the Quick Links panel.
 As soon as I change the page syntax back to 1.0, the Jump to page is
 displayed again.


 It should work also with xwiki/2.0 syntax, shouldn't it?

 I don't know if this is from importance but we use a fully customized
 skin based on toucan. So maybe we have missed something in the migration.

 Any help or hint is very much appreciated.

 It works OK with the default installation and the default skins, so it
 could be either a wrong migration (some files were not updated), or
 something wrong in the custom skin.

 - Is the link to the JS file present in the HTML source? Should be
 something like /xwiki/bin/skin/resources/js/xwiki/widgets/jumpToPage.js
 - Are there errors in the Javascript error console?
 - Does the dialog appear if you press the key shortcut (Ctrl+G) instead
 of looking for the link in the panel?

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] New blog entry overwrites old

2010-02-04 Thread Daniel Johansson

Indeed, I just tried in 2.2M2 and it tells you the document exists. in 2.04 I
did not delete the older post, it got overwritten so now I had 2 posts with
the exact same title and content in the News category, it's still here in
our wiki. And I actually updated  the first post which updated both posts!
They are identical, same date, title and content.

The solution to tell user that document already exist is not very good. In
time you may have hundreds of blog entries in one category, making it pretty
hard to keep titles unique. In our case we wanted to use it to post what
testing is to be done for the week. So each week you want to post an entry
such as Weekly testing. It'll be hard to come up with unique variants to
that every week!
-- 
View this message in context: 
http://n2.nabble.com/New-blog-entry-overwrites-old-tp4475221p4514645.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] New blog entry overwrites old

2010-02-04 Thread Guillaume Lerouge
Hi Daniel,

On Thu, Feb 4, 2010 at 5:45 PM, Daniel Johansson djohans...@haascnc.comwrote:


 Indeed, I just tried in 2.2M2 and it tells you the document exists. in 2.04
 I
 did not delete the older post, it got overwritten so now I had 2 posts with
 the exact same title and content in the News category, it's still here in
 our wiki. And I actually updated  the first post which updated both posts!
 They are identical, same date, title and content.

 The solution to tell user that document already exist is not very good. In
 time you may have hundreds of blog entries in one category, making it
 pretty
 hard to keep titles unique. In our case we wanted to use it to post what
 testing is to be done for the week. So each week you want to post an entry
 such as Weekly testing. It'll be hard to come up with unique variants to
 that every week!


You can modify the article creation form to add something like:

$xwiki.getUniquePageName($space, $input)

see
http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki%2Dcore%2D2.1.1%2Djavadoc.jar/index.htmlfor
details.

Sergiu, I'm starting to think we could add this to most of the creation
forms to avoid duplicates, WDYT?

I'm increasingly doing it for apps I write on my projects (almost all the
time now).

Guillaume


 --
 View this message in context:
 http://n2.nabble.com/New-blog-entry-overwrites-old-tp4475221p4514645.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




-- 
Guillaume Lerouge
Product Manager - XWiki SAS
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] New blog entry overwrites old

2010-02-04 Thread Sergiu Dumitriu
On 02/04/2010 06:02 PM, Guillaume Lerouge wrote:
 Hi Daniel,

 On Thu, Feb 4, 2010 at 5:45 PM, Daniel Johanssondjohans...@haascnc.comwrote:


 Indeed, I just tried in 2.2M2 and it tells you the document exists. in 2.04
 I
 did not delete the older post, it got overwritten so now I had 2 posts with
 the exact same title and content in the News category, it's still here in
 our wiki. And I actually updated  the first post which updated both posts!
 They are identical, same date, title and content.

 The solution to tell user that document already exist is not very good. In
 time you may have hundreds of blog entries in one category, making it
 pretty
 hard to keep titles unique. In our case we wanted to use it to post what
 testing is to be done for the week. So each week you want to post an entry
 such as Weekly testing. It'll be hard to come up with unique variants to
 that every week!


 You can modify the article creation form to add something like:

 $xwiki.getUniquePageName($space, $input)

 see
 http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki%2Dcore%2D2.1.1%2Djavadoc.jar/index.htmlfor
 details.

 Sergiu, I'm starting to think we could add this to most of the creation
 forms to avoid duplicates, WDYT?

 I'm increasingly doing it for apps I write on my projects (almost all the
 time now).

I'm not quite fond of this idea, but something more complex would work. 
If the page already exists, offer a few options:

- link to the page so that the user can go to it and edit it instead of 
creating a new page
- let the user type another page name
- use getUniquePageName, which appends a number at the end
- append the current date at the end

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] New blog entry overwrites old

2010-02-04 Thread Rieken, Joshua


 -Original Message-
 From: users-boun...@xwiki.org
 [mailto:users-boun...@xwiki.org] On Behalf Of Sergiu Dumitriu
 Sent: Thursday, February 04, 2010 11:22 AM
 To: XWiki Developers
 Cc: XWiki Users
 Subject: Re: [xwiki-users] New blog entry overwrites old

 On 02/04/2010 06:02 PM, Guillaume Lerouge wrote:
  Hi Daniel,
 
  On Thu, Feb 4, 2010 at 5:45 PM, Daniel
 Johanssondjohans...@haascnc.comwrote:
 
 
  Indeed, I just tried in 2.2M2 and it tells you the
 document exists.
  in 2.04 I did not delete the older post, it got
 overwritten so now I
  had 2 posts with the exact same title and content in the News
  category, it's still here in our wiki. And I actually updated  the
  first post which updated both posts!
  They are identical, same date, title and content.
 
  The solution to tell user that document already exist is not very
  good. In time you may have hundreds of blog entries in one
 category,
  making it pretty hard to keep titles unique. In our case
 we wanted to
  use it to post what testing is to be done for the week. So
 each week
  you want to post an entry such as Weekly testing. It'll
 be hard to
  come up with unique variants to that every week!
 
 
  You can modify the article creation form to add something like:
 
  $xwiki.getUniquePageName($space, $input)
 
  see
 
 http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki%2Dcore
  %2D2.1.1%2Djavadoc.jar/index.htmlfor
  details.
 
  Sergiu, I'm starting to think we could add this to most of the
  creation forms to avoid duplicates, WDYT?
 
  I'm increasingly doing it for apps I write on my projects
 (almost all
  the time now).

 I'm not quite fond of this idea, but something more complex
 would work.
 If the page already exists, offer a few options:

 - link to the page so that the user can go to it and edit it
 instead of creating a new page
 - let the user type another page name
 - use getUniquePageName, which appends a number at the end
 - append the current date at the end


I like these ideas a lot. Having encountered this issue a number of times in my 
projects, these options would be nice to have.

 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

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


Re: [xwiki-users] Custom properties for XWikiUsers class

2010-02-04 Thread Valdis Vītoliņš
  For custom application I need to add more properties
  for ../xwiki/bin/edit/XWiki/XWikiUsers?editor=class
  Do you have any experience?
  - Create a XWiki.ExtendUserClass holding your properties
  - Add an object from this class to your user profiles
  - Use it to store information
 
 I also recommend this, but there's a problem: creating a new user only 
 adds the XWikiUsers object, since it doesn't create documents based on a 
 template. This means that somewhere you'll have to add this object.
 
 A solution is to put a check in the user sheet, similar to what is done 
 for WebPreferences and a missing XWikiPreferences object.
 
 #if(!$doc.getObject('XWiki.ExtendUserClass'))
$response.sendRedirect($doc.getURL('objectadd', 
 'classname=XWiki.ExtendUserClass'))
 #end


This works (though need not to be scared and save it)
for user's wiki document content another line should be added to show
data properly:
#includeForm(XWiki.XWikiUsersExtSheet)

Do you have any ideas about this?

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


Re: [xwiki-users] Custom properties for XWikiUsers class

2010-02-04 Thread Valdis Vītoliņš
   For custom application I need to add more properties
   for ../xwiki/bin/edit/XWiki/XWikiUsers?editor=class
   Do you have any experience?
   - Create a XWiki.ExtendUserClass holding your properties
   - Add an object from this class to your user profiles
   - Use it to store information
  
  I also recommend this, but there's a problem: creating a new user only 
  adds the XWikiUsers object, since it doesn't create documents based on a 
  template. This means that somewhere you'll have to add this object.
  
  A solution is to put a check in the user sheet, similar to what is done 
  for WebPreferences and a missing XWikiPreferences object.
  
  #if(!$doc.getObject('XWiki.ExtendUserClass'))
 $response.sendRedirect($doc.getURL('objectadd', 
  'classname=XWiki.ExtendUserClass'))
  #end
 
 
 This works (though need not to be scared and save it)
 for user's wiki document content another line should be added to show
 data properly:
 #includeForm(XWiki.XWikiUsersExtSheet)

Solved this adding this line at the end of
/xwiki/bin/edit/XWiki/XWikiUserSheet ;-)

Valdis


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


Re: [xwiki-users] PDF with UTF characters

2010-02-04 Thread Valdis Vītoliņš
Many thanks Sergiu!
I solved this. My comments are inline.

 Even the FOP developers say that generating font metrics is not needed, 
 and deprecated. FOP should correctly find and use system fonts, and 
 should correctly work with TTF fonts.

I checked this and that's correct. 

 The problem is that FOP doesn't 
 find the fonts provided by XWiki because Tomcat doesn't use an URI 
 scheme that FOP understands. You can extract 
 WEB-INF/lib/xwiki-core-XYZ.java#fop-config.xml into WEB-INF/classes and 
 adjust the fonts settings so that you manually specify the path to the 
 right font files. The syntax for the config xml should be on the FOP site.

Copied Courier_New.ttf and  Times_New_Roman.ttf
into ../webapps/xwiki/WEB-INF/fonts

Added following lines to
the ../webapps/xwiki/WEB-INF/classes/fop-config.xml
  fonts
...
!-- /webapps is symlink to /var/lib/tomcat5.5/webapps/ --
font kerning=yes
embed-url=/webapps/xwiki/WEB-INF/fonts/Courier_New.ttf   
font-triplet name=Courier New style=normal
weight=normal/
/font
font kerning=yes
embed-url=/webapps/xwiki/WEB-INF/fonts/Times_New_Roman.ttf   
font-triplet name=Times New Roman style=normal
weight=normal/
/font
...
  /fonts

 Extract xhtml2fo.xsl from WEB-INF/lib/xwiki-core-XYZ.jar into 
 WEB-INF/classes and search for the line:
 
 xsl:attribute name=font-familyFreeSerif,serif/xsl:attribute

Changed FreeSerif,serif to Times New Roman and FreeMono,monospace to Courier New

Ran PDF export, got
exception ... /usr/share/tomcat5.5/.fop/fop-fonts.cache (No such file or
directory)...
mkdir /usr/share/tomcat5.5/.fop/
chown tomcat5:root /usr/share/tomcat5.5/.fop/
chmod 775 /usr/share/tomcat5.5/.fop/

restarted tomcat
and viola!
It is working now!

Valdis

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