Hi Marius,
Thanks for your response, the get action works very well for rendering the
target link as a part of my current page if the target link is originally
for view action, now I need to edit this content, which is only a part of
the page, I only need to edit this part, I tried to use get action to get
the dom portion of the edit action content and render it for this area in
the page, but it does not work, with get, I can only get the dom for view
html content, not edit html content, for example, for this url:
http://mydomain/xwiki/bin/edit/blog/Bering+Land+Bridge
if I use http://mydomain/xwiki/bin/get/blog/Bering+Land+Bridge, I will get
the content for view action of this:
http://mydomain/xwiki/bin/view/blog/Bering+Land+Bridge, not the content for
the edit action, I like to display the edit inline form for this area so
users can edit this part and keep the other parts of the page unchanged.
Any suggestions?
Thanks very much for your thoughtful help.
David
On Sat, Dec 15, 2012 at 5:29 AM, Marius Dumitru Florea <
mariusdumitru.florea(a)xwiki.com> wrote:
> On Sat, Dec 15, 2012 at 5:53 AM, Geo Du <dddu88(a)gmail.com> wrote:
> > Hi Marius,
> >
> > This works, but my problem is that I have a xwiki page, I have a link on
> > this page, when I click on this link, a javascript function is called,
> with
> > the call, I want to include a new xwiki page at the bottom of the current
> > page without reloading the current old content (like appending a new
> page to
> > the current page without change of the old content), the new appended
> > content could be in edit or view mode.
> > My question is the approach you have here is to use display macro, how to
> > trigger this macro inside javascript code? also how to avoid reloading
> the
> > old content when appending new content? since in the old page I have some
> > search results listed, I do not want to lose it and make users have to
> > search again.
>
> You cannot (directly) use the display macro in JavaScript code because
> they belong to two different worlds. The display macro is executed on
> the server side long before the JavaScript is executed on the client
> side, in the browser. What you have to do is to catch the click event
> on the link, make an AJAX (
> http://prototypejs.org/doc/latest/ajax/Ajax/index.html ) call to
> retrieve the target of that link (another wiki page I assume) and
> append it to the DOM document. In order to retrieve only the rendered
> content of the target page, without the page header, footer, panels,
> etc, you can use the 'get' action, e.g. /xwiki/bin/get/Sandbox/WebHome
> .
>
> Hope this helps,
> Marius
>
> >
> >
> > Thanks for your help.
> > David
> >
> > On Mon, Nov 5, 2012 at 3:33 AM, Marius Dumitru Florea
> > <mariusdumitru.florea(a)xwiki.com> wrote:
> >>
> >> The display macro works for me as you would expect. For instance, if I
> >> create a page with this content:
> >>
> >> ----------8<----------
> >> {{velocity}}
> >> Current action: $xcontext.action
> >> {{/velocity}}
> >>
> >> {{display reference="Blog.BlogIntroduction"/}}
> >> ---------->8----------
> >>
> >> in view mode I can see the blog post preceded by "Current action:
> >> view" and in "Inline Form" edit mode I can edit the blog post, which
> >> is preceded by "Current action: edit".
> >>
> >> Hope this helps,
> >> Marius
> >>
> >> On Fri, Nov 2, 2012 at 10:18 PM, Geo Du <dddu88(a)gmail.com> wrote:
> >> > Hi Marius,
> >> >
> >> > Thanks for your response, it works when I use display macro to include
> >> > the
> >> > testpage into the other page, but I need also to include (display) the
> >> > page
> >> > with inline mode inside the other page, since user can click the edit
> >> > pencil
> >> > button on the right corner of the testpage to edit it, right now the
> >> > edit
> >> > button will lead to the testpage in inline mode but the testpage is
> not
> >> > inside the other page which originally include(display) the testpage.
> >> >
> >> > So how to include or display a page with inline mode into another
> page?
> >> >
> >> > Thanks for your help.
> >> >
> >> > David
> >> >
> >> > On Fri, Nov 2, 2012 at 3:06 AM, Marius Dumitru Florea
> >> > <mariusdumitru.florea(a)xwiki.com> wrote:
> >> >>
> >> >> On Thu, Nov 1, 2012 at 10:51 PM, Geo Du <dddu88(a)gmail.com> wrote:
> >> >> >
> >> >> > Hi All,
> >> >> >
> >> >> > I want to include one page into another page in terms of content
> >> >> > instead
> >> >> > of
> >> >> > velocity code, for example, the Blog.WebHome is a page without
> >> >> > velocity
> >> >> > code if you choose Edit->Wiki, but it has Blog.BlogClass if you
> >> >> > select
> >> >> > Edit->Objects, from Blog.WebHome page, I can create a new post with
> >> >> > tile
> >> >> > testpage, now the Blog.testpage is the new page created that I need
> >> >> > to
> >> >> > include into another page, this testpage has no velocity code from
> >> >> > Edit_>Wiki. so how to include that page into a different page?
> >> >> >
> >> >>
> >> >> > I tried: include Macro, includeInContext Macro, includeTopic Macro,
> >> >> > none
> >> >> > of
> >> >> > them displays the testpage for me, any idea?
> >> >>
> >> >> "display" is the key. You want to display not to include. See
> >> >> http://extensions.xwiki.org/xwiki/bin/view/Extension/Display+Macro .
> >> >>
> >> >> Hope this helps,
> >> >> Marius
> >> >>
> >> >> >
> >> >> > Thanks very much for your help.
> >> >> >
> >> >> > David
> >> >> > _______________________________________________
> >> >> > devs mailing list
> >> >> > devs(a)xwiki.org
> >> >> > http://lists.xwiki.org/mailman/listinfo/devs
> >> >> _______________________________________________
> >> >> devs mailing list
> >> >> devs(a)xwiki.org
> >> >> http://lists.xwiki.org/mailman/listinfo/devs
> >> >
> >> >
> >
> >
>
Currently i wonder if it's possible to convert a XEM Wiki Farm to a simple XE
instance and select one of the subwikis as the new base for the instance?
My naive try wasn't successful: Set db.virtual = 1, change db name in
hibernate.cfg.xml to one of the subwikis.
Currenty I'm thinking about the long migration way. Export all needed Spaces
and Documents from the target subwiki and disable the virtual mode. Then
drop all tables in the main database and start with a new fresh instance to
import the packaged pages.
First way will be fast, last a bit painful and error-prone.
Greetings
Jan
--
View this message in context: http://xwiki.475771.n2.nabble.com/Converting-XEM-to-XE-with-specific-subwik…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Dear all,
For internal reasons, we want to completely disable watchlist notifications
on our *sandbox* instance. (We only want them on our *live* instance.) We
want to do this centrally, as it is not feasible to ask each user to
individually turn off their watchlist notifications on the sandbox.
As described in
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HConfigur…,
we cleared all fields in the Administration:Email section and saved the
changes. However, e-mails are still being sent out -- the only change I see
is that the From: address changed to the default address,
mailer(a)xwiki.localdomain.com.
Can anyone tell us how to centrally disable notification e-mails?
Thanks, Lisa
--
View this message in context: http://xwiki.475771.n2.nabble.com/How-do-you-DISABLE-all-watchlist-notifica…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, WYSIWYG editor experts!
Tomcat 7 + Nginx + brand new XEM 4.3.1 as ROOT application.
XWike works fine with short URLs according to manual http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs .
Even WYSIWYG editor works fine until you want to insert macro, image or link. In the Iframe there is an error instead of dialog options.
For example, clicking on Macro->Insert Macro gives following:
404 <html> <head><title> 404 Not Found </title></head> <body bgcolor="white"> <center><h1> 404 Not Found </h1></center> <hr><center>nginx/1.1.19</center> </body> </html>
Looks like some scripts can not locate something in /skins and /resources, but now I can't even guess where to look at and what to search.
Is it a bug and I should jira it OR this is expected behaviour and I miss something in short URLs settings?
How should it be fixed?
Config files settings:
1. xwiki.cfg:
xwiki.virtual.usepath=0
xwiki.showviewaction=0
xwiki.defaultservletpath=
2. web.xml. Following was added:
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
3. nginx:
location /skins/ {
root /var/lib/tomcat7/webapps/ROOT;
}
location /resources/ {
root /var/lib/tomcat7/webapps/ROOT;
}
Kind regards,
Dmitry
P.S. If one wants to see it live, I'll give an access, please write me in private.
Hello all, we've recently launched a new wiki and have been forced to switch
to Database Search because of an odd problem with Lucene. We have multiple
spaces, and when using Lucene, selecting a space from the drop-down list
does NOT return the expected (filtered) results. We still get results from
multiple spaces. Lucene seems to be prioritizing 'weight' over our selection
of a specific space.
We do not have this same problem with Database Search, which filters
correctly every time. Of course, we'd prefer to use Lucene because of the
strong query syntax and weighting.
I have searched forums for days and cannot seem to find someone who has had
the same issue. I feel like it's something simple ... will someone PLEASE
help?
Thank you much!
--
View this message in context: http://xwiki.475771.n2.nabble.com/Lucene-Search-does-not-correctly-filter-b…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Afternoon All,
Just a quick question, Does the ratings plugin work in Internet Explorer. As
its working when I test it in chrome and firefox but not IE8 & 9
Thanks
Carl
--
View this message in context: http://xwiki.475771.n2.nabble.com/Ratings-Plugin-tp7583349.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I just moved a xwiki i hosted from home to myxwiki.org and am finding a lot of things are different. Is it possible to get the open office server to work on the virtual wikis?
Thanks,
Regan
Hi,
I updated the virtual wiki http://scservicesub.myxwiki.org with the xwiki-enterprise-ui-all-4.4-rc-1 and now the Activity stream on the dashboard doesn't show anything. I am wondering if I need someone with programming rights to do the import?
I am used to running our wiki and now moving it to the virtual system and so many things seem to be hard to do....
Thanks,
Regan