List Info

Thread: Re: how to create pages with templates




Re: how to create pages with templates
country flaguser name
Switzerland
2007-02-26 03:06:19
waqas khalid schrieb:
> Hi,
> I am a new one on lenya could any one tell me that how
could i create a
> new page using different templates. Currently i am
creating new pages
> using xhtml which acts as a default template for all
new pages but i
> want to create a new page using any desired template.
> looking forward for a postive feed back from all you
gurus.

You can either define different resource types, but this
makes sense
only if you want to use different XML schemas.

Here's some documentation about resource types:

http://lenya.apache.org/docs/1_4/reference/resourc
e-types.html

If you just want different XHTML layouts, you can add
multiple
<sample-name> elements to the resource type
declaration. Then you can
choose a sample on the "Create" page.

HTH,

-- Andreas


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


Re: how to create pages with templates
country flaguser name
Pakistan
2007-02-26 04:59:25
Hi,
I have tried to create a custom resource type using
following link.
     http://lenya.apache.org/docs/1_2_x/how-to/cust
om_resourcetype.html
But when i try to create a document i got an error msg
   "The requested document '/test11.html' with
document-id '/test11' does 
not exist."
although an xml document with same id is created in
content/authoring 
section but its not displayed.
I guess i am very close and you guys could make me more
closer thanks for 
your help.

--Waqas
>From: Andreas Hartmann <andreasapache.org>
>Reply-To: devlenya.apache.org
>To: devlenya.apache.org
>Subject: Re: how to create pages with templates
>Date: Mon, 26 Feb 2007 10:06:19 +0100
>
>waqas khalid schrieb:
> > Hi,
> > I am a new one on lenya could any one tell me that
how could i create a
> > new page using different templates. Currently i am
creating new pages
> > using xhtml which acts as a default template for
all new pages but i
> > want to create a new page using any desired
template.
> > looking forward for a postive feed back from all
you gurus.
>
>You can either define different resource types, but this
makes sense
>only if you want to use different XML schemas.
>
>Here's some documentation about resource types:
>
>http://lenya.apache.org/docs/1_4/reference/resourc
e-types.html
>
>If you just want different XHTML layouts, you can add
multiple
><sample-name> elements to the resource type
declaration. Then you can
>choose a sample on the "Create" page.
>
>HTH,
>
>-- Andreas
>
>
>--------------------------------------------------------
-------------
>To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
>For additional commands, e-mail: dev-helplenya.apache.org
>

____________________________________________________________
_____
Express yourself instantly with MSN Messenger! Download
today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471
ave/direct/01/


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )