Hi all,
Is there a way to handle text highlight event in xwiki?
In annotation component, when we highlight some text and then press ctrl+M,
Annotations popup is displayed.
How is this achieved?
I want to display a popup when user highlights some text on an xwiki page.
The popup will have a text box which will be pre-populated with the highlighted text.
Please suggest me a proper approach to achieve this.
Thanks in advance.
Thanks & Regards,
____________________________________________________________________
[cid:image001.gif@01D0EF1A.556ADFC0]Abdulkadar Patel
Consultant | GESBU
Capgemini India | Pune
Tel.: +91 20 6631 1755 - Extn: 20 12530
Mob.: + 91 8087683419
Email: abdulkadar.patel(a)capgemini.com<mailto:abdulkadar.patel@capgemini.com>
www.capgemini.com<http://www.capgemini.com/>
People matter, results count.
_______________________________________________________________________
7 Switch off as you go |q Recycle always | P Print only if absolutely necessary
Hi devs,
Checkout this commit
https://github.com/xwiki/xwiki-platform/commit/1805c5b1c2cf58d69760c1e0755c…
and it's comment. I added platform-security-script as mandatory top
level artifact in PackageMojo in order to fix some functional tests in
platform. I consider it to be a core module and ideally it should be
brought indirectly as a transitive dependency of the modules that are
using it. The problem is that I'm using it in the Velocity templates
from platform-web which doesn't declare any dependency ATM (they are
declared in enterprise-web). This is a quick fix for 7.2RC1. If you
have a better solution please speak.
Thanks,
Marius
Hi devs,
I recently discussed with Edy about how the breadcrumb should look and
there may be an inconsistency with the hierarchy displayed by the
document tree.
Breadcrumb on the main wiki:
Home Icon (pointing to the main wiki home page) / MDoc1 / MDoc2 / ... / MDocX
Breadcrumb on a subwiki (that has only global users):
Home Icon (pointing to the main wiki home page) / Subwiki Pretty Name
(pointing to the subwiki home page) / SDoc1 / SDoc2 / ... / SDocX
After seeing the breadcrumbs both on the main wiki and on a subwiki
the user might think that the document MDoc1 and the wiki "Subwiki
Pretty Name" are on the same level: both children of the main wiki.
Next if the user tries the document tree macro using:
{{documentTree showWikis="true" /}}
he will notice that "Subwiki Pretty Name" is not actually a child of
the main wiki but a top level node (a child of the "farm"), on the
same level with the main wiki.
Can this be considered as an inconsistency? In our model (e.g.
document reference) there is no hierarchy between wikis, although, as
Edy pointed out, there are places where we consider the main wiki to
be the "parent" of the subwikis (e.g. in the authorization module, by
inheriting access rights from the main wiki).
WDYT? Is the main wiki the parent of the subwikis or just a sibling?
Should the breadcrumb be synchronized with the tree?
Thanks,
Marius
Hi,
We are using mixed naming when referring to a document/page, not only on
different pages, but also in the same context (Rename step for example).
There is also an issue referring to this problem
XWIKI-5401<http://jira.xwiki.org/jira/browse/XWIKI-5401>and we need to
find an answer in order to move forward consistency.
So the question is which version we prefer: "Page" or "Document" ?
I'm voting +1 for "Page".
"Page" is more used IMO, especially in the "Space"/"Page" context.
"Page" is more general than "Document" and better fitted for a platform that
encapsulates all kind of content (not just documents).
Please cast your vote.
Thanks,
Caty
Hi devs,
Following a discussion at http://jira.xwiki.org/browse/XWIKI-12327# I’d like to propose to add this new best practice in the App Guide, i.e. at http://platform.xwiki.org/xwiki/bin/view/DevGuide/BestPractices
Rule: Do not use Skin-specific resources in Extensions/Applications
Rationale: If you do, then your Extension/Application will only work for that Skin. When the default skin in XWiki is modified, your Extension/Application will stop to work fine.
Example: This is what happened in apps like in the Forum app which was using: getSkinFile(“noavatar.png”) where “noavatar.png” was a Colibri-skin resource only. The Forum app was broken when we moved to Flamingo and the Forum app had to be modified to use getSkinFile("icons/xwiki/noavatar.png”) which is better since it’s a global resource, thus available to all Skins (see https://github.com/xwiki-contrib/application-forum/commit/3d3a99e5665265607…).
WDYT? Anyone disagree? I’d like to clos this topic quickly so that we can close XWIKI-12327.
Thanks
-Vincent
PS: Additional idea (I don’t know if it’s feasible): I wonder if we could even prevent getSkinFile() to return a skin-specific resource if the originating code is not from a resource from this Skin or if the originating code is not located in a Children Skin (i.e. a skin css, skin jss or skin vm). i.e. consider that skin-specific resources have a private access level.
Hi all,
I am novice in xwiki customization.
I need to develop a plugin which will call external REST web service of another application.
Please help me in achieving this.
I have created a popup modal widget where on click of submit I need to call this web service.
Thanks & Regards,
____________________________________________________________________
[cid:image001.gif@01D0E966.5713B630]Abdulkadar Patel
Consultant | GESBU
Capgemini India | Pune
Tel.: +91 20 6631 1755 - Extn: 20 12530
Mob.: + 91 8087683419
Email: abdulkadar.patel(a)capgemini.com<mailto:abdulkadar.patel@capgemini.com>
www.capgemini.com<http://www.capgemini.com/>
People matter, results count.
_______________________________________________________________________
7 Switch off as you go |q Recycle always | P Print only if absolutely necessary
In following article, it is nicely explained how we can integrate xwiki with jira using groovy
http://extensions.xwiki.org/xwiki/bin/view/Extension/JIRA+REST+Integration
But I don't understand how can I call this groovy code in xwiki.
I have created a popup dialog which will take information from user and create jira issue on submit.
How can I call groovy code on click of submit button?
Any help will be highly appreciated.
Thanks & Regards,
____________________________________________________________________
[cid:image001.gif@01D0E976.C6DB06C0]Abdulkadar Patel
Consultant | GESBU
Capgemini India | Pune
Tel.: +91 20 6631 1755 - Extn: 20 12530
Mob.: + 91 8087683419
Email: abdulkadar.patel(a)capgemini.com<mailto:abdulkadar.patel@capgemini.com>
www.capgemini.com<http://www.capgemini.com/>
People matter, results count.
_______________________________________________________________________
7 Switch off as you go |q Recycle always | P Print only if absolutely necessary
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Hi all,
I am very new to xwiki customization. So this query might seem quite novice.
I have a requirement where I need to display a new modal popup dialog on some shortcut key press.
I tried to replicate the code written for jumpToPage widget and modified shortcut key in ApplicationResource.properties
But dialog is not displayed on pressing new shortcut keys.
Can someone tell me which all files need to be modified to add such dialog?
Thanks & Regards,
____________________________________________________________________
[cid:image001.gif@01D0E731.65C0EAE0]Abdulkadar Patel
Consultant | GESBU
Capgemini India | Pune
Tel.: +91 20 6631 1755 - Extn: 20 12530
Mob.: + 91 8087683419
Email: abdulkadar.patel(a)capgemini.com<mailto:abdulkadar.patel@capgemini.com>
www.capgemini.com<http://www.capgemini.com/>
People matter, results count.
_______________________________________________________________________
7 Switch off as you go |q Recycle always | P Print only if absolutely necessary