[xwiki-users] Help needed with customizing of Toucan skin
Hi, I am attempting to customize the toucan by putting a new background in and changing the logo. The logo is the easy part with the change happening in the Administration GUI under Presentation - Skin Customization - Logo The rest I'm a bit unsure about!! I have attempted to deconstruct the toucan.css file under the skins directory in the webapp and then build it back together. I did get some results but it was highly unstable as after a second edit things started going funny. I managed to get a background showing up which was great but it was pretty slow as the image was too large, I then tried a smaller image which didn't show at all as the background went completely white?? I can confirm however the parts that make up the background are: H4x4-GRAY.png bgxleft-GRAY.png bgx-GRAY.png # bg-GRAY3.png and bg-GRAY.png seem to just be little lines in the middle of the page so no need to alter those. What I would really like to do is put a little picture to the right of the logo, which seems to be the: #companylogo { width 740px; } ... portion. I added the code: background-image: url($xwiki.getSkinFile(myimage.png)); only with no luck whatsoever?? Also how to remove the right and left panels and just make one 'big' background instead?? - I have an image for this but at ~800kB it's a bit large so what I will need to do is lower the size then stretch it over the screen. Is this possible?? Many thanks, Kaya ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How do I for receive a very long string as a parameter in a funtion?
The link works fine now : ) , but when I put this $name+$lastname inside the query does not take the values stores in the variables, How do I for pass the parameters? Thanks a lot -- View this message in context: http://xwiki.475771.n2.nabble.com/How-do-I-for-receive-a-very-long-string-as-a-parameter-in-a-funtion-tp5465073p5468798.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] How do I for receive a very long string as a parameter in a funtion?
Hi, For the Velocity syntax to be interpreted inside a String, you have to use double quotes ( string_with_velocity_inside). Raluca. On Fri, Aug 27, 2010 at 12:33 PM, abrante fabra...@yahoo.com wrote: The link works fine now : ) , but when I put this $name+$lastname inside the query does not take the values stores in the variables, How do I for pass the parameters? Thanks a lot -- View this message in context: http://xwiki.475771.n2.nabble.com/How-do-I-for-receive-a-very-long-string-as-a-parameter-in-a-funtion-tp5465073p5468798.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] How do I for receive a very long string as a parameter in a funtion?
On Fri, Aug 27, 2010 at 1:52 PM, Raluca Stavro raluca.moro...@xwiki.com wrote: Hi, For the Velocity syntax to be interpreted inside a String, you have to use double quotes ( string_with_velocity_inside). You can also use concatenation: $velocity_var.concat('string_inside_simple_quots') This way the string will not be parsed - better performance. Raluca. Raluca. On Fri, Aug 27, 2010 at 12:33 PM, abrante fabra...@yahoo.com wrote: The link works fine now : ) , but when I put this $name+$lastname inside the query does not take the values stores in the variables, How do I for pass the parameters? Thanks a lot -- View this message in context: http://xwiki.475771.n2.nabble.com/How-do-I-for-receive-a-very-long-string-as-a-parameter-in-a-funtion-tp5465073p5468798.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] Enable wysiwyg editor for dynamically createdobjects
Hi Matthew, I updated the example on http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule#HLoadondemandandshowsourcetext . Some notes: * the cache input works only if it is present on the page when the page is loaded. It is used to preserve the editor content against browser Back/Forward buttons. I don't think you need it since you load the editor on demand. * The inputURL I suggested is indeed not suited for you use case. If you load the editor on demand only when creating new objects, thus their WYSIWYG properties are empty, you can use an inputURL like this: $xwiki.getURL(FakeSpace.FakePage, edit, xpage=wysiwyginputrender=truekey=fake) (of course it needs to be evaluated) If you load the editor on demand also when objects are edited then you'll have to edit wysiwyginput.vm template so that it works with an URL like this: $xwiki.getURL(Blog.BlogIntroduction, edit, xpage=wysiwyginputrender=truefield=Blog.BlogPostClass_0_content) That it, read the field request parameter and feed the WYSIWYG editor with the corresponding value. I can help you with this if you need it. Hope this helps, Marius On 08/26/2010 06:21 PM, Matthew Hildebrand wrote: Marius, Thanks for the info. That got me pointed in the correct direction, and I've got the wysiwyg editor appearing. However there are a few weirdness issues... 1) Some of the CSS stylings are not being attached to the wysiwyg editor (the specific one that I have noticed is that tables no longer have shaded backgrounds on the headers or borders (using Colibri skin). 2) If I switch to source view and add some text, I am then unable to switch back to wysiwyg view. I get a cross-domain error: (NS_ERROR_DOM_BAD_URI): Access to restricted URI denied code: 1012 INDEX_SIZE_ERR: 1 DOMSTRING_SIZE_ERR: 2 HIERARCHY_REQUEST_ERR: 3 WRONG_DOCUMENT_ERR: 4 INVALID_CHARACTER_ERR: 5 NO_DATA_ALLOWED_ERR: 6 NO_MODIFICATION_ALLOWED_ERR: 7 NOT_FOUND_ERR: 8 NOT_SUPPORTED_ERR: 9 INUSE_ATTRIBUTE_ERR: 10 INVALID_STATE_ERR: 11 SYNTAX_ERR: 12 INVALID_MODIFICATION_ERR: 13 NAMESPACE_ERR: 14 INVALID_ACCESS_ERR: 15 VALIDATION_ERR: 16 TYPE_MISMATCH_ERR: 17 result: 2152924148 filename: http://10.10.2.233/xwiki/resources/js/xwiki/wysiwyg/xwe/5CB5F3FEC4B215F8 61E3FFD8E65C48BA.cache.html lineNumber: 4689 columnNumber: 0 inner: null data: null http://10.10.2.233/xwiki/resources/js/xwiki/wysiwyg/xwe/5CB5F3FEC4B215F8 61E3FFD8E65C48BA.cache.html Line 2791 Here is my code: function makeWysiwyg(targetArea, randomKey) { cacheId = 'wysiwygCache' + randomKey; $('cacheArea').insert({ bottom: 'input type=hidden id=' + cacheId + '' }); (function() { var field = document.getElementById(targetArea); if (field) { // Hide the element that will be wrapped by the WYSIWYG editor. field.style.visibility = 'hidden'; // Show the loading animation. var loading = document.createElement('span'); loading.className = 'loading'; loading.style.display = 'block'; loading.style.position = 'absolute'; loading.style.width = field.offsetWidth + 'px'; loading.style.height = field.offsetHeight + 'px'; field.parentNode.insertBefore(loading, field); // Remove the loading animation after the WYSIWYG module has been loaded. Wysiwyg.onModuleLoad(function() { loading.parentNode.removeChild(loading); }); } }).call(); var wysiwygConfigNew = { hookId: targetArea, cacheId: cacheId, syntax: 'xwiki/2.0', displayTabs: true, defaultEditor: wysiwyg, inputURL: 'javascript:parent.document.getElementById(' + targetArea + ').value', plugins: 'submit line separator embed text valign list indent history format symbol link image table macro import', menu: 'link image table macro import', toolbar: 'bold italic underline strikethrough | subscript superscript | unorderedlist orderedlist | outdent indent | undo redo | format | hr symbol', wiki: 'xwiki', space: 'ProjectManagement', page: 'UseCase-ForgotPassword', openofficeServerConnected:'false', debug: 'false' }; Wysiwyg.onModuleLoad(function() { new WysiwygEditor(wysiwygConfigNew); wysiwygConfigjRSc = undefined; }); } I am calling the makeWysiwyg function at the end of my Ajax.Request:onSuccess function, and passing a string representing the textarea that was just inserted and a random key generated via $util.generateRandomString(4) by the Ajax requested page (returned as a JSON object). Thanks! --Matthew -Original Message- From:
[xwiki-users] custom lucene search
Hi all! Need small help with custom lucene search. I need to organize searching inside only pages of my custom class and attachments of these pages. I can do this, if I write #set($extraClause = AND space:mySpace AND object:mySpaceCode.myCustomClass) this working great, but only for wiki-pages - not attachments of these pages. If I write only #set($extraClause = AND space:mySpace) - searching inside attachments working, but give me also pages not of myCustomClass. Maybe is it possible to write lucene query how I need? -- Thanks beforehand! Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/custom-lucene-search-tp5469147p5469147.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] Enable wysiwyg editor fordynamically createdobjects
That seems to have taken care of the problem, thank you very much! Never would have come up with the fake space/page/key on my own. --Matthew -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Marius Dumitru Florea Sent: Friday, August 27, 2010 5:27 AM To: users@xwiki.org Subject: Re: [xwiki-users] Enable wysiwyg editor fordynamically createdobjects Hi Matthew, I updated the example on http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule#HLoadon demandandshowsourcetext . Some notes: * the cache input works only if it is present on the page when the page is loaded. It is used to preserve the editor content against browser Back/Forward buttons. I don't think you need it since you load the editor on demand. * The inputURL I suggested is indeed not suited for you use case. If you load the editor on demand only when creating new objects, thus their WYSIWYG properties are empty, you can use an inputURL like this: $xwiki.getURL(FakeSpace.FakePage, edit, xpage=wysiwyginputrender=truekey=fake) (of course it needs to be evaluated) If you load the editor on demand also when objects are edited then you'll have to edit wysiwyginput.vm template so that it works with an URL like this: $xwiki.getURL(Blog.BlogIntroduction, edit, xpage=wysiwyginputrender=truefield=Blog.BlogPostClass_0_content) That it, read the field request parameter and feed the WYSIWYG editor with the corresponding value. I can help you with this if you need it. Hope this helps, Marius On 08/26/2010 06:21 PM, Matthew Hildebrand wrote: Marius, Thanks for the info. That got me pointed in the correct direction, and I've got the wysiwyg editor appearing. However there are a few weirdness issues... 1) Some of the CSS stylings are not being attached to the wysiwyg editor (the specific one that I have noticed is that tables no longer have shaded backgrounds on the headers or borders (using Colibri skin). 2) If I switch to source view and add some text, I am then unable to switch back to wysiwyg view. I get a cross-domain error: (NS_ERROR_DOM_BAD_URI): Access to restricted URI denied code: 1012 INDEX_SIZE_ERR: 1 DOMSTRING_SIZE_ERR: 2 HIERARCHY_REQUEST_ERR: 3 WRONG_DOCUMENT_ERR: 4 INVALID_CHARACTER_ERR: 5 NO_DATA_ALLOWED_ERR: 6 NO_MODIFICATION_ALLOWED_ERR: 7 NOT_FOUND_ERR: 8 NOT_SUPPORTED_ERR: 9 INUSE_ATTRIBUTE_ERR: 10 INVALID_STATE_ERR: 11 SYNTAX_ERR: 12 INVALID_MODIFICATION_ERR: 13 NAMESPACE_ERR: 14 INVALID_ACCESS_ERR: 15 VALIDATION_ERR: 16 TYPE_MISMATCH_ERR: 17 result: 2152924148 filename: http://10.10.2.233/xwiki/resources/js/xwiki/wysiwyg/xwe/5CB5F3FEC4B215 F8 61E3FFD8E65C48BA.cache.html lineNumber: 4689 columnNumber: 0 inner: null data: null http://10.10.2.233/xwiki/resources/js/xwiki/wysiwyg/xwe/5CB5F3FEC4B215 F8 61E3FFD8E65C48BA.cache.html Line 2791 Here is my code: function makeWysiwyg(targetArea, randomKey) { cacheId = 'wysiwygCache' + randomKey; $('cacheArea').insert({ bottom: 'input type=hidden id=' + cacheId + '' }); (function() { var field = document.getElementById(targetArea); if (field) { // Hide the element that will be wrapped by the WYSIWYG editor. field.style.visibility = 'hidden'; // Show the loading animation. var loading = document.createElement('span'); loading.className = 'loading'; loading.style.display = 'block'; loading.style.position = 'absolute'; loading.style.width = field.offsetWidth + 'px'; loading.style.height = field.offsetHeight + 'px'; field.parentNode.insertBefore(loading, field); // Remove the loading animation after the WYSIWYG module has been loaded. Wysiwyg.onModuleLoad(function() { loading.parentNode.removeChild(loading); }); } }).call(); var wysiwygConfigNew = { hookId: targetArea, cacheId: cacheId, syntax: 'xwiki/2.0', displayTabs: true, defaultEditor: wysiwyg, inputURL: 'javascript:parent.document.getElementById(' + targetArea + ').value', plugins: 'submit line separator embed text valign list indent history format symbol link image table macro import', menu: 'link image table macro import', toolbar: 'bold italic underline strikethrough | subscript superscript | unorderedlist orderedlist | outdent indent | undo redo | format | hr symbol', wiki: 'xwiki', space: 'ProjectManagement', page: 'UseCase-ForgotPassword', openofficeServerConnected:'false', debug: 'false' }; Wysiwyg.onModuleLoad(function() { new WysiwygEditor(wysiwygConfigNew);
Re: [xwiki-users] custom lucene search
I found the answer. In my situation need to write: #set($extraClause = AND space:etvcCV AND ( object:etvcCVcode.CurriculumClass OR type:attachment )) all is working great! -- Best Regards Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/custom-lucene-search-tp5469147p5470907.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] Help needed with customizing of Toucan skin
Hi Kaya, While I haven't worked with Toucan skin before, the easiest way to edit the .css file of any skin is to get the Firebug addon for the Firefox browser. Then its just a matter clicking on the html in the main panel, and seeing what css is related to which part of the skin in the right panel. http://getfirefox.com/ http://getfirebug.com/ Hope that helps, Lockie -- View this message in context: http://xwiki.475771.n2.nabble.com/Help-needed-with-customizing-of-Toucan-skin-tp5468570p5471583.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