[xwiki-users] RSS Feeds of tags ?
Hi, It seems there is no RSS feed icon anymore available in tag specific pages, contrarily to what is said here : http://www.xwiki.org/xwiki/bin/view/Main/RssFeeds Is it something that was lost, is there a possibility to generate such a feed on specific tag with a particular url ? xwiki 3.2 Thanks, Jeremie -- View this message in context: http://xwiki.475771.n2.nabble.com/RSS-Feeds-of-tags-tp7007578p7007578.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] RSS Feeds of tags ?
On Nov 18, 2011, at 10:04 AM, jerem wrote: Hi, It seems there is no RSS feed icon anymore available in tag specific pages, contrarily to what is said here : http://www.xwiki.org/xwiki/bin/view/Main/RssFeeds Is it something that was lost, is there a possibility to generate such a feed on specific tag with a particular url ? xwiki 3.2 Indeed it seems to have disappeared. It seems this happened in XTAG-3: http://jira.xwiki.org/browse/XATAG-3 Committed by jvdrean: https://github.com/xwiki/xwiki-platform/commit/aa7a442d8959becb2cd935714997dce7adc7727c#diff-0 JV, do you know if you moved the Tag RSS somewhere? Thanks -Vincent Thanks, Jeremie ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Importing from another wiki
I am struggling to import content from another wiki. My previous wiki used markdown syntax, I converted the markdown syntax to XHTML via pandoc. The output validates as XHTML 1.0 Transitional, but when I try to convert it to xwiki syntax the conversion fails. 1. Does anyone have any ideas why this is failing? 2. Are there better ways to import wiki content? Thanks, Jesse ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Importing from another wiki
On Fri, Nov 18, 2011 at 6:12 PM, Jesse Hathaway je...@mbuki-mvuki.org wrote: I am struggling to import content from another wiki. My previous wiki used markdown syntax, I converted the markdown syntax to XHTML via pandoc. The output validates as XHTML 1.0 Transitional, but when I try to convert it to xwiki syntax the conversion fails. 1. Does anyone have any ideas why this is failing? What do you mean by failing and what result to you get exactly ? 2. Are there better ways to import wiki content? Thanks, Jesse ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Importing from another wiki
Thomas Mortagne thomas.mortagne@... writes: 1. Does anyone have any ideas why this is failing? What do you mean by failing and what result to you get exactly ? These are the steps I made: 1. Paste the html into the edit window 2. Choose XWiki 2.0 from the Document Syntax Window 3. Choose OK to convert document. 4. Then I receive the following error: Failed to convert to the selected syntax. If you want to use this syntax anyway, you can select it again and choose not to perform the conversion. This is the document I pasted !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / meta name=generator content=pandoc / title/title /head body h3 id=fonts-in-javaFonts in Java/h3 pOpentype fonts are not supported on Oracle JDK 1.6.0. You have to convert the font to a truetype font using fontforge. Java appears to use fontconfig to locate fonts. However it uses its own private copy, which often has bugs or features missing from your distro supplied version./p pMac OS X and Linux process the fonts differently. Mac seems more forgiving of bad font metadata. As an example, for one particular font I had to tweak the meta data until the individual fonts, italic bold etc, appeared as one font in Linux, i.e. as a single family. They need to appear as a single family for Java to properly use differnt faces of a font, e.g. italic./p h3 id=adding-fontsAdding fonts/h3 pYou can store the fonts in any of the font config search paths, including a per user directory:/p precodecat gt; ~/.fonts.conf lt;lt;EOF lt;?xml version=quot;1.0quot;?gt; lt;!DOCTYPE fontconfig SYSTEM quot;fonts.dtdquot;gt; lt;fontconfiggt; lt;!-- Private font directory --gt; lt;dirgt;~/fontslt;/dirgt; lt;/fontconfiggt; EOF /code/pre pemNOTE:/em For the per user directory to work the code$HOME/code environment variable must be set./p h3 id=listing-available-fontsListing available fonts/h3 pUse the below java code to verify that a font has been made available in java:/p precodecat gt; ListFonts.java lt;lt;EOF import java.awt.GraphicsEnvironment; public class ListFonts { public static void main(String args[]){ GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment(); for(String font:e.getAvailableFontFamilyNames()){ System.out.println(font); } } } EOF javac ListFonts.java java ListFonts /code/pre /body /html ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Corrupted WYSIWYG TextArea Property
Hi, I am having difficulty locating the source of an error where the contents of a TextArea property for a custom class object on a page ends up rendering in a WYSIWYG box as wiki syntax (as in, displaying the actual code in one long paragraph). Corrupt is probably not the right word for this, as I'm sure it's something I'm doing wrong... Simple explanation: 1) User clicks a button to add a new instance of a class to the page, which also enters the Inline Editing mode. User pastes content into a WYSIWYG editor and saves the page. After save, the TextArea property shows up correctly in view mode with $doc.display(), with headings, formatting, etc... 2) Something happens - I cannot yet reproduce it, but I'm sure the user is doing something. 3) The object starts displaying the property as a single block of text with embedded wiki syntax, mostly what looks like custom parameters containing the formatting info, such as: (% class=MsoNoSpacing %) (% class=tagChar style=font-size: 12pt; %) etc... Even in inline edit mode, the contents of the WYSIWYG box have been replaced with this block of code, which does not appear with the actual formatting - just the raw code. Looking into the page history, there is a version of the page saved right before the property becomes corrupt. So something must be happening to trigger the conversion of the TextArea content into wiki syntax, which then gets saved over the original data. The pages the user is using have multiple objects of the same class, all displaying their TextArea properties in a table. The majority of the time, it displays perfectly. This only applies to some objects on the page - though sometimes all objects on a page will simultaneously exhibit this behavior. The pages also contain buttons to create a new object, as well as a button to delete each object individually. I have one reliable method of producing this error. I used to have the delete this object button display while in Inline Edit mode - clicking it while in that mode would cause to entry to convert. I suppressed the button from displaying unless in view mode, which removed this cause of the error - but there is still some other mechanism for generating the same behavior. Here's an example of the delete button code which I can use to cause similar behavior: #set($delurl = /xwiki/wiki/$doc.getWiki()/objectremove/$doc.getSpace()/$doc.getName()?classname=Sandbox.TestClassclassid=$obj.getNumber()xredirect=$doc.getURL()) input type=image onclick=location.href='$delurl' value=Delete title=Delete style=float:right; src=/xwiki/resources/icons/silk/cross.gif / Any ideas on what's happening? Thanks much, aaron ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Importing from another wiki
If you are pasting HTML you should use the paste button in the Wysiwyg Ludovic 2011/11/18 Jesse Hathaway je...@mbuki-mvuki.org Thomas Mortagne thomas.mortagne@... writes: 1. Does anyone have any ideas why this is failing? What do you mean by failing and what result to you get exactly ? These are the steps I made: 1. Paste the html into the edit window 2. Choose XWiki 2.0 from the Document Syntax Window 3. Choose OK to convert document. 4. Then I receive the following error: Failed to convert to the selected syntax. If you want to use this syntax anyway, you can select it again and choose not to perform the conversion. This is the document I pasted !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / meta name=generator content=pandoc / title/title /head body h3 id=fonts-in-javaFonts in Java/h3 pOpentype fonts are not supported on Oracle JDK 1.6.0. You have to convert the font to a truetype font using fontforge. Java appears to use fontconfig to locate fonts. However it uses its own private copy, which often has bugs or features missing from your distro supplied version./p pMac OS X and Linux process the fonts differently. Mac seems more forgiving of bad font metadata. As an example, for one particular font I had to tweak the meta data until the individual fonts, italic bold etc, appeared as one font in Linux, i.e. as a single family. They need to appear as a single family for Java to properly use differnt faces of a font, e.g. italic./p h3 id=adding-fontsAdding fonts/h3 pYou can store the fonts in any of the font config search paths, including a per user directory:/p precodecat gt; ~/.fonts.conf lt;lt;EOF lt;?xml version=quot;1.0quot;?gt; lt;!DOCTYPE fontconfig SYSTEM quot;fonts.dtdquot;gt; lt;fontconfiggt; lt;!-- Private font directory --gt; lt;dirgt;~/fontslt;/dirgt; lt;/fontconfiggt; EOF /code/pre pemNOTE:/em For the per user directory to work the code$HOME/code environment variable must be set./p h3 id=listing-available-fontsListing available fonts/h3 pUse the below java code to verify that a font has been made available in java:/p precodecat gt; ListFonts.java lt;lt;EOF import java.awt.GraphicsEnvironment; public class ListFonts { public static void main(String args[]){ GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment(); for(String font:e.getAvailableFontFamilyNames()){ System.out.println(font); } } } EOF javac ListFonts.java java ListFonts /code/pre /body /html ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ludovic Dubost Founder and CEO Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Importing from another wiki
Ludovic Dubost ludovic@... writes: If you are pasting HTML you should use the paste button in the Wysiwyg That does seem to work somewhat better, but it still formats incorrectly, for instance for the document below the numbering is incorrect. Thanks, Jesse !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / meta name=generator content=pandoc / title/title /head body h3 id=debian-kernel-compileDebian Kernel Compile/h3 ol style=list-style-type: decimal lipGet build tools/p precodesudo apt-get install kernel-package libncurses-dev fakeroot wget bzip2 /code/pre/li lipBuild sarge kernel/p precodeapt-get -t sarge-backports install kernel-package ncurses-dev \ fakeroot wget bzip2 /code/pre/li lipGet source/p precodecd /usr/src /code/pre/li lipIf neeeded grab prepatch and/or snapshot/p precodepre_patch_ver=2.6.27-rc7 wget http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-${pre_patch_ver}.bz2 snapshot_ver=2.6.27-rc7-git5 wget http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-${snapshot_ver}.bz2 /code/pre/li lipIf using prepatch get base kernel for the previouse version of the kernel e.g. 2.6.20 not 2.6.20.4/p precodecd /usr/src kernel_ver=2.6.38 wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-${kernel_ver}.tar.bz2 tar -xf /usr/src/linux-${kernel_ver}.tar.bz2 /code/pre/li lipApply prepatch and/or snapshot/p/li lipdry run/p precodecd linux-${kernel_ver} bzcat ../patch-${pre_patch_ver}.bz2|patch -p1 --dry-run bzcat ../patch-${snapshot_ver}.bz2|patch -p1 --dry-run /code/pre/li lipapply/p precodecd linux-${kernel_ver} bzcat ../patch-${pre_patch_ver}.bz2|patch -p1 bzcat ../patch-${snapshot_ver}.bz2|patch -p1 /code/pre/li lipConfigure kernel source based on previous kernel/p precodecd /usr/src rm linux ln -s linux-${kernel_ver} linux cd linux cp /boot/config-$(uname -r) .config make oldconfig /code/pre/li lipCompile/p precodecd /usr/src/linux make-kpkg clean make-kpkg --revision 1 --append_to_version quot;-$(date +%G%m%d)quot; \ --initrd kernel_image kernel_headers /code/pre/li lipInstall/p precodedpkg -i ../linux-image-${kernel_ver}-$(date +%G%m%d)_1_i386.deb /code/pre/li lipmodules compilation e.g.: madwifi/p precodemake-kpkg modules_clean make-kpkg --revision 1 --append_to_version quot;-$(date +%G%m%d)quot; --initrd --added-modules madwifi modules_image /code/pre/li lipalsa compilation/p precodemake-kpkg --revision 1 --append_to_version '-20040117 --initrd modules_image export ALSA_CARDS=emu10k1x make-kpkg --revision 1 --append_to_version '-20040117 --initrd modules_image MKIMAGE='genromfs -f /dev/fd/1 -d %s | gzip -9 gt; %s' MKIMAGE=quot;genromfs -d %s -f %squot; MKIMAGE='genromfs -d %s -f /boot/initrd.tmp.$$ gt; /dev/null; gzip -c -9 /boot/initrd.tmp.$$ gt; %s' MKIMAGE='genromfs -d %s -f /tmp/initrd.tmp.$$ gt; /dev/null; gzip -c -9 /tmp/initrd.tmp.$$ gt; %s; rm /tmp/initrd.tmp.$$' CONFIG_BLK_DEV_RAM=y (section quot;Block Devicesquot;) CONFIG_BLK_DEV_INITRD=y CONFIG_BLK_DEV_RAM_SIZE=32768 (huge ram disk) CONFIG_ROMFS_FS=y(section quot;Filesystemsquot;) RAMDISK: incomplete write (-28 != 32768) 8388608 CONFIG_DEVFS NO /code/pre/li /ol /body /html ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Importing from another wiki
There is however an XWiki syntax which gives slightly the same result as your html by using the ((( ))) around the sub-text of each list item 1. Get build tools ((( {{{sudo apt-get install kernel-package libncurses-dev fakeroot wget bzip2 }}} ))) 1. Build sarge kernel ((({{{apt-get -t sarge-backports install kernel-package ncurses-dev \ fakeroot wget bzip2 }}} ))) 1. Get source ((({{{cd /usr/src }}} ))) But it's clear the converter does not convert this specific html to that wiki syntax This could be reported as a bug in jira.xwiki.org Ludovic 2011/11/19 Ludovic Dubost ludo...@xwiki.com I believe this is because this specific html is not properly converted. The text between each numbered item is getting out of the list item, breaking the ordered list and therefore the numbering. This is coming from another wiki ? Which wiki is that and which syntax was it using ? Ludovic 2011/11/19 Jesse Hathaway je...@mbuki-mvuki.org Ludovic Dubost ludovic@... writes: If you are pasting HTML you should use the paste button in the Wysiwyg That does seem to work somewhat better, but it still formats incorrectly, for instance for the document below the numbering is incorrect. Thanks, Jesse !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / meta name=generator content=pandoc / title/title /head body h3 id=debian-kernel-compileDebian Kernel Compile/h3 ol style=list-style-type: decimal lipGet build tools/p precodesudo apt-get install kernel-package libncurses-dev fakeroot wget bzip2 /code/pre/li lipBuild sarge kernel/p precodeapt-get -t sarge-backports install kernel-package ncurses-dev \ fakeroot wget bzip2 /code/pre/li lipGet source/p precodecd /usr/src /code/pre/li lipIf neeeded grab prepatch and/or snapshot/p precodepre_patch_ver=2.6.27-rc7 wget http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-${pre_patch_ver}.bz2 snapshot_ver=2.6.27-rc7-git5 wget http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-${snapshot_ver}.bz2 /code/pre/li lipIf using prepatch get base kernel for the previouse version of the kernel e.g. 2.6.20 not 2.6.20.4/p precodecd /usr/src kernel_ver=2.6.38 wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-${kernel_ver}.tar.bz2 tar -xf /usr/src/linux-${kernel_ver}.tar.bz2 /code/pre/li lipApply prepatch and/or snapshot/p/li lipdry run/p precodecd linux-${kernel_ver} bzcat ../patch-${pre_patch_ver}.bz2|patch -p1 --dry-run bzcat ../patch-${snapshot_ver}.bz2|patch -p1 --dry-run /code/pre/li lipapply/p precodecd linux-${kernel_ver} bzcat ../patch-${pre_patch_ver}.bz2|patch -p1 bzcat ../patch-${snapshot_ver}.bz2|patch -p1 /code/pre/li lipConfigure kernel source based on previous kernel/p precodecd /usr/src rm linux ln -s linux-${kernel_ver} linux cd linux cp /boot/config-$(uname -r) .config make oldconfig /code/pre/li lipCompile/p precodecd /usr/src/linux make-kpkg clean make-kpkg --revision 1 --append_to_version quot;-$(date +%G%m%d)quot; \ --initrd kernel_image kernel_headers /code/pre/li lipInstall/p precodedpkg -i ../linux-image-${kernel_ver}-$(date +%G%m%d)_1_i386.deb /code/pre/li lipmodules compilation e.g.: madwifi/p precodemake-kpkg modules_clean make-kpkg --revision 1 --append_to_version quot;-$(date +%G%m%d)quot; --initrd --added-modules madwifi modules_image /code/pre/li lipalsa compilation/p precodemake-kpkg --revision 1 --append_to_version '-20040117 --initrd modules_image export ALSA_CARDS=emu10k1x make-kpkg --revision 1 --append_to_version '-20040117 --initrd modules_image MKIMAGE='genromfs -f /dev/fd/1 -d %s | gzip -9 gt; %s' MKIMAGE=quot;genromfs -d %s -f %squot; MKIMAGE='genromfs -d %s -f /boot/initrd.tmp.$$ gt; /dev/null; gzip -c -9 /boot/initrd.tmp.$$ gt; %s' MKIMAGE='genromfs -d %s -f /tmp/initrd.tmp.$$ gt; /dev/null; gzip -c -9 /tmp/initrd.tmp.$$ gt; %s; rm /tmp/initrd.tmp.$$' CONFIG_BLK_DEV_RAM=y (section quot;Block Devicesquot;) CONFIG_BLK_DEV_INITRD=y CONFIG_BLK_DEV_RAM_SIZE=32768 (huge ram disk) CONFIG_ROMFS_FS=y(section quot;Filesystemsquot;) RAMDISK: incomplete write (-28 != 32768) 8388608 CONFIG_DEVFS NO /code/pre/li /ol /body /html ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ludovic Dubost Founder and CEO Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost -- Ludovic Dubost Founder and CEO Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Importing from another wiki
Hi Jesse, Here's what I did: * Edited WEB-INF/xwiki.cfg to add xhtml/1.0 to the list of syntaxes * Restarted my wiki * Edited a page in wiki mode, set the page syntax to be XHTML/1.0 * Pasted your content and saved it (See http://platform.xwiki.org/xwiki/bin/view/Features/PageEditing#HChoosingaSyntax ) It gave me https://skitch.com/e-vmassol/gjh3s/sandbox-sandbox.webhome-xwiki which looks good. Note that even though your HTML is valid, the headings should be H1 instead of H3 since there's no H1 nor H2 in your doc. This is why they appear smaller than they should in the rendered result. Thanks -Vincent On Nov 18, 2011, at 9:02 PM, Jesse Hathaway wrote: Thomas Mortagne thomas.mortagne@... writes: 1. Does anyone have any ideas why this is failing? What do you mean by failing and what result to you get exactly ? These are the steps I made: 1. Paste the html into the edit window 2. Choose XWiki 2.0 from the Document Syntax Window 3. Choose OK to convert document. 4. Then I receive the following error: Failed to convert to the selected syntax. If you want to use this syntax anyway, you can select it again and choose not to perform the conversion. This is the document I pasted !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / meta name=generator content=pandoc / title/title /head body h3 id=fonts-in-javaFonts in Java/h3 pOpentype fonts are not supported on Oracle JDK 1.6.0. You have to convert the font to a truetype font using fontforge. Java appears to use fontconfig to locate fonts. However it uses its own private copy, which often has bugs or features missing from your distro supplied version./p pMac OS X and Linux process the fonts differently. Mac seems more forgiving of bad font metadata. As an example, for one particular font I had to tweak the meta data until the individual fonts, italic bold etc, appeared as one font in Linux, i.e. as a single family. They need to appear as a single family for Java to properly use differnt faces of a font, e.g. italic./p h3 id=adding-fontsAdding fonts/h3 pYou can store the fonts in any of the font config search paths, including a per user directory:/p precodecat gt; ~/.fonts.conf lt;lt;EOF lt;?xml version=quot;1.0quot;?gt; lt;!DOCTYPE fontconfig SYSTEM quot;fonts.dtdquot;gt; lt;fontconfiggt; lt;!-- Private font directory --gt; lt;dirgt;~/fontslt;/dirgt; lt;/fontconfiggt; EOF /code/pre pemNOTE:/em For the per user directory to work the code$HOME/code environment variable must be set./p h3 id=listing-available-fontsListing available fonts/h3 pUse the below java code to verify that a font has been made available in java:/p precodecat gt; ListFonts.java lt;lt;EOF import java.awt.GraphicsEnvironment; public class ListFonts { public static void main(String args[]){ GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment(); for(String font:e.getAvailableFontFamilyNames()){ System.out.println(font); } } } EOF javac ListFonts.java java ListFonts /code/pre /body /html ___ 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