Re: [xwiki-users] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
Hi, On 07/19/2011 05:56 PM, fnadeem wrote: I recently upgraded wiki to 3.0 version. I had the syntax issue which was corrected by importing Panels.DocumentInformation document from 3.0 XAR. So I now have the syntax 2.0 available. After this change, the WYISWYG editor defaluted back to the old editor http://platform.xwiki.org/xwiki/bin/Features/PageEditing#HWYSIWYGeditingmode and I lost the new editor which has more functions http://platform.xwiki.org/xwiki/bin/Features/WysiwygEditor How I can enable the new WYISWYG editor? The new WYSIWYG editor is not loaded if the page syntax is XWiki 1.0. Are you sure your pages are in XWiki 2.0 syntax? Edit in wiki edit mode a page for which the new WYSIWYG editor is not loading and put this content: {{velocity}} $doc.syntax.toIdString() $services.wysiwyg.isSyntaxSupported($doc.syntax.toIdString()) {{/velocity}} then save. Do you get xwiki/2.0 true? Hope this helps, Marius Also the search function is not working after the upgrade. when I try to search, I get the message The requested document could not be found Farhan Nadeem -- View this message in context: http://xwiki.475771.n2.nabble.com/Clobbered-syntax-when-importing-2-1-xwiki-content-into-2-5-1-tp5808169p6599068.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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
Yes, when I add this code into an existing page with syntax 2.0 it does says xwiki/2.0 true. I created new page with syntax 2.0 and same result xwiki/2.0 true. But for both these cases old editor is opened. If I use syntax 1.0 and save the document with code, it says {{velocity}} xwiki/1.0 false {{/velocity}}. However in this case the new editor is automatically opened. It is exactly the opposite of what it should be... Farhan -- View this message in context: http://xwiki.475771.n2.nabble.com/Clobbered-syntax-when-importing-2-1-xwiki-content-into-2-5-1-tp5808169p6602199.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] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
I recently upgraded wiki to 3.0 version. I had the syntax issue which was corrected by importing Panels.DocumentInformation document from 3.0 XAR. So I now have the syntax 2.0 available. After this change, the WYISWYG editor defaluted back to the old editor http://platform.xwiki.org/xwiki/bin/Features/PageEditing#HWYSIWYGeditingmode and I lost the new editor which has more functions http://platform.xwiki.org/xwiki/bin/Features/WysiwygEditor How I can enable the new WYISWYG editor? Also the search function is not working after the upgrade. when I try to search, I get the message The requested document could not be found Farhan Nadeem -- View this message in context: http://xwiki.475771.n2.nabble.com/Clobbered-syntax-when-importing-2-1-xwiki-content-into-2-5-1-tp5808169p6599068.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] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
Hi, Yes, I had imported everything. It was there and showed up as far as I could understand. Nevertheless, I re-installed some of the components and WOW, now it works. The xwiki/2.0 syntax shows up and is automatically choosen and everything works just fine! Thanks for your support everyone! /Lars -- View this message in context: http://xwiki.475771.n2.nabble.com/Clobbered-syntax-when-importing-2-1-xwiki-content-into-2-5-1-tp5808169p5815493.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] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
Lars Lindwall wrote: Hi, I'm not quite sure what you mean, but I have imported the entire xwiki-enterprise-wiki-2.5.1.xar How can I check if Panels.DocumentInformation has been imported? /Lars Simply go to http://yourserver/xwiki/bin/view/Panels/DocumentInformation. If it fails, for any reason, you haven't imported that panel. HTH, -- Ricardo RodrÃguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
On Dec 7, 2010, at 8:37 AM, Lars Lindwall wrote: Hi, Yes, I have restarted my xwiki several times. Please, find my xwiki.cfg below. /Lars p#--- # Preamble # # This is the main old XWiki configuration file. Commented parameters show the default value, although some features # might be disabled. To customize, uncomment and put your own value instead. #--- # General wiki settings # #-# When the wiki is readonly, any updates are forbidden. To mark readonly, use one of: yes, 1, true # xwiki.readonly=no #-# [Since 1.6RC1] Defines the list of supported syntaxes #-# Available syntaxes are: #-#xwiki/1.0, xwiki/2.0, xwiki/2.1, confluence/1.0, jspwiki/1.0, creole/1.0, mediawiki/1.0, twiki/1.0, xhtml/1.0, html/4.01, plain/1.0 xwiki.rendering.syntaxes = xwiki/1.0, xwiki/2.0, xwiki/2.1 [snip] This looks good so yes it could the information panel but if you have imported the whole XAR then there's no reason. You can copy paste us the content of your information panel: http://localhost:8080/xwiki/bin/inline/Panels/DocumentInformation Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
Hi, I did and it works. See below. However, the pop-list offers just the XWiki 1.0 alternative. /Lars http://xwiki.475771.n2.nabble.com/file/n5810958/docinf.jpg -- View this message in context: http://xwiki.475771.n2.nabble.com/Clobbered-syntax-when-importing-2-1-xwiki-content-into-2-5-1-tp5808169p5810958.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] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
Hi, Please find below the requested info. /Lars #set($pages = $tdoc.includedPages) #largepanelheader($msg.get(panels.documentInformation.title)) dl dtlabel for=xwikidocparentinput2$msg.get(panels.documentInformation.parent)/label/dt ddinput type=text id=xwikidocparentinput2 name=parent value=$!tdoc.parent size=30//dd #if(($tdoc.language==)($xwiki.isMultiLingual())) dtlabel for=xwikidoclanguageinput2$msg.get(panels.documentInformation.defaultLanguage)/label/dt ddinput type=text id=xwikidoclanguageinput2 name=defaultLanguage value=$!tdoc.defaultLanguage size=30//dd #end ##-- ## Display wiki syntax combo box if there's more than one configured syntax. ##-- $xwiki.jsx.use($paneldoc.fullName)## #if($xwiki.getConfiguredSyntaxes().size() 1) dtlabel for=xwikidocsyntaxinput2Page Syntax/label/dt dd select name=syntaxId id=xwikidocsyntaxinput2 option value=xwiki/1.0#if($tdoc.getSyntaxId().equalsIgnoreCase('xwiki/1.0')) selected=selected#endXWiki 1.0/option #set($configuredSyntaxes = $xwiki.getConfiguredSyntaxes()) #foreach($syntax in $syntaxFactory.getAvailableSyntaxes()) #if($configuredSyntaxes.contains($syntax.toIdString()) !$syntax.toIdString().equalsIgnoreCase('xwiki/1.0')) option value=$syntax.toIdString()#if($tdoc.getSyntaxId().equalsIgnoreCase($syntax.toIdString())) selected=selected#end$syntax.toString()/option #end #end /select /dd #end ##-- #if($pages.size() != 0) #if($pages.size() == 1) dt$msg.get(panels.documentInformation.includesOne, [$pages.size()])/dt #else dt$msg.get(panels.documentInformation.includesMore, [$pages.size()])/dt #end dd table summary=$msg.get(panels.documentInformation.includesSummary) id=xwikiincludeddocuments tbody #foreach ($page in $pages) trtd $xwiki.getURL($page, $page /td td class=xwikibuttonlink $xwiki.getURL($page, $msg.get(panels.documentInformation.editIncluded) /td/tr #end /tbody /table/dd #end /dl #template(tagedit.vm) #panelfooter() -- View this message in context: http://xwiki.475771.n2.nabble.com/Clobbered-syntax-when-importing-2-1-xwiki-content-into-2-5-1-tp5808169p5811385.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] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
On 12/07/2010 01:14 PM, Lars Lindwall wrote: Hi, Please find below the requested info. /Lars This isn't the right content. Please import this panel again. Looking at the other screenshots, I'm not sure you actually imported any document from the XAR. Note that it's not enough to just upload the XAR, you have to click on its name after that, select the documents you want to import from it, then click on the import button. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
Hi, I'm having severe trouble when importing xwiki content from xwiki 2.1 into xwiki 2.5.1. When the import is fresh everything seems OK: http://xwiki.475771.n2.nabble.com/file/n5808169/original.jpg When I try to edit, the syntax looks exactly as in 2.1 http://xwiki.475771.n2.nabble.com/file/n5808169/edit.jpg And when I Save Show (without any changes) the page looks like: http://xwiki.475771.n2.nabble.com/file/n5808169/new.jpg What is this? How can I get around this? Please, help! /Lars L -- View this message in context: http://xwiki.475771.n2.nabble.com/Clobbered-syntax-when-importing-2-1-xwiki-content-into-2-5-1-tp5808169p5808169.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] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
Hi Lars, On Dec 6, 2010, at 4:16 PM, Lars Lindwall wrote: Hi, I'm having severe trouble when importing xwiki content from xwiki 2.1 into xwiki 2.5.1. When the import is fresh everything seems OK: http://xwiki.475771.n2.nabble.com/file/n5808169/original.jpg When I try to edit, the syntax looks exactly as in 2.1 http://xwiki.475771.n2.nabble.com/file/n5808169/edit.jpg And when I Save Show (without any changes) the page looks like: http://xwiki.475771.n2.nabble.com/file/n5808169/new.jpg What is this? How can I get around this? That's probably because your page is set to use XWiki syntax 1.0 and you're using XWiki Syntax 2.0 in it... Change the page to use XWiki Syntax 2.0 and it should be fine. Thanks -Vincent Please, help! /Lars L ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
Hi, That's exactly what I have tried. However, the pop-list gives only one option and that is xwiki syntax 1.0. I have enabled also 2.0 and 2.1 in the xwiki.cfg file but that didn't help. What more do I have to change? /Lars L -- View this message in context: http://xwiki.475771.n2.nabble.com/Clobbered-syntax-when-importing-2-1-xwiki-content-into-2-5-1-tp5808169p5808268.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] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
On Dec 6, 2010, at 4:37 PM, Lars Lindwall wrote: Hi, That's exactly what I have tried. However, the pop-list gives only one option and that is xwiki syntax 1.0. I have enabled also 2.0 and 2.1 in the xwiki.cfg file but that didn't help. What more do I have to change? Can you copy/paste your xwiki.cfg? Have you restarted xwiki after you made the change to xwiki.cfg? Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
On 12/06/2010 04:37 PM, Lars Lindwall wrote: Hi, That's exactly what I have tried. However, the pop-list gives only one option and that is xwiki syntax 1.0. I have enabled also 2.0 and 2.1 in the xwiki.cfg file but that didn't help. What more do I have to change? You need to import at least Panels.DocumentInformation from the XE 2.6 xar. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
Hi, Yes, I have restarted my xwiki several times. Please, find my xwiki.cfg below. /Lars p#--- # Preamble # # This is the main old XWiki configuration file. Commented parameters show the default value, although some features # might be disabled. To customize, uncomment and put your own value instead. #--- # General wiki settings # #-# When the wiki is readonly, any updates are forbidden. To mark readonly, use one of: yes, 1, true # xwiki.readonly=no #-# [Since 1.6RC1] Defines the list of supported syntaxes #-# Available syntaxes are: #-#xwiki/1.0, xwiki/2.0, xwiki/2.1, confluence/1.0, jspwiki/1.0, creole/1.0, mediawiki/1.0, twiki/1.0, xhtml/1.0, html/4.01, plain/1.0 xwiki.rendering.syntaxes = xwiki/1.0, xwiki/2.0, xwiki/2.1 #-# List of groups that a new user should be added to by default after registering. Comma-separated list of group document #-# names. # xwiki.users.initialGroups=XWiki.XWikiAllGroup #-# Should all users be considered members of XWiki.XWikiAllGroup, even if they don't have an associated object in the #-# group's document? # xwiki.authentication.group.allgroupimplicit=0 #-# Uncomment if you want to ignore requests for unmapped actions, and simply display the document # xwiki.unknownActionResponse=view #-# The encoding to use when transformin strings to and from byte arrays. This causes the jvm encoding to be ignored, #-# since we want to be independend of the underlying system. xwiki.encoding=UTF-8 #-# This parameter will activate the sectional editing. xwiki.section.edit=1 #-# This parameter controls the depth of sections that have section editing. #-# By default level 1 and level 2 sections have section editing. xwiki.section.depth=2 #-# Enable backlinks storage, which increases the update time, but allows to keep track of inter document links. xwiki.backlinks=1 #-# Enable document tags. xwiki.tags=1 #--- # Storage # #-# Role hints that differentiate implementations of the various storage components. To add a new implementation for one #-# of the storages, implement the appropriate interface and declare it in a components.xml file (using a role-hint other #-# than 'default') and put its hint here. # #-# The main (documents) storage. # xwiki.store.main.hint=default #-# The attachment storage. # xwiki.store.attachment.hint=default #-# The document versioning storage. # xwiki.store.versioning.hint=default #-# The attachment versioning storage. Use 'void' to disable attachment versioning. # xwiki.store.attachment.versioning.hint=default #-# The document recycle bin storage. # xwiki.store.recyclebin.hint=default #-# The attachment recycle bin storage. # xwiki.store.attachment.recyclebin.hint=default #-# Whether the document recycle bin feature is activated or not # xwiki.recyclebin=1 #-# Whether the attachment recycle bin feature is activated or not # storage.attachment.recyclebin=1 #-# Whether the document versioning feature is activated or not # xwiki.store.versioning=1 #-# Whether the attachment versioning feature is activated or not # xwiki.store.attachment.versioning=1 #-# Whether the attachments should also be rolled back when a document is reverted. # xwiki.store.rollbackattachmentwithdocuments=1 #-# The path to the hibernate configuration file. # xwiki.store.hibernate.path=/WEB-INF/hibernate.cfg.xml #-# Whether to update the database schema on startup. Useful when upgrading XWiki. as the mapping could change between #-# versions, and this allows to automatically update the database. Should be disabled (=0) during normal operation to #-# improve the startup time. # xwiki.store.hibernate.updateschema=1 #-# Allow or disable custom mapping for particular XClasses. Custom mapping may increase the performance of certain #-# queries when large number of objects from particular classes are used in the wiki. # xwiki.store.hibernate.custommapping=1 #-# Dynamic custom mapping. # xwiki.store.hibernate.custommapping.dynamic=0 #-# Put a cache in front of the document store. This greatly improves performance at the cost of memory consumption. #-# Disable only when memory is critical. # xwiki.store.cache=1 #-# Maximum number of documents to keep in the cache. # xwiki.store.cache.capacity=100 #-# [Since 1.6M1] #-# Force the database name for the main wiki in virtual mode and for the wiki itself in non virtual mode. # xwiki.db=xwiki #-# [Since 1.6M1] #-# Add a prefix to all databases names of the wikis in virtual mode and to the wiki name in non virtual mode. # xwiki.db.prefix= #--- # Data migrations # # Similar to schema updates, this manipulates the actual data, and not just the layout of the database. Useful for # migrating data to new formats, correct errors introduced in older versions, or even for schema updates that are not # handled by velocity. #-# Whether migrations are enabled or not. Should be enabled when
Re: [xwiki-users] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
Hi, I'm not quite sure what you mean, but I have imported the entire xwiki-enterprise-wiki-2.5.1.xar How can I check if Panels.DocumentInformation has been imported? /Lars -- View this message in context: http://xwiki.475771.n2.nabble.com/Clobbered-syntax-when-importing-2-1-xwiki-content-into-2-5-1-tp5808169p5810718.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