Hello,
By default, my xWiki site uses the code:
#set($category = "$request.category")
#set($nbitems = "10")
#set($nbstart = $request.nbstart)
1 Entries for category $category
#includeMacros("Blog.Macros")
to display News/Blog entries on the site. The Blog.Macros code displays a "Next" link at the bottom of the page when the number of items exceeds groups of 10. But the link itself is not being built correctly. If you are specifically viewing a category, the category parameter is dropped from the URL when Next is clicked.
What is the best way to get this fixed?
Also, I would like to make some changes to the way that information is displayed on my site; such as display 10 complete articles at a time, not excerpts from articles.
All help is greatly appreciated.
Hi,
firstly, thanks to the xwiki team for thier great product!
one question:
is there any "translation support" in xwiki?:
when i see one page with a language preference, i see a specific version of
it (english in my example).
when i've got a portuguese preference, i see the last version of the page
edited with the portuguese label.
can i create a page, and associate with it the related translations?(the
original page and its translations have got the same url):
=> the url is the same for all the translations, but i can see translations
depending on my language preference.
is it the case?(we've created on our wiki, one page per translation.... =>
http://jguard.xwiki.com ).
sincerly yours,
Charles(jGuard team).
Hi all,
I'm interested in learning more about xwiki's macro features.
However this helpful-looking link from the FAQ (on http://www.xwiki.com/xwiki/bin/view/Doc/ ) is broken:
http://www.xwiki.com/xwiki/bin/view/Doc/WhereCanIFindTheSourceForTheDefault…
The error message for that FAQ item is:
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page Doc.WhereCanIFindTheSourceForTheDefaultMacroTagsLikeThe Wrapped Exception: Encountered "<EOF>" at line 1, column 70. Was expecting one of: "(" � <WHITESPACE> ...
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:131) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:87) at com.xpn.xwiki.render.XWikiRenderingEngine.renderText(XWikiRenderingEngine.java:116) at com.xpn.xwiki.render.XWikiRenderingEngine.renderText(XWikiRenderingEngine.java:93) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:224) at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:735) at com.xpn.xwiki.api.Document.display(Document.java:389)
[...]
Where's the best place to look to learn about macros?
Cheers,
Robin.
hello everybody !
I'd like to design a form with one database select field.
The xwiki standard distribution provides a good basic example with the
Category field within the XWiki.ArticleClass.
But some additional information could be helpful :
- a relational map of all the database tables involved in this application
- the names and descriptions of Hibernate objects corresponding to the
database objects so that I can fully undestand queries like this one :
select prop.value from BaseObject as obj, StringProperty as prop where
obj.className='Blog.Categories' and prop.id.id = obj.id and
prop.id.name='name'
(standard hibernate query for the category field)
- for my current project, I intend to automatically feed this table with
data updated in another database by another application software (CRM in
that case). So it's crucial to know with precision what XWiki requires
when managing "database select fields". Do you know about some existing
developments like this one ?
Thank you by advance for any information you could send to me ...
Pierre Carlier
pcarlier(a)repgroup.net
I would like to change the way News RSS feed works. I would like the entire post sent instead of just an excerpt. What is the best way to accomplish this?
There is zero documentation on what kind of spreadsheet functionality
works in XWiki tables. The only documented thing is SUM and it is
also the only thing I can get to work. Even simple things like
=(Address - Address) makes XWiki throw an exception on render.
Is there documentation somewhere that explains what can be done in
tables? Or is SUM about the, um, sum of it? I just wanted to have
one cell subtracted from another cell... is this possible?
I have an attachment that I would like to reference from multiple pages.
Is there a way to do that with the normal {attach:name} syntax? (something
like {attach:Space.name}, but that doesn't work). Thanks ...
shawn.
I'm having some trouble figuring out the virtual wiki configuration. I
followed the documentation as best I could, but I think I missed something.
1. I created the XWiki.XWikiServerClass using the code from xwiki.com and
added the "server" and "owner" fields.
2. I created XWiki.XWikiServerForm and XWiki.XWikiServerTemplate also based
on the code from xwiki.com.
3. I added an instance of the XWikiServerClass to XWikiServerTemplate.
4. I used the built-in form in XWiki.ServerClass to create a new server named
"RailPhotos" and filled in the "server" and "owner" fields. Server was set
to "railphotos.myserver.com" while owner was set to "XWiki.Admin". The
document created was XWiki.XWikiServerRailPhotos.
5. I enabled xwiki.virtual=1 in the configuration and restarted the server.
6. I created a database in MySQL named "RailPhotos" and populated it with
some data. The xwiki user has privileges on the database.
I then pointed my browser at railphotos.myserver.com and was greeted with the
following error:
-----
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from
fulfilling this request.
exception
javax.servlet.ServletException: Error number 2 in 0: The wiki railphotos does
not exist
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
root cause
com.xpn.xwiki.XWikiException: Error number 2 in 0: The wiki railphotos does
not exist
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:241)
com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
--
"Any sufficiently advanced technology is indistinguishable
from magic." -- Arthur C. Clarke
--
Brian D. Switzer
email: herkamur [at] canada [dot] com
web: http://bswitzer.railfan.net/
A start?
------- Forwarded message -------
From: "Marcelo Finkielsztein" <mfinky(a)gmail.com>
To: public-evangelist(a)w3.org
Subject: Fwd: Hippocratic Oath for Webmasters
Date: Mon, 28 Nov 2005 11:36:10 -0000
Hi,
I would like to see specific reference about spyware. Does point number 3
cover that?
Marcelo.
---------- Forwarded message ----------
From: Martin Poulter <M.L.Poulter(a)bristol.ac.uk>
Date: Nov 22, 2005 9:49 AM
Subject: Hippocratic Oath for Webmasters
To: public-evangelist(a)w3.org
Hello everybody,
I one of a small group of professional webmasters in the UK who
have regular physical meetings. We are trying to codify and promote best
practice. I am used to referring people to the W3C's QA efforts,
including the QA Tips page and TimBL's writings in
http://www.w3.org/Provider/Style/ .
However, the QA tips are not ideal for our purposes. They are
addressed to authors and webmasters. We want a statement of best
practice that is intelligible to users (so they recognise that someone is
working to make the web easier for them) and managers (so they
understand why we spend time working to achieve this). This led to the
idea of a "Webmaster Pledge", written as a letter to a user.
This is not a badge that requires a judging panel to enforce
it: I'm not revisiting "Top 5% of web sites". This is more like Buddhist
ethical codes ("I undertake to refrain from...") or maybe the Hippocratic
Oath.
After an initial brainstorming session, I've boiled down a
ten-point, 300-word pledge, which I've included at the foot of this
email. As you can imagine, it's very hard to make something that is in
plain English, technically correct, challenging, attainable and
non-presumptive about the nature of the site (educational, commercial,
personal...) being discussed. For instance, we say that URLs
should be bookmarkable, rather than URIs, because there might be
one-shot URIs used legitimately in some applications such as
e-commerce, but more importantly because the nontechnical audience is
more likely to recognise the term "URL".
A temporary site for the pledge, with annotations and more
background, has been created here:
http://www.economicsnetwork.ac.uk/cgi-bin/wiki.pl/Webmaster_Pledge
I've joined this list because I'd be interested in:
* Comments on the idea of a webmaster pledge
* Suggestions on any important topics that have been missed out
* Improvements to the form of words we have so far (especially ways to
make the first item succinct)
Thanks in advance for comments of any nature.
Webmaster Pledge v0.3
Authored by the HE Academy Technical Group, edited by Martin Poulter
1. Pages on our site will have a clear, consistent structure that lets
you find and use the content no matter whether you are using a
graphical, text-only, speech browser, mobile device or even reading the
page on a printout. Although we cannot guarantee a site will work on all
past, present and future browsers, we aim to be usable with all current
browsers and operating systems.
2. Content on our site will have meaningful URLs and be bookmarkable. If
we move or delete documents, the old URL will be redirected to a
relevant part of the site.
3. Our site will not break the controls on your web browser.
4. Links will give you a reasonable idea of what will happen when you
click on them, and warn you if it requires a large download or a helper
application.
5. We will regularly check for and replace broken links. Content that
isn't marked as archived or given a definite date will be regularly
checked.
6. The document content of the site will be searchable in a way that
supports multiple terms, phrases and combinations of terms. Search
results will show you the location of each file and its relevance to
your search terms.
7. We will not hold personal information about you without your express
permission.
8. We will never show you a bare error message. If there is an error
(e.g. incorrect password, mistyped link), you will be told what the
problem is and what you can do next.
9. We will not make content difficult to read with superfluous music or
animation or intrusive advertising.
10. When you use our site for a transaction, such as making a purchase
or creating a personal account, it will be clear at which stage you are
and what remains to be done.
More explanation of this version at
http://www.economicsnetwork.ac.uk/cgi-bin/wiki.pl/Webmaster_Pledge_v0.3
--
Dr Martin L Poulter Senior Technical Researcher, ILRT, Bristol, UK
Research interests: Philosophy of belief and Bayesian inductive logic
The full experience: http://www.weird.co.uk/martin/
Community blog: http://www.weird.co.uk/blog/
Politics wiki: http://www.infobomb.org/
--
Jim Stuttard