Please pardon me for asking, but I couldn't find a good answer for this in
the archive or in the FAQ.
On Main.WebHome and on just about every other page I get the nice left0side
menu. When I click on the various categories on the left, such as News or
Personal, it takes me to a page which shows the recent extracts for that
category, and the page title for all of these pages is Blog.Category.
Unfortunately, the left-sde menu is missing from all Blog.Category page
instances. How can I add it back in?
Also, is there any way to list all the links that have been created but do
not yet have their own pages? I will often just put brackets around
something with the intention of getting back to it later, but sometimes I
forget where they were. On the same note, is there any way to get a list of
all pages that have been created?
Thanks in advance!
Randy
Hi.
I've tried to create a blog exactly as described in tutorial, but I get
an error just after first step i.e. after 'save' or even 'preview' of
Test.BlogMacro page containing
#set($page = Blog.WebHome)
#includeForm("Test.BlogMacro")
The error is
Error number 4001 in 4: Error while parsing velocity page Test.BlogMacro
Wrapped Exception: Encountered "Blog" at line 1, column 14. Was
expecting one of: "[" ? "(" ? ? "true" ? "false" ? ? ? "{" ? "!" ?
Do you have any suggestions? Where to begin to look?
I'm using xwiki version 0.9.793.
Richard.
--
"First they ignore you. Then they laugh at you. Then they
fight you. Then you win." - Mohandas Gandhi.
Hi,
I try to display a document inlined of another one:
snippet from my CountryClassSheet:
<table border="1" cellspacing="0" cellpadding="2">
#foreach($prop in $class.properties)
<tr>
<td> *${prop.prettyName}* </td>
#if ($prop.name == "region")
<td>
#includeTopic("YlaTst.Sicilia")
</td>
#else
<td>$doc.display($prop.getName())</td>
#end
</tr>
#end
The problem is that the including document itself is included instead
of the YlaTst.Sicilia document ! It's inlined only once without
recursion.
What's wrong here?
Yves
Hi,
I have a class with a database list property which should give the
possibility to make a relation to another document. To achieve this I
put following hibernate query string to the property definition:
select obj.name from BaseObject as obj where
obj.className='MyApp.MyClass'
Now when I create a new object I can edit all other fields except the
one with the database list. Is there any problem with my hibernate
query? Btw, I found the query string in the Demo.RelationalFormDemo
class on the xwiki site. Additional question: what it the BaseObject
table? Is it changing depending on the context?
Thanks
Yves
Excellent, thanks!
Now, if there is just a way to add a toc, at least at the section level this
will be quite an acceptible work around.
- Mark
-----Original Message-----
From: Ludovic Dubost [mailto:ludovic@xwiki.com]
Sent: Thursday, September 22, 2005 2:16 PM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] replicate sectional editing behavior
Lichman, Mark Eugene wrote:
> Ok, I've gotten the first part (including all children in a page) with the
> following:
>
> #set($sql = "where doc.parent = '${doc.web}.${doc.name}'")
> #foreach($item in $xwiki.searchDocuments($sql))
> #includeTopic($item)
> #end
>
> Not sure how to do the rest.
>
>
To add a link:
#set($sql = "where doc.parent = '$doc.fullName'")
#foreach($item in $xwiki.searchDocuments($sql))
#set($itemdoc = $xwiki.getDocument($item))
<a href="$itemdoc.getURL("edit")">edit this section</a>
#includeTopic($item)
#end
To add a form field to create a new section.. Another solution could be
to automatically name pages using a counter and use the parent page name..
<form action="">
<input type="hidden" name="parent" value="$doc.fullName" />
Add a section: <input type="text" name="name" value="new section name" />
<input type="button" value="Go"
onclick='action="../../edit/${doc.web}/" + this.form.name.value;
this.form.submit();' />
</form>
Ludovic
> - Mark
>
>
> -----Original Message-----
> From: Lichman, Mark Eugene
> Sent: Thursday, September 22, 2005 12:28 PM
> To: xwiki-users(a)objectweb.org
> Subject: [xwiki-users] replicate sectional editing behavior
>
>
> I'd like to replicate sectional editing behavior. I think a possible way to do
> this is:
>
> 1. create a parent page and include all child pages,
> 2. for each child include a link to the edit page
> 3. add a class at the bottom of the parent page to create a new section, maybe
> automatically creating the link to the new sections edit page
>
> Is this possible? Could someon help me figure out how to do this, i.e. how to
> include all child page in a parent and create the necessaryv class.
>
> Thanks Much,
>
> - Mark Lichman
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the xwiki-users(a)objectweb.org
mailing list.
> To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
> For general help: mailto:sympa@objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic
Ok, I've gotten the first part (including all children in a page) with the
following:
#set($sql = "where doc.parent = '${doc.web}.${doc.name}'")
#foreach($item in $xwiki.searchDocuments($sql))
#includeTopic($item)
#end
Not sure how to do the rest.
- Mark
-----Original Message-----
From: Lichman, Mark Eugene
Sent: Thursday, September 22, 2005 12:28 PM
To: xwiki-users(a)objectweb.org
Subject: [xwiki-users] replicate sectional editing behavior
I'd like to replicate sectional editing behavior. I think a possible way to do
this is:
1. create a parent page and include all child pages,
2. for each child include a link to the edit page
3. add a class at the bottom of the parent page to create a new section, maybe
automatically creating the link to the new sections edit page
Is this possible? Could someon help me figure out how to do this, i.e. how to
include all child page in a parent and create the necessaryv class.
Thanks Much,
- Mark Lichman
Can someone explain how to change the xwiki logo in the upper left
corner of the pages so that all of them will be changed? I also want to
remove that gradient blue bar out of there so I can just put my company
logo on it and not worry about it looking funky. Is it really as
difficult as the howto on the xwiki.org site suggests or has someone
developed a quick and dirty howto on this? I am new at CSS and
inevitably will break something if I go messing with the skins.
Peace be with all of you,
Tim Suter