You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Christian Schubert <jo...@gmail.com> on 2005/05/23 16:33:02 UTC

Restricted Templates

Hi all!

I thought about the best approach for the following situation:

We use Lenya as CMS for another System(Portal) named Jetspeed. To be
sure that we include and display the right content from Lenya we have
to fix the input field for the editors. For example:

We have a template like this:

Headline
---------------------
|                   |
---------------------

Subheadline
---------------------
|                   |
---------------------

Teaser
---------------------
|                   |
---------------------

Content
---------------------
|                   |
|                   |
|                   |
---------------------

Image
-------------------------------------
|                   |  Upload ...   |
-------------------------------------

How can we limit the editor to be sure that he can fill only this
fields (including file/asset upload)?

To abstract this approach, we need a template system where we can
describe exactly what field are filled out. I also read about Relax
NG, but this approach does not limit the input, but the Validation
afterwards.

Is there a best-practice? Any help is appreciated ;-)

Kind Regards
Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Restricted Templates

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Christian Schubert wrote:

> after i've checked out the cformedit I read that it it designed for
> the 1.4.x version... Could this be a problem? ;-)

well :) it is a proof of concept at this time. lenya 1.2 has the forms 
wizard for this purpose

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Restricted Templates

Posted by Christian Schubert <jo...@gmail.com>.
Hi

after i've checked out the cformedit I read that it it designed for
the 1.4.x version... Could this be a problem? ;-)

Regards
Christian

2005/5/24, Gregor J. Rothfuss <gr...@apache.org>:
> Christian Schubert wrote:
> 
> > We use Lenya as CMS for another System(Portal) named Jetspeed. To be
> > sure that we include and display the right content from Lenya we have
> > to fix the input field for the editors. For example:
> >
> > We have a template like this:
> >
> > Headline
> > ---------------------
> > |                   |
> > ---------------------
> 
> > How can we limit the editor to be sure that he can fill only this
> > fields (including file/asset upload)?
> >
> > To abstract this approach, we need a template system where we can
> > describe exactly what field are filled out. I also read about Relax
> > NG, but this approach does not limit the input, but the Validation
> > afterwards.
> 
> in lenya, this is done with a schema, as you found out. both bxe and the
> forms wizard use the schema to display appropriate form fields. the
> cforms example at
> http://svn.apache.org/viewcvs.cgi/lenya/sandbox/cformedit/ may also be
> helpful.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Restricted Templates

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Christian Schubert wrote:

> We use Lenya as CMS for another System(Portal) named Jetspeed. To be
> sure that we include and display the right content from Lenya we have
> to fix the input field for the editors. For example:
> 
> We have a template like this:
> 
> Headline
> ---------------------
> |                   |
> ---------------------

> How can we limit the editor to be sure that he can fill only this
> fields (including file/asset upload)?
> 
> To abstract this approach, we need a template system where we can
> describe exactly what field are filled out. I also read about Relax
> NG, but this approach does not limit the input, but the Validation
> afterwards.

in lenya, this is done with a schema, as you found out. both bxe and the 
forms wizard use the schema to display appropriate form fields. the 
cforms example at 
http://svn.apache.org/viewcvs.cgi/lenya/sandbox/cformedit/ may also be 
helpful.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org