You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Anish <an...@techblue.co.uk> on 2009/08/10 15:02:11 UTC

New Testimonial Module (Lenya 2.0.3) - Help

Hi All

I want to create a module "Testimonials" (it will handle all the 
operations related to the testimonials like writing, reading, editing, 
deleting etc.)
My idea of doing this is as follows:


*1. User will create a new testimonial using CMS menu.*

When user will click on "New Testimonial" option a new form will be 
there which will contain fields related to the new testimonial (name, 
info,     testimonial-text, picture etc). Then user will fill and save 
the testimonial.

*2. User will be able to update, delete testimonials using CMS.*

On the testimonial page in authoring area, there will be edit/delete 
option for each testimonial.

*3. All the testimonials will be placed in a single XML file.*

*4. In the live area there will be a testimonials page which will show 
all the testimonials as read only.*


*/*User here refers to CMS user./*


I don't have much idea about implementing/writing lenya usecases.


Please Suggest

-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Florent André <fl...@4sengines.com>.
Hi,

On Thu, 13 Aug 2009 13:12:21 +0530, Anish <an...@techblue.co.uk>
wrote:
>> Sorry, I don't understand your question.
> 
>> hummm, I don't think so. If we have this xml structure :
>> >> <testimonials>
>> >> <testimonial>
>> >> <title>blabla</title>
>> >> <content>......</content>
>> >> </testimonial>
>> >> <testimonial>
>> >> <title>blabla2</title>
>> >> <content>......2</content>
>> >> </testimonial>
>> >> </testimonials>
>> >>
>> >> When we edit with one-form editor and want to add a testimonial, just
>>   
>> add
>>   
>>>> >> <testi></testi> bloc.
>>>>       
> Hi Florent
> 
> I wanted to ask that how to add
> 
> <testi></testi> bloc.

Your users have to add <testimonial> node in the xml. This entry will be
validate when submitted.

> 
> While making it editable using one form editor. I'm not much clear about 
> this.

This is a good how-to explanation :
http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart4.html

regards


> 
> Please suggest.
> 
> 
> Florent André wrote:
>> Sorry, I don't understand your question.
>> ++
>> On Wed, 12 Aug 2009 21:09:39 +0530, Anish <an...@techblue.co.uk>
>> wrote:
>>   
>>>> hummm, I don't think so. If we have this xml structure :
>>>> <testimonials>
>>>> <testimonial>
>>>> <title>blabla</title>
>>>> <content>......</content>
>>>> </testimonial>
>>>> <testimonial>
>>>> <title>blabla2</title>
>>>> <content>......2</content>
>>>> </testimonial>
>>>> </testimonials>
>>>>
>>>> When we edit with one-form editor and want to add a testimonial, just
>>>>       
>> add
>>   
>>>> <testi></testi> bloc.
>>>>       
>>> Thanks for the response Florent, but how will it append the same XML. 
>>> I'm bit confused about this.
>>>
>>> Please suggest.
>>>
>>>
>>> Florent André wrote:
>>>     
>>>> On Wed, 12 Aug 2009 14:34:04 +0530, Anish <an...@techblue.co.uk>
>>>> wrote:
>>>>   
>>>>       
>>>>>> IMO steps are : 
>>>>>> 1 - define your xml testimonial's structure
>>>>>> 2 - build a rng
>>>>>> 3 - add module
>>>>>> 4 - enable a one form editor
>>>>>> 5 - add modif/suppress on each testi
>>>>>> 6 - enable form (with 1 field for each information)
>>>>>> 7 - add some cooool javascript 
>>>>>> 8 - be appy and drink some wine ! :)
>>>>>>   
>>>>>>       
>>>>>>           
>>>>> Hi Florent
>>>>>
>>>>> Thanks for the guidance, if I follow these steps, the module created 
>>>>> will work in a way that it will create different XMLs for each of the

>>>>> testimonial page like other index_{language}.xml files. But I wanted
>>>>> to
>>>>>         
>>
>>   
>>>>> place all the testimonials in a single XML file.
>>>>>
>>>>> Please correct me if I'm wrong.
>>>>>     
>>>>>         
>>>> hummm, I don't think so. If we have this xml structure :
>>>> <testimonials>
>>>> <testimonial>
>>>> <title>blabla</title>
>>>> <content>......</content>
>>>> </testimonial>
>>>> <testimonial>
>>>> <title>blabla2</title>
>>>> <content>......2</content>
>>>> </testimonial>
>>>> </testimonials>
>>>>
>>>> When we edit with one-form editor and want to add a testimonial, just
>>>>       
>> add
>>   
>>>> <testi></testi> bloc.
>>>>
>>>>
>>>> Another solution could be inspired by news module : 
>>>> - a testimonials component-instance that is a collection
>>>> - sub-testimonial component-instant that is a testimonial xml
structure
>>>>
>>>> In this case each testimonial is an xml file (in the testimonials
>>>> folder),
>>>> but when you open testimonials the collection aggregate for you each
>>>> single
>>>> xml in one.
>>>>
>>>> IMO this second solution have to be if content of each testimonial
>>>> could
>>>> be
>>>> long.
>>>>
>>>>
>>>> HTH and be careful that is just some dev ideas, I don't implement
>>>> something
>>>> like that (first no, second idea yes in a some way) for now.
>>>>
>>>> I'm interesting in this subject, so keep in touch.
>>>>
>>>> ++
>>>>
>>>>
>>>>
>>>>   
>>>>       
>>>>> Florent André wrote:
>>>>>     
>>>>>         
>>>>>> Hey ! What do you think about the name "FillByForm" for our "module
>>>>>> experience" ?
>>>>>> ++
>>>>>>
>>>>>> On Tue, 11 Aug 2009 19:14:38 +0200, Florent André
>>>>>> <fl...@4sengines.com> wrote:
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>> Hi Vik
>>>>>>>
>>>>>>> For me my requirements are : 
>>>>>>> - add and modify a vocabulary I have an xml like that :
>>>>>>> <voc:team>
>>>>>>> <voc:longname>Chealsea FC</voc:longname>
>>>>>>> <voc:shortname>Chelsea</voc:shortname>
>>>>>>> <voc:synonyms>
>>>>>>> <voc:synonym>Fulham stadium</voc:synonym>
>>>>>>> </voc:synonyms>
>>>>>>> <voc:team>
>>>>>>>
>>>>>>> - add some pre-defined properties (attributes values) to a link :
>>>>>>> <a href="...." evaluation="good|middle|bad">link description</a>. I
>>>>>>> would
>>>>>>> like that my user have just to select "evaluation" value in a
>>>>>>> drop-down
>>>>>>> list.
>>>>>>>
>>>>>>> For sure, we have to do one for see where it can be generalized,
but
>>>>>>> IMO,
>>>>>>> the hardest thing to made generic is the component-instance
>>>>>>> declaration
>>>>>>> [1].
>>>>>>> After that, the form to fill information would be hard to
>>>>>>> generalize,
>>>>>>> but
>>>>>>> if we use cform it will just be an xml to adapt to our
>>>>>>>             
>> requirements...
>>   
>>>>>>> I'm in the candy world ? :) (http://candyworld.free.fr/)
>>>>>>>
>>>>>>> Have a good day
>>>>>>>
>>>>>>> [1}
>>>>>>> <component-instance name="person" logger="lenya.resourcetypes"
>>>>>>>     class="org.apache.lenya.cms.publication.ResourceTypeImpl">
>>>>>>>     
>>>>>>>     <schema 
>>>>>>>        namespace="http://relaxng.org/ns/structure/0.9"
>>>>>>>       
>>>>>>>             
>> uri="fallback://lenya/modules/person/resources/schemas/foaf.rng"
>>   
>>>>>>>     />
>>>>>>>     
>>>>>>>     <!-- Default time cache time in seconds for this resource type
>>>>>>>             
>> -->
>>   
>>>>>>>         
>>>>>>>             
>>>>   
>>>>       
>>>>>>>     <expires seconds="3600" />
>>>>>>>     
>>>>>>>     <sample
>>>>>>>        name="Basic FOAF sample"
>>>>>>>        mime-type="application/rdf+xml"
>>>>>>>        uri="fallback://lenya/modules/person/samples/foaf.xml"
>>>>>>>     />
>>>>>>>     
>>>>>>>     <format name="xhtml" uri="cocoon://modules/person/xhtml.xml"/>
>>>>>>>     <format name="xhtml-include"
>>>>>>> uri="cocoon://modules/person/xhtml-include.xml"/>
>>>>>>>     <format name="icon" uri="cocoon://modules/person/icon"/>
>>>>>>>     
>>>>>>>   </component-instance>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, 11 Aug 2009 15:14:52 +0100, Vik Tara <vi...@propco.co.uk>
>>>>>>>             
>> wrote:
>>   
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>> Hi Florent,
>>>>>>>>
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>>>>> I also would like to do something like that. Not on testimonial,
>>>>>>>>>> but
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>> for
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>>> What's your requirement? I wonder if it can be made generic as you
>>>>>>>>           
>>>>>>>>               
>>>> say.
>>>>   
>>>>       
>>>>>>>> Also can any of the lenya dev's comment if we are following the
>>>>>>>>           
>>>>>>>>               
>>>> correct
>>>>   
>>>>       
>>>>>>>> approach?
>>>>>>>>
>>>>>>>> Or should we be defining a usecase?
>>>>>>>>
>>>>>>>> Regards
>>>>>>>>
>>>>>>>>
>>>>>>>> Vik
>>>>>>>>
>>>>>>>>
>>>>>>>> Florent André wrote:
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>>>> Hi Anish,
>>>>>>>>>
>>>>>>>>> I also would like to do something like that. Not on testimonial,
>>>>>>>>>                 
>> but
>>   
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>> for
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>>>>
>>>>>>>>> A very good first step will be : 
>>>>>>>>>
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>
http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart1.html
>>   
>>>>   
>>>>       
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>>>> IMO steps are : 
>>>>>>>>> 1 - define your xml testimonial's structure
>>>>>>>>> 2 - build a rng
>>>>>>>>> 3 - add module
>>>>>>>>> 4 - enable a one form editor
>>>>>>>>> 5 - add modif/suppress on each testi
>>>>>>>>> 6 - enable form (with 1 field for each information)
>>>>>>>>> 7 - add some cooool javascript 
>>>>>>>>> 8 - be appy and drink some wine ! :)
>>>>>>>>>
>>>>>>>>> for 1 to 4 I'm not really affraid... We have doc ! But for 5 to
>>>>>>>>>                 
>> 7...
>>   
>>>>>>>>> I you are OK to put your code on a public svn [1], I will like to
>>>>>>>>>             
>>>>>>>>>                 
>>>> code
>>>>   
>>>>       
>>>>>>>>> with
>>>>>>>>> you [2]
>>>>>>>>>
>>>>>>>>> ++
>>>>>>>>>
>>>>>>>>> [1] http://svn.4sengines.eu for example ? ;)
>>>>>>>>> [2] said this last phrase with a babe voice :) 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Mon, 10 Aug 2009 18:32:11 +0530, Anish
>>>>>>>>> <an...@techblue.co.uk>
>>>>>>>>> wrote:
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>> Hi All
>>>>>>>>>>
>>>>>>>>>> I want to create a module "Testimonials" (it will handle all the

>>>>>>>>>> operations related to the testimonials like writing, reading,
>>>>>>>>>> editing,
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>>>>> deleting etc.)
>>>>>>>>>> My idea of doing this is as follows:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> *1. User will create a new testimonial using CMS menu.*
>>>>>>>>>>
>>>>>>>>>> When user will click on "New Testimonial" option a new form will
>>>>>>>>>>                   
>> be
>>   
>>>>>>>>>> there which will contain fields related to the new testimonial
>>>>>>>>>>               
>>>>>>>>>>                   
>>>> (name,
>>>>   
>>>>       
>>>>>>>>>> info,     testimonial-text, picture etc). Then user will fill
and
>>>>>>>>>> save
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>>>>> the testimonial.
>>>>>>>>>>
>>>>>>>>>> *2. User will be able to update, delete testimonials using CMS.*
>>>>>>>>>>
>>>>>>>>>> On the testimonial page in authoring area, there will be
>>>>>>>>>> edit/delete
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>   
>>>>       
>>>>>>>>>> option for each testimonial.
>>>>>>>>>>
>>>>>>>>>> *3. All the testimonials will be placed in a single XML file.*
>>>>>>>>>>
>>>>>>>>>> *4. In the live area there will be a testimonials page which
will
>>>>>>>>>> show
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>>>>> all the testimonials as read only.*
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> */*User here refers to CMS user./*
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I don't have much idea about implementing/writing lenya
usecases.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Please Suggest
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>> ---------------------------------------------------------------------
>>   
>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>>>>
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>> ---------------------------------------------------------------------
>>   
>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>>
---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>
---------------------------------------------------------------------
>>>>>> 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
>>>>
>>>>
>>>>       
>>
>> ---------------------------------------------------------------------
>> 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: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Anish <an...@techblue.co.uk>.
>
> Once you have looked into it, if you could post how your are planning to
> do it, it would be helpful.
Sure Sir, I will definitely post.

Vik Tara wrote:
> Hi Anish,
>
>   
>> Thanks, I think changes on news module can work for me. This works
>> almost in the same way as per my requirements.... :-) 
>>     
> This sounds like a good way to proceed.
>
> Once you have looked into it, if you could post how your are planning to
> do it, it would be helpful.
>
> Maybe your patch can be included in the news module if people agree
> there is a benefit.
>
> Regards
>
>
> Vik
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>   


-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Vik Tara <vi...@propco.co.uk>.
Hi Anish,

> Thanks, I think changes on news module can work for me. This works
> almost in the same way as per my requirements.... :-) 
This sounds like a good way to proceed.

Once you have looked into it, if you could post how your are planning to
do it, it would be helpful.

Maybe your patch can be included in the news module if people agree
there is a benefit.

Regards


Vik

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


Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Anish <an...@techblue.co.uk>.
> So, take a look at the news modules. With just some modifications, you will
> have your testimonials capability.
Hi Florent

Thanks, I think changes on news module can work for me. This works 
almost in the same way as per my requirements.... :-)


Florent André wrote:
> On Thu, 13 Aug 2009 13:36:37 +0530, Anish <an...@techblue.co.uk>
> wrote:
>   
>>> is there a special reason why you want to store all testimonials in a 
>>> single page? My first idea would be to store them in separate 
>>> documents because this makes the repository much more flexible (e.g., 
>>> you have separate meta data and workflow instances for the
>>>       
> testimonials).
>   
>>> IMO the only reason for storing multiple content items in a single 
>>> document is the limited scalability of the sitetree, but this should 
>>> only be noticeable when there are several 10.000 or 100.000 documents.
>>>
>>> The collection resource type is a convenient way to handle collections 
>>> of documents. Maybe it could also be useful for the testimonials.
>>>
>>> -- Andreas
>>>       
>> Thanks Andreas,
>>
>> There is not any special reason of going for a single XML file.
>>
>> I got your point of storing separate documents, I agree it would be more 
>> convenient to handle version control, repository and other CMS related 
>> tasks if we go for separate XMLs.
>>     
>
> So, take a look at the news modules. With just some modifications, you will
> have your testimonials capability.
>
> ++
>
>
>   
>> Anish wrote:
>>     
>>>       
>>>> Sorry, I don't understand your question.
>>>>         
>>>> hummm, I don't think so. If we have this xml structure :
>>>>         
>>>>>> <testimonials>
>>>>>> <testimonial>
>>>>>> <title>blabla</title>
>>>>>> <content>......</content>
>>>>>> </testimonial>
>>>>>> <testimonial>
>>>>>> <title>blabla2</title>
>>>>>> <content>......2</content>
>>>>>> </testimonial>
>>>>>> </testimonials>
>>>>>>
>>>>>> When we edit with one-form editor and want to add a testimonial,
>>>>>>             
> just
>   
>>>>   
>>>> add
>>>>   
>>>>         
>>>>>>>> <testi></testi> bloc.
>>>>>>>>                 
>>>>>>       
>>>>>>             
>>> Hi Florent
>>>
>>> I wanted to ask that how to add
>>>
>>> <testi></testi> bloc.
>>>
>>> While making it editable using one form editor. I'm not much clear 
>>> about this.
>>>
>>> Please suggest.
>>>
>>>
>>> Florent André wrote:
>>>       
>>>> Sorry, I don't understand your question.
>>>> ++
>>>> On Wed, 12 Aug 2009 21:09:39 +0530, Anish <an...@techblue.co.uk>
>>>> <ma...@techblue.co.uk>
>>>> wrote:
>>>>   
>>>>         
>>>>>> hummm, I don't think so. If we have this xml structure :
>>>>>> <testimonials>
>>>>>> <testimonial>
>>>>>> <title>blabla</title>
>>>>>> <content>......</content>
>>>>>> </testimonial>
>>>>>> <testimonial>
>>>>>> <title>blabla2</title>
>>>>>> <content>......2</content>
>>>>>> </testimonial>
>>>>>> </testimonials>
>>>>>>
>>>>>> When we edit with one-form editor and want to add a testimonial, just
>>>>>>       
>>>>>>             
>>>> add
>>>>   
>>>>         
>>>>>> <testi></testi> bloc.
>>>>>>       
>>>>>>             
>>>>> Thanks for the response Florent, but how will it append the same XML. 
>>>>> I'm bit confused about this.
>>>>>
>>>>> Please suggest.
>>>>>
>>>>>
>>>>> Florent André wrote:
>>>>>     
>>>>>           
>>>>>> On Wed, 12 Aug 2009 14:34:04 +0530, Anish <an...@techblue.co.uk>
>>>>>> <ma...@techblue.co.uk>
>>>>>> wrote:
>>>>>>   
>>>>>>       
>>>>>>             
>>>>>>>> IMO steps are : 
>>>>>>>> 1 - define your xml testimonial's structure
>>>>>>>> 2 - build a rng
>>>>>>>> 3 - add module
>>>>>>>> 4 - enable a one form editor
>>>>>>>> 5 - add modif/suppress on each testi
>>>>>>>> 6 - enable form (with 1 field for each information)
>>>>>>>> 7 - add some cooool javascript 
>>>>>>>> 8 - be appy and drink some wine ! :)
>>>>>>>>   
>>>>>>>>       
>>>>>>>>           
>>>>>>>>                 
>>>>>>> Hi Florent
>>>>>>>
>>>>>>> Thanks for the guidance, if I follow these steps, the module created
>>>>>>>               
>
>   
>>>>>>> will work in a way that it will create different XMLs for each of
>>>>>>>               
> the
>   
>>>>>>> testimonial page like other index_{language}.xml files. But I wanted
>>>>>>> to
>>>>>>>         
>>>>>>>               
>>>>   
>>>>         
>>>>>>> place all the testimonials in a single XML file.
>>>>>>>
>>>>>>> Please correct me if I'm wrong.
>>>>>>>     
>>>>>>>         
>>>>>>>               
>>>>>> hummm, I don't think so. If we have this xml structure :
>>>>>> <testimonials>
>>>>>> <testimonial>
>>>>>> <title>blabla</title>
>>>>>> <content>......</content>
>>>>>> </testimonial>
>>>>>> <testimonial>
>>>>>> <title>blabla2</title>
>>>>>> <content>......2</content>
>>>>>> </testimonial>
>>>>>> </testimonials>
>>>>>>
>>>>>> When we edit with one-form editor and want to add a testimonial, just
>>>>>>       
>>>>>>             
>>>> add
>>>>   
>>>>         
>>>>>> <testi></testi> bloc.
>>>>>>
>>>>>>
>>>>>> Another solution could be inspired by news module : 
>>>>>> - a testimonials component-instance that is a collection
>>>>>> - sub-testimonial component-instant that is a testimonial xml
>>>>>> structure
>>>>>>
>>>>>> In this case each testimonial is an xml file (in the testimonials
>>>>>> folder),
>>>>>> but when you open testimonials the collection aggregate for you each
>>>>>> single
>>>>>> xml in one.
>>>>>>
>>>>>> IMO this second solution have to be if content of each testimonial
>>>>>> could
>>>>>> be
>>>>>> long.
>>>>>>
>>>>>>
>>>>>> HTH and be careful that is just some dev ideas, I don't implement
>>>>>> something
>>>>>> like that (first no, second idea yes in a some way) for now.
>>>>>>
>>>>>> I'm interesting in this subject, so keep in touch.
>>>>>>
>>>>>> ++
>>>>>>
>>>>>>
>>>>>>
>>>>>>   
>>>>>>       
>>>>>>             
>>>>>>> Florent André wrote:
>>>>>>>     
>>>>>>>         
>>>>>>>               
>>>>>>>> Hey ! What do you think about the name "FillByForm" for our "module
>>>>>>>> experience" ?
>>>>>>>> ++
>>>>>>>>
>>>>>>>> On Tue, 11 Aug 2009 19:14:38 +0200, Florent André
>>>>>>>> <fl...@4sengines.com>
>>>>>>>> <ma...@4sengines.com> wrote:
>>>>>>>>   
>>>>>>>>       
>>>>>>>>           
>>>>>>>>                 
>>>>>>>>> Hi Vik
>>>>>>>>>
>>>>>>>>> For me my requirements are : 
>>>>>>>>> - add and modify a vocabulary I have an xml like that :
>>>>>>>>> <voc:team>
>>>>>>>>> <voc:longname>Chealsea FC</voc:longname>
>>>>>>>>> <voc:shortname>Chelsea</voc:shortname>
>>>>>>>>> <voc:synonyms>
>>>>>>>>> <voc:synonym>Fulham stadium</voc:synonym>
>>>>>>>>> </voc:synonyms>
>>>>>>>>> <voc:team>
>>>>>>>>>
>>>>>>>>> - add some pre-defined properties (attributes values) to a link :
>>>>>>>>> <a href="...." evaluation="good|middle|bad">link description</a>.
>>>>>>>>>                   
> I
>   
>>>>>>>>> would
>>>>>>>>> like that my user have just to select "evaluation" value in a
>>>>>>>>> drop-down
>>>>>>>>> list.
>>>>>>>>>
>>>>>>>>> For sure, we have to do one for see where it can be generalized,
>>>>>>>>> but
>>>>>>>>> IMO,
>>>>>>>>> the hardest thing to made generic is the component-instance
>>>>>>>>> declaration
>>>>>>>>> [1].
>>>>>>>>> After that, the form to fill information would be hard to
>>>>>>>>> generalize,
>>>>>>>>> but
>>>>>>>>> if we use cform it will just be an xml to adapt to our
>>>>>>>>>             
>>>>>>>>>                   
>>>> requirements...
>>>>   
>>>>         
>>>>>>>>> I'm in the candy world ? :) (http://candyworld.free.fr/)
>>>>>>>>>
>>>>>>>>> Have a good day
>>>>>>>>>
>>>>>>>>> [1}
>>>>>>>>> <component-instance name="person" logger="lenya.resourcetypes"
>>>>>>>>>     class="org.apache.lenya.cms.publication.ResourceTypeImpl">
>>>>>>>>>     
>>>>>>>>>     <schema 
>>>>>>>>>        namespace="http://relaxng.org/ns/structure/0.9"
>>>>>>>>>        <http://relaxng.org/ns/structure/0.9>
>>>>>>>>>       
>>>>>>>>>             
>>>>>>>>>                   
>>>> uri="fallback://lenya/modules/person/resources/schemas/foaf.rng"
>>>>   
>>>>         
>>>>>>>>>     />
>>>>>>>>>     
>>>>>>>>>     <!-- Default time cache time in seconds for this resource type
>>>>>>>>>             
>>>>>>>>>                   
>>>> -->
>>>>   
>>>>         
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                   
>>>>>>   
>>>>>>       
>>>>>>             
>>>>>>>>>     <expires seconds="3600" />
>>>>>>>>>     
>>>>>>>>>     <sample
>>>>>>>>>        name="Basic FOAF sample"
>>>>>>>>>        mime-type="application/rdf+xml"
>>>>>>>>>        uri="fallback://lenya/modules/person/samples/foaf.xml"
>>>>>>>>>     />
>>>>>>>>>     
>>>>>>>>>     <format name="xhtml" uri="cocoon://modules/person/xhtml.xml"/>
>>>>>>>>>     <format name="xhtml-include"
>>>>>>>>> uri="cocoon://modules/person/xhtml-include.xml"/>
>>>>>>>>>     <format name="icon" uri="cocoon://modules/person/icon"/>
>>>>>>>>>     
>>>>>>>>>   </component-instance>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tue, 11 Aug 2009 15:14:52 +0100, Vik Tara <vi...@propco.co.uk>
>>>>>>>>> <ma...@propco.co.uk>
>>>>>>>>>             
>>>>>>>>>                   
>>>> wrote:
>>>>   
>>>>         
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                   
>>>>>>>>>> Hi Florent,
>>>>>>>>>>
>>>>>>>>>>       
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                     
>>>>>>>>>>>> I also would like to do something like that. Not on
>>>>>>>>>>>>                         
> testimonial,
>   
>>>>>>>>>>>> but
>>>>>>>>>>>>           
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                         
>>>>>>>>> for
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                   
>>>>>>>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>>>>>>>           
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                         
>>>>>>>>>> What's your requirement? I wonder if it can be made generic as
>>>>>>>>>>                     
> you
>   
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                     
>>>>>> say.
>>>>>>   
>>>>>>       
>>>>>>             
>>>>>>>>>> Also can any of the lenya dev's comment if we are following the
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                     
>>>>>> correct
>>>>>>   
>>>>>>       
>>>>>>             
>>>>>>>>>> approach?
>>>>>>>>>>
>>>>>>>>>> Or should we be defining a usecase?
>>>>>>>>>>
>>>>>>>>>> Regards
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Vik
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Florent André wrote:
>>>>>>>>>>       
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                     
>>>>>>>>>>> Hi Anish,
>>>>>>>>>>>
>>>>>>>>>>> I also would like to do something like that. Not on testimonial,
>>>>>>>>>>>                 
>>>>>>>>>>>                       
>>>> but
>>>>   
>>>>         
>>>>>>>>>>>         
>>>>>>>>>>>             
>>>>>>>>>>>                 
>>>>>>>>>>>                       
>>>>>>>> for
>>>>>>>>   
>>>>>>>>       
>>>>>>>>           
>>>>>>>>                 
>>>>>>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>>>>>>
>>>>>>>>>>> A very good first step will be : 
>>>>>>>>>>>
>>>>>>>>>>>         
>>>>>>>>>>>             
>>>>>>>>>>>                 
>>>>>>>>>>>                       
> http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart1.html
>   
>>>>   
>>>>         
>>>>>>   
>>>>>>       
>>>>>>             
>>>>>>>>   
>>>>>>>>       
>>>>>>>>           
>>>>>>>>                 
>>>>>>>>>>> IMO steps are : 
>>>>>>>>>>> 1 - define your xml testimonial's structure
>>>>>>>>>>> 2 - build a rng
>>>>>>>>>>> 3 - add module
>>>>>>>>>>> 4 - enable a one form editor
>>>>>>>>>>> 5 - add modif/suppress on each testi
>>>>>>>>>>> 6 - enable form (with 1 field for each information)
>>>>>>>>>>> 7 - add some cooool javascript 
>>>>>>>>>>> 8 - be appy and drink some wine ! :)
>>>>>>>>>>>
>>>>>>>>>>> for 1 to 4 I'm not really affraid... We have doc ! But for 5 to
>>>>>>>>>>>                 
>>>>>>>>>>>                       
>>>> 7...
>>>>   
>>>>         
>>>>>>>>>>> I you are OK to put your code on a public svn [1], I will like
>>>>>>>>>>>                       
> to
>   
>>>>>>>>>>>             
>>>>>>>>>>>                 
>>>>>>>>>>>                       
>>>>>> code
>>>>>>   
>>>>>>       
>>>>>>             
>>>>>>>>>>> with
>>>>>>>>>>> you [2]
>>>>>>>>>>>
>>>>>>>>>>> ++
>>>>>>>>>>>
>>>>>>>>>>> [1] http://svn.4sengines.eu for example ? ;)
>>>>>>>>>>> [2] said this last phrase with a babe voice :) 
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Mon, 10 Aug 2009 18:32:11 +0530, Anish
>>>>>>>>>>> <an...@techblue.co.uk> <ma...@techblue.co.uk>
>>>>>>>>>>> wrote:
>>>>>>>>>>>         
>>>>>>>>>>>             
>>>>>>>>>>>                 
>>>>>>>>>>>                       
>>>>>>>>>>>> Hi All
>>>>>>>>>>>>
>>>>>>>>>>>> I want to create a module "Testimonials" (it will handle all
>>>>>>>>>>>>                         
> the
>   
>>>>>>>>>>>> operations related to the testimonials like writing, reading,
>>>>>>>>>>>> editing,
>>>>>>>>>>>>           
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                         
>>>>>>>>   
>>>>>>>>       
>>>>>>>>           
>>>>>>>>                 
>>>>>>>>>>>> deleting etc.)
>>>>>>>>>>>> My idea of doing this is as follows:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> *1. User will create a new testimonial using CMS menu.*
>>>>>>>>>>>>
>>>>>>>>>>>> When user will click on "New Testimonial" option a new form
>>>>>>>>>>>>                         
> will
>   
>>>>>>>>>>>>                   
>>>>>>>>>>>>                         
>>>> be
>>>>   
>>>>         
>>>>>>>>>>>> there which will contain fields related to the new testimonial
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                         
>>>>>> (name,
>>>>>>   
>>>>>>       
>>>>>>             
>>>>>>>>>>>> info,     testimonial-text, picture etc). Then user will fill
>>>>>>>>>>>> and
>>>>>>>>>>>> save
>>>>>>>>>>>>           
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                         
>>>>>>>>   
>>>>>>>>       
>>>>>>>>           
>>>>>>>>                 
>>>>>>>>>>>> the testimonial.
>>>>>>>>>>>>
>>>>>>>>>>>> *2. User will be able to update, delete testimonials using
>>>>>>>>>>>>                         
> CMS.*
>   
>>>>>>>>>>>> On the testimonial page in authoring area, there will be
>>>>>>>>>>>> edit/delete
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                         
>>>>>>   
>>>>>>       
>>>>>>             
>>>>>>>>>>>> option for each testimonial.
>>>>>>>>>>>>
>>>>>>>>>>>> *3. All the testimonials will be placed in a single XML file.*
>>>>>>>>>>>>
>>>>>>>>>>>> *4. In the live area there will be a testimonials page which
>>>>>>>>>>>> will
>>>>>>>>>>>> show
>>>>>>>>>>>>           
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                         
>>>>>>>>   
>>>>>>>>       
>>>>>>>>           
>>>>>>>>                 
>>>>>>>>>>>> all the testimonials as read only.*
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> */*User here refers to CMS user./*
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> I don't have much idea about implementing/writing lenya
>>>>>>>>>>>> usecases.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Please Suggest
>>>>>>>>>>>>           
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                         
>>>> ---------------------------------------------------------------------
>>>>   
>>>>         
>>>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>>>>>>> <ma...@lenya.apache.org>
>>>>>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>>>>>> <ma...@lenya.apache.org>
>>>>>>>>>>>
>>>>>>>>>>>         
>>>>>>>>>>>             
>>>>>>>>>>>                 
>>>>>>>>>>>                       
>>>> ---------------------------------------------------------------------
>>>>   
>>>>         
>>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>>>>>> <ma...@lenya.apache.org>
>>>>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>>>>> <ma...@lenya.apache.org>
>>>>>>>>>>       
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                     
> ---------------------------------------------------------------------
>   
>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>>>>> <ma...@lenya.apache.org>
>>>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>>>> <ma...@lenya.apache.org>
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                   
> ---------------------------------------------------------------------
>   
>>>>>>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>>>>>>> <ma...@lenya.apache.org>
>>>>>>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>>>>>> <ma...@lenya.apache.org>
>>>>>>>>
>>>>>>>>
>>>>>>>>       
>>>>>>>>           
>>>>>>>>                 
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>>>>> <ma...@lenya.apache.org>
>>>>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>>>> <ma...@lenya.apache.org>
>>>>>>
>>>>>>
>>>>>>       
>>>>>>             
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>>> <ma...@lenya.apache.org>
>>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>> <ma...@lenya.apache.org>
>>>>
>>>>   
>>>>         
>>> -- 
>>> Anish Sneh
>>> Software Engineer
>>> Techblue Softwares Pvt. Ltd.
>>> www.technologyblueprint.co.uk <http://www.technologyblueprint.co.uk>
>>>
>>>
>>>
>>>       
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>   


-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Florent André <fl...@4sengines.com>.
On Thu, 13 Aug 2009 13:36:37 +0530, Anish <an...@techblue.co.uk>
wrote:
>> is there a special reason why you want to store all testimonials in a 
>> single page? My first idea would be to store them in separate 
>> documents because this makes the repository much more flexible (e.g., 
>> you have separate meta data and workflow instances for the
testimonials).
>>
>> IMO the only reason for storing multiple content items in a single 
>> document is the limited scalability of the sitetree, but this should 
>> only be noticeable when there are several 10.000 or 100.000 documents.
>>
>> The collection resource type is a convenient way to handle collections 
>> of documents. Maybe it could also be useful for the testimonials.
>>
>> -- Andreas
> 
> Thanks Andreas,
> 
> There is not any special reason of going for a single XML file.
> 
> I got your point of storing separate documents, I agree it would be more 
> convenient to handle version control, repository and other CMS related 
> tasks if we go for separate XMLs.

So, take a look at the news modules. With just some modifications, you will
have your testimonials capability.

++


> 
> 
> Anish wrote:
>>
>>
>>> Sorry, I don't understand your question.
>>
>>> hummm, I don't think so. If we have this xml structure :
>>> >> <testimonials>
>>> >> <testimonial>
>>> >> <title>blabla</title>
>>> >> <content>......</content>
>>> >> </testimonial>
>>> >> <testimonial>
>>> >> <title>blabla2</title>
>>> >> <content>......2</content>
>>> >> </testimonial>
>>> >> </testimonials>
>>> >>
>>> >> When we edit with one-form editor and want to add a testimonial,
just
>>>   
>>> add
>>>   
>>>>> >> <testi></testi> bloc.
>>>>>       
>> Hi Florent
>>
>> I wanted to ask that how to add
>>
>> <testi></testi> bloc.
>>
>> While making it editable using one form editor. I'm not much clear 
>> about this.
>>
>> Please suggest.
>>
>>
>> Florent André wrote:
>>> Sorry, I don't understand your question.
>>> ++
>>> On Wed, 12 Aug 2009 21:09:39 +0530, Anish <an...@techblue.co.uk>
>>> <ma...@techblue.co.uk>
>>> wrote:
>>>   
>>>>> hummm, I don't think so. If we have this xml structure :
>>>>> <testimonials>
>>>>> <testimonial>
>>>>> <title>blabla</title>
>>>>> <content>......</content>
>>>>> </testimonial>
>>>>> <testimonial>
>>>>> <title>blabla2</title>
>>>>> <content>......2</content>
>>>>> </testimonial>
>>>>> </testimonials>
>>>>>
>>>>> When we edit with one-form editor and want to add a testimonial, just
>>>>>       
>>> add
>>>   
>>>>> <testi></testi> bloc.
>>>>>       
>>>> Thanks for the response Florent, but how will it append the same XML. 
>>>> I'm bit confused about this.
>>>>
>>>> Please suggest.
>>>>
>>>>
>>>> Florent André wrote:
>>>>     
>>>>> On Wed, 12 Aug 2009 14:34:04 +0530, Anish <an...@techblue.co.uk>
>>>>> <ma...@techblue.co.uk>
>>>>> wrote:
>>>>>   
>>>>>       
>>>>>>> IMO steps are : 
>>>>>>> 1 - define your xml testimonial's structure
>>>>>>> 2 - build a rng
>>>>>>> 3 - add module
>>>>>>> 4 - enable a one form editor
>>>>>>> 5 - add modif/suppress on each testi
>>>>>>> 6 - enable form (with 1 field for each information)
>>>>>>> 7 - add some cooool javascript 
>>>>>>> 8 - be appy and drink some wine ! :)
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>> Hi Florent
>>>>>>
>>>>>> Thanks for the guidance, if I follow these steps, the module created

>>>>>> will work in a way that it will create different XMLs for each of
the
>>>>>>
>>>>>> testimonial page like other index_{language}.xml files. But I wanted
>>>>>> to
>>>>>>         
>>>   
>>>>>> place all the testimonials in a single XML file.
>>>>>>
>>>>>> Please correct me if I'm wrong.
>>>>>>     
>>>>>>         
>>>>> hummm, I don't think so. If we have this xml structure :
>>>>> <testimonials>
>>>>> <testimonial>
>>>>> <title>blabla</title>
>>>>> <content>......</content>
>>>>> </testimonial>
>>>>> <testimonial>
>>>>> <title>blabla2</title>
>>>>> <content>......2</content>
>>>>> </testimonial>
>>>>> </testimonials>
>>>>>
>>>>> When we edit with one-form editor and want to add a testimonial, just
>>>>>       
>>> add
>>>   
>>>>> <testi></testi> bloc.
>>>>>
>>>>>
>>>>> Another solution could be inspired by news module : 
>>>>> - a testimonials component-instance that is a collection
>>>>> - sub-testimonial component-instant that is a testimonial xml
>>>>> structure
>>>>>
>>>>> In this case each testimonial is an xml file (in the testimonials
>>>>> folder),
>>>>> but when you open testimonials the collection aggregate for you each
>>>>> single
>>>>> xml in one.
>>>>>
>>>>> IMO this second solution have to be if content of each testimonial
>>>>> could
>>>>> be
>>>>> long.
>>>>>
>>>>>
>>>>> HTH and be careful that is just some dev ideas, I don't implement
>>>>> something
>>>>> like that (first no, second idea yes in a some way) for now.
>>>>>
>>>>> I'm interesting in this subject, so keep in touch.
>>>>>
>>>>> ++
>>>>>
>>>>>
>>>>>
>>>>>   
>>>>>       
>>>>>> Florent André wrote:
>>>>>>     
>>>>>>         
>>>>>>> Hey ! What do you think about the name "FillByForm" for our "module
>>>>>>> experience" ?
>>>>>>> ++
>>>>>>>
>>>>>>> On Tue, 11 Aug 2009 19:14:38 +0200, Florent André
>>>>>>> <fl...@4sengines.com>
>>>>>>> <ma...@4sengines.com> wrote:
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>> Hi Vik
>>>>>>>>
>>>>>>>> For me my requirements are : 
>>>>>>>> - add and modify a vocabulary I have an xml like that :
>>>>>>>> <voc:team>
>>>>>>>> <voc:longname>Chealsea FC</voc:longname>
>>>>>>>> <voc:shortname>Chelsea</voc:shortname>
>>>>>>>> <voc:synonyms>
>>>>>>>> <voc:synonym>Fulham stadium</voc:synonym>
>>>>>>>> </voc:synonyms>
>>>>>>>> <voc:team>
>>>>>>>>
>>>>>>>> - add some pre-defined properties (attributes values) to a link :
>>>>>>>> <a href="...." evaluation="good|middle|bad">link description</a>.
I
>>>>>>>> would
>>>>>>>> like that my user have just to select "evaluation" value in a
>>>>>>>> drop-down
>>>>>>>> list.
>>>>>>>>
>>>>>>>> For sure, we have to do one for see where it can be generalized,
>>>>>>>> but
>>>>>>>> IMO,
>>>>>>>> the hardest thing to made generic is the component-instance
>>>>>>>> declaration
>>>>>>>> [1].
>>>>>>>> After that, the form to fill information would be hard to
>>>>>>>> generalize,
>>>>>>>> but
>>>>>>>> if we use cform it will just be an xml to adapt to our
>>>>>>>>             
>>> requirements...
>>>   
>>>>>>>> I'm in the candy world ? :) (http://candyworld.free.fr/)
>>>>>>>>
>>>>>>>> Have a good day
>>>>>>>>
>>>>>>>> [1}
>>>>>>>> <component-instance name="person" logger="lenya.resourcetypes"
>>>>>>>>     class="org.apache.lenya.cms.publication.ResourceTypeImpl">
>>>>>>>>     
>>>>>>>>     <schema 
>>>>>>>>        namespace="http://relaxng.org/ns/structure/0.9"
>>>>>>>>        <http://relaxng.org/ns/structure/0.9>
>>>>>>>>       
>>>>>>>>             
>>> uri="fallback://lenya/modules/person/resources/schemas/foaf.rng"
>>>   
>>>>>>>>     />
>>>>>>>>     
>>>>>>>>     <!-- Default time cache time in seconds for this resource type
>>>>>>>>             
>>> -->
>>>   
>>>>>>>>         
>>>>>>>>             
>>>>>   
>>>>>       
>>>>>>>>     <expires seconds="3600" />
>>>>>>>>     
>>>>>>>>     <sample
>>>>>>>>        name="Basic FOAF sample"
>>>>>>>>        mime-type="application/rdf+xml"
>>>>>>>>        uri="fallback://lenya/modules/person/samples/foaf.xml"
>>>>>>>>     />
>>>>>>>>     
>>>>>>>>     <format name="xhtml" uri="cocoon://modules/person/xhtml.xml"/>
>>>>>>>>     <format name="xhtml-include"
>>>>>>>> uri="cocoon://modules/person/xhtml-include.xml"/>
>>>>>>>>     <format name="icon" uri="cocoon://modules/person/icon"/>
>>>>>>>>     
>>>>>>>>   </component-instance>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, 11 Aug 2009 15:14:52 +0100, Vik Tara <vi...@propco.co.uk>
>>>>>>>> <ma...@propco.co.uk>
>>>>>>>>             
>>> wrote:
>>>   
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>> Hi Florent,
>>>>>>>>>
>>>>>>>>>       
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>>> I also would like to do something like that. Not on
testimonial,
>>>>>>>>>>> but
>>>>>>>>>>>           
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>> for
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>>>>>>           
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>> What's your requirement? I wonder if it can be made generic as
you
>>>>>>>>>           
>>>>>>>>>               
>>>>> say.
>>>>>   
>>>>>       
>>>>>>>>> Also can any of the lenya dev's comment if we are following the
>>>>>>>>>           
>>>>>>>>>               
>>>>> correct
>>>>>   
>>>>>       
>>>>>>>>> approach?
>>>>>>>>>
>>>>>>>>> Or should we be defining a usecase?
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Vik
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Florent André wrote:
>>>>>>>>>       
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>> Hi Anish,
>>>>>>>>>>
>>>>>>>>>> I also would like to do something like that. Not on testimonial,
>>>>>>>>>>                 
>>> but
>>>   
>>>>>>>>>>         
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>>>> for
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>>>>>
>>>>>>>>>> A very good first step will be : 
>>>>>>>>>>
>>>>>>>>>>         
>>>>>>>>>>             
>>>>>>>>>>                 
>>>
http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart1.html
>>>   
>>>>>   
>>>>>       
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>>>> IMO steps are : 
>>>>>>>>>> 1 - define your xml testimonial's structure
>>>>>>>>>> 2 - build a rng
>>>>>>>>>> 3 - add module
>>>>>>>>>> 4 - enable a one form editor
>>>>>>>>>> 5 - add modif/suppress on each testi
>>>>>>>>>> 6 - enable form (with 1 field for each information)
>>>>>>>>>> 7 - add some cooool javascript 
>>>>>>>>>> 8 - be appy and drink some wine ! :)
>>>>>>>>>>
>>>>>>>>>> for 1 to 4 I'm not really affraid... We have doc ! But for 5 to
>>>>>>>>>>                 
>>> 7...
>>>   
>>>>>>>>>> I you are OK to put your code on a public svn [1], I will like
to
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>> code
>>>>>   
>>>>>       
>>>>>>>>>> with
>>>>>>>>>> you [2]
>>>>>>>>>>
>>>>>>>>>> ++
>>>>>>>>>>
>>>>>>>>>> [1] http://svn.4sengines.eu for example ? ;)
>>>>>>>>>> [2] said this last phrase with a babe voice :) 
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Mon, 10 Aug 2009 18:32:11 +0530, Anish
>>>>>>>>>> <an...@techblue.co.uk> <ma...@techblue.co.uk>
>>>>>>>>>> wrote:
>>>>>>>>>>         
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>>>>>>>> Hi All
>>>>>>>>>>>
>>>>>>>>>>> I want to create a module "Testimonials" (it will handle all
the
>>>>>>>>>>>
>>>>>>>>>>> operations related to the testimonials like writing, reading,
>>>>>>>>>>> editing,
>>>>>>>>>>>           
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>>>>> deleting etc.)
>>>>>>>>>>> My idea of doing this is as follows:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> *1. User will create a new testimonial using CMS menu.*
>>>>>>>>>>>
>>>>>>>>>>> When user will click on "New Testimonial" option a new form
will
>>>>>>>>>>>                   
>>> be
>>>   
>>>>>>>>>>> there which will contain fields related to the new testimonial
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>> (name,
>>>>>   
>>>>>       
>>>>>>>>>>> info,     testimonial-text, picture etc). Then user will fill
>>>>>>>>>>> and
>>>>>>>>>>> save
>>>>>>>>>>>           
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>>>>> the testimonial.
>>>>>>>>>>>
>>>>>>>>>>> *2. User will be able to update, delete testimonials using
CMS.*
>>>>>>>>>>>
>>>>>>>>>>> On the testimonial page in authoring area, there will be
>>>>>>>>>>> edit/delete
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>   
>>>>>       
>>>>>>>>>>> option for each testimonial.
>>>>>>>>>>>
>>>>>>>>>>> *3. All the testimonials will be placed in a single XML file.*
>>>>>>>>>>>
>>>>>>>>>>> *4. In the live area there will be a testimonials page which
>>>>>>>>>>> will
>>>>>>>>>>> show
>>>>>>>>>>>           
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>>>>> all the testimonials as read only.*
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> */*User here refers to CMS user./*
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> I don't have much idea about implementing/writing lenya
>>>>>>>>>>> usecases.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Please Suggest
>>>>>>>>>>>           
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>> ---------------------------------------------------------------------
>>>   
>>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>>>>>> <ma...@lenya.apache.org>
>>>>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>>>>> <ma...@lenya.apache.org>
>>>>>>>>>>
>>>>>>>>>>         
>>>>>>>>>>             
>>>>>>>>>>                 
>>> ---------------------------------------------------------------------
>>>   
>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>>>>> <ma...@lenya.apache.org>
>>>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>>>> <ma...@lenya.apache.org>
>>>>>>>>>       
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>
---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>>>> <ma...@lenya.apache.org>
>>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>>> <ma...@lenya.apache.org>
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>
---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>>>>>> <ma...@lenya.apache.org>
>>>>>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>>>>> <ma...@lenya.apache.org>
>>>>>>>
>>>>>>>
>>>>>>>       
>>>>>>>           
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>>>> <ma...@lenya.apache.org>
>>>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>>> <ma...@lenya.apache.org>
>>>>>
>>>>>
>>>>>       
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>> <ma...@lenya.apache.org>
>>> For additional commands, e-mail: user-help@lenya.apache.org
>>> <ma...@lenya.apache.org>
>>>
>>>   
>>
>>
>> -- 
>> Anish Sneh
>> Software Engineer
>> Techblue Softwares Pvt. Ltd.
>> www.technologyblueprint.co.uk <http://www.technologyblueprint.co.uk>
>>
>>
>>

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


Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Anish <an...@techblue.co.uk>.
> is there a special reason why you want to store all testimonials in a 
> single page? My first idea would be to store them in separate 
> documents because this makes the repository much more flexible (e.g., 
> you have separate meta data and workflow instances for the testimonials).
>
> IMO the only reason for storing multiple content items in a single 
> document is the limited scalability of the sitetree, but this should 
> only be noticeable when there are several 10.000 or 100.000 documents.
>
> The collection resource type is a convenient way to handle collections 
> of documents. Maybe it could also be useful for the testimonials.
>
> -- Andreas

Thanks Andreas,

There is not any special reason of going for a single XML file.

I got your point of storing separate documents, I agree it would be more 
convenient to handle version control, repository and other CMS related 
tasks if we go for separate XMLs.


Anish wrote:
>
>
>> Sorry, I don't understand your question.
>
>> hummm, I don't think so. If we have this xml structure :
>> >> <testimonials>
>> >> <testimonial>
>> >> <title>blabla</title>
>> >> <content>......</content>
>> >> </testimonial>
>> >> <testimonial>
>> >> <title>blabla2</title>
>> >> <content>......2</content>
>> >> </testimonial>
>> >> </testimonials>
>> >>
>> >> When we edit with one-form editor and want to add a testimonial, just
>>   
>> add
>>   
>>>> >> <testi></testi> bloc.
>>>>       
> Hi Florent
>
> I wanted to ask that how to add
>
> <testi></testi> bloc.
>
> While making it editable using one form editor. I'm not much clear 
> about this.
>
> Please suggest.
>
>
> Florent André wrote:
>> Sorry, I don't understand your question.
>> ++
>> On Wed, 12 Aug 2009 21:09:39 +0530, Anish <an...@techblue.co.uk> <ma...@techblue.co.uk>
>> wrote:
>>   
>>>> hummm, I don't think so. If we have this xml structure :
>>>> <testimonials>
>>>> <testimonial>
>>>> <title>blabla</title>
>>>> <content>......</content>
>>>> </testimonial>
>>>> <testimonial>
>>>> <title>blabla2</title>
>>>> <content>......2</content>
>>>> </testimonial>
>>>> </testimonials>
>>>>
>>>> When we edit with one-form editor and want to add a testimonial, just
>>>>       
>> add
>>   
>>>> <testi></testi> bloc.
>>>>       
>>> Thanks for the response Florent, but how will it append the same XML. 
>>> I'm bit confused about this.
>>>
>>> Please suggest.
>>>
>>>
>>> Florent André wrote:
>>>     
>>>> On Wed, 12 Aug 2009 14:34:04 +0530, Anish <an...@techblue.co.uk> <ma...@techblue.co.uk>
>>>> wrote:
>>>>   
>>>>       
>>>>>> IMO steps are : 
>>>>>> 1 - define your xml testimonial's structure
>>>>>> 2 - build a rng
>>>>>> 3 - add module
>>>>>> 4 - enable a one form editor
>>>>>> 5 - add modif/suppress on each testi
>>>>>> 6 - enable form (with 1 field for each information)
>>>>>> 7 - add some cooool javascript 
>>>>>> 8 - be appy and drink some wine ! :)
>>>>>>   
>>>>>>       
>>>>>>           
>>>>> Hi Florent
>>>>>
>>>>> Thanks for the guidance, if I follow these steps, the module created 
>>>>> will work in a way that it will create different XMLs for each of the 
>>>>> testimonial page like other index_{language}.xml files. But I wanted to
>>>>>         
>>   
>>>>> place all the testimonials in a single XML file.
>>>>>
>>>>> Please correct me if I'm wrong.
>>>>>     
>>>>>         
>>>> hummm, I don't think so. If we have this xml structure :
>>>> <testimonials>
>>>> <testimonial>
>>>> <title>blabla</title>
>>>> <content>......</content>
>>>> </testimonial>
>>>> <testimonial>
>>>> <title>blabla2</title>
>>>> <content>......2</content>
>>>> </testimonial>
>>>> </testimonials>
>>>>
>>>> When we edit with one-form editor and want to add a testimonial, just
>>>>       
>> add
>>   
>>>> <testi></testi> bloc.
>>>>
>>>>
>>>> Another solution could be inspired by news module : 
>>>> - a testimonials component-instance that is a collection
>>>> - sub-testimonial component-instant that is a testimonial xml structure
>>>>
>>>> In this case each testimonial is an xml file (in the testimonials
>>>> folder),
>>>> but when you open testimonials the collection aggregate for you each
>>>> single
>>>> xml in one.
>>>>
>>>> IMO this second solution have to be if content of each testimonial could
>>>> be
>>>> long.
>>>>
>>>>
>>>> HTH and be careful that is just some dev ideas, I don't implement
>>>> something
>>>> like that (first no, second idea yes in a some way) for now.
>>>>
>>>> I'm interesting in this subject, so keep in touch.
>>>>
>>>> ++
>>>>
>>>>
>>>>
>>>>   
>>>>       
>>>>> Florent André wrote:
>>>>>     
>>>>>         
>>>>>> Hey ! What do you think about the name "FillByForm" for our "module
>>>>>> experience" ?
>>>>>> ++
>>>>>>
>>>>>> On Tue, 11 Aug 2009 19:14:38 +0200, Florent André
>>>>>> <fl...@4sengines.com> <ma...@4sengines.com> wrote:
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>> Hi Vik
>>>>>>>
>>>>>>> For me my requirements are : 
>>>>>>> - add and modify a vocabulary I have an xml like that :
>>>>>>> <voc:team>
>>>>>>> <voc:longname>Chealsea FC</voc:longname>
>>>>>>> <voc:shortname>Chelsea</voc:shortname>
>>>>>>> <voc:synonyms>
>>>>>>> <voc:synonym>Fulham stadium</voc:synonym>
>>>>>>> </voc:synonyms>
>>>>>>> <voc:team>
>>>>>>>
>>>>>>> - add some pre-defined properties (attributes values) to a link :
>>>>>>> <a href="...." evaluation="good|middle|bad">link description</a>. I
>>>>>>> would
>>>>>>> like that my user have just to select "evaluation" value in a
>>>>>>> drop-down
>>>>>>> list.
>>>>>>>
>>>>>>> For sure, we have to do one for see where it can be generalized, but
>>>>>>> IMO,
>>>>>>> the hardest thing to made generic is the component-instance
>>>>>>> declaration
>>>>>>> [1].
>>>>>>> After that, the form to fill information would be hard to generalize,
>>>>>>> but
>>>>>>> if we use cform it will just be an xml to adapt to our
>>>>>>>             
>> requirements...
>>   
>>>>>>> I'm in the candy world ? :) (http://candyworld.free.fr/)
>>>>>>>
>>>>>>> Have a good day
>>>>>>>
>>>>>>> [1}
>>>>>>> <component-instance name="person" logger="lenya.resourcetypes"
>>>>>>>     class="org.apache.lenya.cms.publication.ResourceTypeImpl">
>>>>>>>     
>>>>>>>     <schema 
>>>>>>>        namespace="http://relaxng.org/ns/structure/0.9" <http://relaxng.org/ns/structure/0.9>
>>>>>>>       
>>>>>>>             
>> uri="fallback://lenya/modules/person/resources/schemas/foaf.rng"
>>   
>>>>>>>     />
>>>>>>>     
>>>>>>>     <!-- Default time cache time in seconds for this resource type
>>>>>>>             
>> -->
>>   
>>>>>>>         
>>>>>>>             
>>>>   
>>>>       
>>>>>>>     <expires seconds="3600" />
>>>>>>>     
>>>>>>>     <sample
>>>>>>>        name="Basic FOAF sample"
>>>>>>>        mime-type="application/rdf+xml"
>>>>>>>        uri="fallback://lenya/modules/person/samples/foaf.xml"
>>>>>>>     />
>>>>>>>     
>>>>>>>     <format name="xhtml" uri="cocoon://modules/person/xhtml.xml"/>
>>>>>>>     <format name="xhtml-include"
>>>>>>> uri="cocoon://modules/person/xhtml-include.xml"/>
>>>>>>>     <format name="icon" uri="cocoon://modules/person/icon"/>
>>>>>>>     
>>>>>>>   </component-instance>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, 11 Aug 2009 15:14:52 +0100, Vik Tara <vi...@propco.co.uk> <ma...@propco.co.uk>
>>>>>>>             
>> wrote:
>>   
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>> Hi Florent,
>>>>>>>>
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>>>>> I also would like to do something like that. Not on testimonial,
>>>>>>>>>> but
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>> for
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>>> What's your requirement? I wonder if it can be made generic as you
>>>>>>>>           
>>>>>>>>               
>>>> say.
>>>>   
>>>>       
>>>>>>>> Also can any of the lenya dev's comment if we are following the
>>>>>>>>           
>>>>>>>>               
>>>> correct
>>>>   
>>>>       
>>>>>>>> approach?
>>>>>>>>
>>>>>>>> Or should we be defining a usecase?
>>>>>>>>
>>>>>>>> Regards
>>>>>>>>
>>>>>>>>
>>>>>>>> Vik
>>>>>>>>
>>>>>>>>
>>>>>>>> Florent André wrote:
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>>>> Hi Anish,
>>>>>>>>>
>>>>>>>>> I also would like to do something like that. Not on testimonial,
>>>>>>>>>                 
>> but
>>   
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>> for
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>>>>
>>>>>>>>> A very good first step will be : 
>>>>>>>>>
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>> http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart1.html
>>   
>>>>   
>>>>       
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>>>> IMO steps are : 
>>>>>>>>> 1 - define your xml testimonial's structure
>>>>>>>>> 2 - build a rng
>>>>>>>>> 3 - add module
>>>>>>>>> 4 - enable a one form editor
>>>>>>>>> 5 - add modif/suppress on each testi
>>>>>>>>> 6 - enable form (with 1 field for each information)
>>>>>>>>> 7 - add some cooool javascript 
>>>>>>>>> 8 - be appy and drink some wine ! :)
>>>>>>>>>
>>>>>>>>> for 1 to 4 I'm not really affraid... We have doc ! But for 5 to
>>>>>>>>>                 
>> 7...
>>   
>>>>>>>>> I you are OK to put your code on a public svn [1], I will like to
>>>>>>>>>             
>>>>>>>>>                 
>>>> code
>>>>   
>>>>       
>>>>>>>>> with
>>>>>>>>> you [2]
>>>>>>>>>
>>>>>>>>> ++
>>>>>>>>>
>>>>>>>>> [1] http://svn.4sengines.eu for example ? ;)
>>>>>>>>> [2] said this last phrase with a babe voice :) 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Mon, 10 Aug 2009 18:32:11 +0530, Anish
>>>>>>>>> <an...@techblue.co.uk> <ma...@techblue.co.uk>
>>>>>>>>> wrote:
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>> Hi All
>>>>>>>>>>
>>>>>>>>>> I want to create a module "Testimonials" (it will handle all the 
>>>>>>>>>> operations related to the testimonials like writing, reading,
>>>>>>>>>> editing,
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>>>>> deleting etc.)
>>>>>>>>>> My idea of doing this is as follows:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> *1. User will create a new testimonial using CMS menu.*
>>>>>>>>>>
>>>>>>>>>> When user will click on "New Testimonial" option a new form will
>>>>>>>>>>                   
>> be
>>   
>>>>>>>>>> there which will contain fields related to the new testimonial
>>>>>>>>>>               
>>>>>>>>>>                   
>>>> (name,
>>>>   
>>>>       
>>>>>>>>>> info,     testimonial-text, picture etc). Then user will fill and
>>>>>>>>>> save
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>>>>> the testimonial.
>>>>>>>>>>
>>>>>>>>>> *2. User will be able to update, delete testimonials using CMS.*
>>>>>>>>>>
>>>>>>>>>> On the testimonial page in authoring area, there will be
>>>>>>>>>> edit/delete
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>   
>>>>       
>>>>>>>>>> option for each testimonial.
>>>>>>>>>>
>>>>>>>>>> *3. All the testimonials will be placed in a single XML file.*
>>>>>>>>>>
>>>>>>>>>> *4. In the live area there will be a testimonials page which will
>>>>>>>>>> show
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>>>>> all the testimonials as read only.*
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> */*User here refers to CMS user./*
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I don't have much idea about implementing/writing lenya usecases.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Please Suggest
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>> ---------------------------------------------------------------------
>>   
>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org <ma...@lenya.apache.org>
>>>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org <ma...@lenya.apache.org>
>>>>>>>>>
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>> ---------------------------------------------------------------------
>>   
>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org <ma...@lenya.apache.org>
>>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org <ma...@lenya.apache.org>
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org <ma...@lenya.apache.org>
>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org <ma...@lenya.apache.org>
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org <ma...@lenya.apache.org>
>>>>>> For additional commands, e-mail: user-help@lenya.apache.org <ma...@lenya.apache.org>
>>>>>>
>>>>>>
>>>>>>       
>>>>>>           
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org <ma...@lenya.apache.org>
>>>> For additional commands, e-mail: user-help@lenya.apache.org <ma...@lenya.apache.org>
>>>>
>>>>
>>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org <ma...@lenya.apache.org>
>> For additional commands, e-mail: user-help@lenya.apache.org <ma...@lenya.apache.org>
>>
>>   
>
>
> -- 
> Anish Sneh
> Software Engineer
> Techblue Softwares Pvt. Ltd.
> www.technologyblueprint.co.uk <http://www.technologyblueprint.co.uk>
>
>
>   


-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Anish <an...@techblue.co.uk>.

> Sorry, I don't understand your question.

> hummm, I don't think so. If we have this xml structure :
> >> <testimonials>
> >> <testimonial>
> >> <title>blabla</title>
> >> <content>......</content>
> >> </testimonial>
> >> <testimonial>
> >> <title>blabla2</title>
> >> <content>......2</content>
> >> </testimonial>
> >> </testimonials>
> >>
> >> When we edit with one-form editor and want to add a testimonial, just
>   
> add
>   
>>> >> <testi></testi> bloc.
>>>       
Hi Florent

I wanted to ask that how to add

<testi></testi> bloc.

While making it editable using one form editor. I'm not much clear about 
this.

Please suggest.


Florent André wrote:
> Sorry, I don't understand your question.
> ++
> On Wed, 12 Aug 2009 21:09:39 +0530, Anish <an...@techblue.co.uk>
> wrote:
>   
>>> hummm, I don't think so. If we have this xml structure :
>>> <testimonials>
>>> <testimonial>
>>> <title>blabla</title>
>>> <content>......</content>
>>> </testimonial>
>>> <testimonial>
>>> <title>blabla2</title>
>>> <content>......2</content>
>>> </testimonial>
>>> </testimonials>
>>>
>>> When we edit with one-form editor and want to add a testimonial, just
>>>       
> add
>   
>>> <testi></testi> bloc.
>>>       
>> Thanks for the response Florent, but how will it append the same XML. 
>> I'm bit confused about this.
>>
>> Please suggest.
>>
>>
>> Florent André wrote:
>>     
>>> On Wed, 12 Aug 2009 14:34:04 +0530, Anish <an...@techblue.co.uk>
>>> wrote:
>>>   
>>>       
>>>>> IMO steps are : 
>>>>> 1 - define your xml testimonial's structure
>>>>> 2 - build a rng
>>>>> 3 - add module
>>>>> 4 - enable a one form editor
>>>>> 5 - add modif/suppress on each testi
>>>>> 6 - enable form (with 1 field for each information)
>>>>> 7 - add some cooool javascript 
>>>>> 8 - be appy and drink some wine ! :)
>>>>>   
>>>>>       
>>>>>           
>>>> Hi Florent
>>>>
>>>> Thanks for the guidance, if I follow these steps, the module created 
>>>> will work in a way that it will create different XMLs for each of the 
>>>> testimonial page like other index_{language}.xml files. But I wanted to
>>>>         
>
>   
>>>> place all the testimonials in a single XML file.
>>>>
>>>> Please correct me if I'm wrong.
>>>>     
>>>>         
>>> hummm, I don't think so. If we have this xml structure :
>>> <testimonials>
>>> <testimonial>
>>> <title>blabla</title>
>>> <content>......</content>
>>> </testimonial>
>>> <testimonial>
>>> <title>blabla2</title>
>>> <content>......2</content>
>>> </testimonial>
>>> </testimonials>
>>>
>>> When we edit with one-form editor and want to add a testimonial, just
>>>       
> add
>   
>>> <testi></testi> bloc.
>>>
>>>
>>> Another solution could be inspired by news module : 
>>> - a testimonials component-instance that is a collection
>>> - sub-testimonial component-instant that is a testimonial xml structure
>>>
>>> In this case each testimonial is an xml file (in the testimonials
>>> folder),
>>> but when you open testimonials the collection aggregate for you each
>>> single
>>> xml in one.
>>>
>>> IMO this second solution have to be if content of each testimonial could
>>> be
>>> long.
>>>
>>>
>>> HTH and be careful that is just some dev ideas, I don't implement
>>> something
>>> like that (first no, second idea yes in a some way) for now.
>>>
>>> I'm interesting in this subject, so keep in touch.
>>>
>>> ++
>>>
>>>
>>>
>>>   
>>>       
>>>> Florent André wrote:
>>>>     
>>>>         
>>>>> Hey ! What do you think about the name "FillByForm" for our "module
>>>>> experience" ?
>>>>> ++
>>>>>
>>>>> On Tue, 11 Aug 2009 19:14:38 +0200, Florent André
>>>>> <fl...@4sengines.com> wrote:
>>>>>   
>>>>>       
>>>>>           
>>>>>> Hi Vik
>>>>>>
>>>>>> For me my requirements are : 
>>>>>> - add and modify a vocabulary I have an xml like that :
>>>>>> <voc:team>
>>>>>> <voc:longname>Chealsea FC</voc:longname>
>>>>>> <voc:shortname>Chelsea</voc:shortname>
>>>>>> <voc:synonyms>
>>>>>> <voc:synonym>Fulham stadium</voc:synonym>
>>>>>> </voc:synonyms>
>>>>>> <voc:team>
>>>>>>
>>>>>> - add some pre-defined properties (attributes values) to a link :
>>>>>> <a href="...." evaluation="good|middle|bad">link description</a>. I
>>>>>> would
>>>>>> like that my user have just to select "evaluation" value in a
>>>>>> drop-down
>>>>>> list.
>>>>>>
>>>>>> For sure, we have to do one for see where it can be generalized, but
>>>>>> IMO,
>>>>>> the hardest thing to made generic is the component-instance
>>>>>> declaration
>>>>>> [1].
>>>>>> After that, the form to fill information would be hard to generalize,
>>>>>> but
>>>>>> if we use cform it will just be an xml to adapt to our
>>>>>>             
> requirements...
>   
>>>>>> I'm in the candy world ? :) (http://candyworld.free.fr/)
>>>>>>
>>>>>> Have a good day
>>>>>>
>>>>>> [1}
>>>>>> <component-instance name="person" logger="lenya.resourcetypes"
>>>>>>     class="org.apache.lenya.cms.publication.ResourceTypeImpl">
>>>>>>     
>>>>>>     <schema 
>>>>>>        namespace="http://relaxng.org/ns/structure/0.9"
>>>>>>       
>>>>>>             
> uri="fallback://lenya/modules/person/resources/schemas/foaf.rng"
>   
>>>>>>     />
>>>>>>     
>>>>>>     <!-- Default time cache time in seconds for this resource type
>>>>>>             
> -->
>   
>>>>>>         
>>>>>>             
>>>   
>>>       
>>>>>>     <expires seconds="3600" />
>>>>>>     
>>>>>>     <sample
>>>>>>        name="Basic FOAF sample"
>>>>>>        mime-type="application/rdf+xml"
>>>>>>        uri="fallback://lenya/modules/person/samples/foaf.xml"
>>>>>>     />
>>>>>>     
>>>>>>     <format name="xhtml" uri="cocoon://modules/person/xhtml.xml"/>
>>>>>>     <format name="xhtml-include"
>>>>>> uri="cocoon://modules/person/xhtml-include.xml"/>
>>>>>>     <format name="icon" uri="cocoon://modules/person/icon"/>
>>>>>>     
>>>>>>   </component-instance>
>>>>>>
>>>>>>
>>>>>> On Tue, 11 Aug 2009 15:14:52 +0100, Vik Tara <vi...@propco.co.uk>
>>>>>>             
> wrote:
>   
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>> Hi Florent,
>>>>>>>
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>>>>> I also would like to do something like that. Not on testimonial,
>>>>>>>>> but
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>> for
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>>> What's your requirement? I wonder if it can be made generic as you
>>>>>>>           
>>>>>>>               
>>> say.
>>>   
>>>       
>>>>>>> Also can any of the lenya dev's comment if we are following the
>>>>>>>           
>>>>>>>               
>>> correct
>>>   
>>>       
>>>>>>> approach?
>>>>>>>
>>>>>>> Or should we be defining a usecase?
>>>>>>>
>>>>>>> Regards
>>>>>>>
>>>>>>>
>>>>>>> Vik
>>>>>>>
>>>>>>>
>>>>>>> Florent André wrote:
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>>>> Hi Anish,
>>>>>>>>
>>>>>>>> I also would like to do something like that. Not on testimonial,
>>>>>>>>                 
> but
>   
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>> for
>>>>>   
>>>>>       
>>>>>           
>>>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>>>
>>>>>>>> A very good first step will be : 
>>>>>>>>
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
> http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart1.html
>   
>>>   
>>>       
>>>>>   
>>>>>       
>>>>>           
>>>>>>>> IMO steps are : 
>>>>>>>> 1 - define your xml testimonial's structure
>>>>>>>> 2 - build a rng
>>>>>>>> 3 - add module
>>>>>>>> 4 - enable a one form editor
>>>>>>>> 5 - add modif/suppress on each testi
>>>>>>>> 6 - enable form (with 1 field for each information)
>>>>>>>> 7 - add some cooool javascript 
>>>>>>>> 8 - be appy and drink some wine ! :)
>>>>>>>>
>>>>>>>> for 1 to 4 I'm not really affraid... We have doc ! But for 5 to
>>>>>>>>                 
> 7...
>   
>>>>>>>> I you are OK to put your code on a public svn [1], I will like to
>>>>>>>>             
>>>>>>>>                 
>>> code
>>>   
>>>       
>>>>>>>> with
>>>>>>>> you [2]
>>>>>>>>
>>>>>>>> ++
>>>>>>>>
>>>>>>>> [1] http://svn.4sengines.eu for example ? ;)
>>>>>>>> [2] said this last phrase with a babe voice :) 
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, 10 Aug 2009 18:32:11 +0530, Anish
>>>>>>>> <an...@techblue.co.uk>
>>>>>>>> wrote:
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>> Hi All
>>>>>>>>>
>>>>>>>>> I want to create a module "Testimonials" (it will handle all the 
>>>>>>>>> operations related to the testimonials like writing, reading,
>>>>>>>>> editing,
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>   
>>>>>       
>>>>>           
>>>>>>>>> deleting etc.)
>>>>>>>>> My idea of doing this is as follows:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> *1. User will create a new testimonial using CMS menu.*
>>>>>>>>>
>>>>>>>>> When user will click on "New Testimonial" option a new form will
>>>>>>>>>                   
> be
>   
>>>>>>>>> there which will contain fields related to the new testimonial
>>>>>>>>>               
>>>>>>>>>                   
>>> (name,
>>>   
>>>       
>>>>>>>>> info,     testimonial-text, picture etc). Then user will fill and
>>>>>>>>> save
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>   
>>>>>       
>>>>>           
>>>>>>>>> the testimonial.
>>>>>>>>>
>>>>>>>>> *2. User will be able to update, delete testimonials using CMS.*
>>>>>>>>>
>>>>>>>>> On the testimonial page in authoring area, there will be
>>>>>>>>> edit/delete
>>>>>>>>>               
>>>>>>>>>                   
>>>   
>>>       
>>>>>>>>> option for each testimonial.
>>>>>>>>>
>>>>>>>>> *3. All the testimonials will be placed in a single XML file.*
>>>>>>>>>
>>>>>>>>> *4. In the live area there will be a testimonials page which will
>>>>>>>>> show
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>   
>>>>>       
>>>>>           
>>>>>>>>> all the testimonials as read only.*
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> */*User here refers to CMS user./*
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I don't have much idea about implementing/writing lenya usecases.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Please Suggest
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
> ---------------------------------------------------------------------
>   
>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>>>
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
> ---------------------------------------------------------------------
>   
>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>     
>>>>>>         
>>>>>>             
>>>>> ---------------------------------------------------------------------
>>>>> 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
>>>
>>>
>>>       
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>   


-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Florent André <fl...@4sengines.com>.
Sorry, I don't understand your question.
++
On Wed, 12 Aug 2009 21:09:39 +0530, Anish <an...@techblue.co.uk>
wrote:
>>
>> hummm, I don't think so. If we have this xml structure :
>> <testimonials>
>> <testimonial>
>> <title>blabla</title>
>> <content>......</content>
>> </testimonial>
>> <testimonial>
>> <title>blabla2</title>
>> <content>......2</content>
>> </testimonial>
>> </testimonials>
>>
>> When we edit with one-form editor and want to add a testimonial, just
add
>> <testi></testi> bloc.
> 
> Thanks for the response Florent, but how will it append the same XML. 
> I'm bit confused about this.
> 
> Please suggest.
> 
> 
> Florent André wrote:
>> On Wed, 12 Aug 2009 14:34:04 +0530, Anish <an...@techblue.co.uk>
>> wrote:
>>   
>>>> IMO steps are : 
>>>> 1 - define your xml testimonial's structure
>>>> 2 - build a rng
>>>> 3 - add module
>>>> 4 - enable a one form editor
>>>> 5 - add modif/suppress on each testi
>>>> 6 - enable form (with 1 field for each information)
>>>> 7 - add some cooool javascript 
>>>> 8 - be appy and drink some wine ! :)
>>>>   
>>>>       
>>> Hi Florent
>>>
>>> Thanks for the guidance, if I follow these steps, the module created 
>>> will work in a way that it will create different XMLs for each of the 
>>> testimonial page like other index_{language}.xml files. But I wanted to

>>> place all the testimonials in a single XML file.
>>>
>>> Please correct me if I'm wrong.
>>>     
>>
>> hummm, I don't think so. If we have this xml structure :
>> <testimonials>
>> <testimonial>
>> <title>blabla</title>
>> <content>......</content>
>> </testimonial>
>> <testimonial>
>> <title>blabla2</title>
>> <content>......2</content>
>> </testimonial>
>> </testimonials>
>>
>> When we edit with one-form editor and want to add a testimonial, just
add
>> <testi></testi> bloc.
>>
>>
>> Another solution could be inspired by news module : 
>> - a testimonials component-instance that is a collection
>> - sub-testimonial component-instant that is a testimonial xml structure
>>
>> In this case each testimonial is an xml file (in the testimonials
>> folder),
>> but when you open testimonials the collection aggregate for you each
>> single
>> xml in one.
>>
>> IMO this second solution have to be if content of each testimonial could
>> be
>> long.
>>
>>
>> HTH and be careful that is just some dev ideas, I don't implement
>> something
>> like that (first no, second idea yes in a some way) for now.
>>
>> I'm interesting in this subject, so keep in touch.
>>
>> ++
>>
>>
>>
>>   
>>> Florent André wrote:
>>>     
>>>> Hey ! What do you think about the name "FillByForm" for our "module
>>>> experience" ?
>>>> ++
>>>>
>>>> On Tue, 11 Aug 2009 19:14:38 +0200, Florent André
>>>> <fl...@4sengines.com> wrote:
>>>>   
>>>>       
>>>>> Hi Vik
>>>>>
>>>>> For me my requirements are : 
>>>>> - add and modify a vocabulary I have an xml like that :
>>>>> <voc:team>
>>>>> <voc:longname>Chealsea FC</voc:longname>
>>>>> <voc:shortname>Chelsea</voc:shortname>
>>>>> <voc:synonyms>
>>>>> <voc:synonym>Fulham stadium</voc:synonym>
>>>>> </voc:synonyms>
>>>>> <voc:team>
>>>>>
>>>>> - add some pre-defined properties (attributes values) to a link :
>>>>> <a href="...." evaluation="good|middle|bad">link description</a>. I
>>>>> would
>>>>> like that my user have just to select "evaluation" value in a
>>>>> drop-down
>>>>> list.
>>>>>
>>>>> For sure, we have to do one for see where it can be generalized, but
>>>>> IMO,
>>>>> the hardest thing to made generic is the component-instance
>>>>> declaration
>>>>> [1].
>>>>> After that, the form to fill information would be hard to generalize,
>>>>> but
>>>>> if we use cform it will just be an xml to adapt to our
requirements...
>>>>>
>>>>> I'm in the candy world ? :) (http://candyworld.free.fr/)
>>>>>
>>>>> Have a good day
>>>>>
>>>>> [1}
>>>>> <component-instance name="person" logger="lenya.resourcetypes"
>>>>>     class="org.apache.lenya.cms.publication.ResourceTypeImpl">
>>>>>     
>>>>>     <schema 
>>>>>        namespace="http://relaxng.org/ns/structure/0.9"
>>>>>       
uri="fallback://lenya/modules/person/resources/schemas/foaf.rng"
>>>>>     />
>>>>>     
>>>>>     <!-- Default time cache time in seconds for this resource type
-->
>>>>>
>>>>>         
>>
>>   
>>>>>     <expires seconds="3600" />
>>>>>     
>>>>>     <sample
>>>>>        name="Basic FOAF sample"
>>>>>        mime-type="application/rdf+xml"
>>>>>        uri="fallback://lenya/modules/person/samples/foaf.xml"
>>>>>     />
>>>>>     
>>>>>     <format name="xhtml" uri="cocoon://modules/person/xhtml.xml"/>
>>>>>     <format name="xhtml-include"
>>>>> uri="cocoon://modules/person/xhtml-include.xml"/>
>>>>>     <format name="icon" uri="cocoon://modules/person/icon"/>
>>>>>     
>>>>>   </component-instance>
>>>>>
>>>>>
>>>>> On Tue, 11 Aug 2009 15:14:52 +0100, Vik Tara <vi...@propco.co.uk>
wrote:
>>>>>     
>>>>>         
>>>>>> Hi Florent,
>>>>>>
>>>>>>       
>>>>>>           
>>>>>>>> I also would like to do something like that. Not on testimonial,
>>>>>>>> but
>>>>>>>>           
>>>>>>>>               
>>>>> for
>>>>>     
>>>>>         
>>>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>>>           
>>>>>>>>               
>>>>>> What's your requirement? I wonder if it can be made generic as you
>>>>>>           
>> say.
>>   
>>>>>> Also can any of the lenya dev's comment if we are following the
>>>>>>           
>> correct
>>   
>>>>>> approach?
>>>>>>
>>>>>> Or should we be defining a usecase?
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>>
>>>>>> Vik
>>>>>>
>>>>>>
>>>>>> Florent André wrote:
>>>>>>       
>>>>>>           
>>>>>>> Hi Anish,
>>>>>>>
>>>>>>> I also would like to do something like that. Not on testimonial,
but
>>>>>>>         
>>>>>>>             
>>>> for
>>>>   
>>>>       
>>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>>
>>>>>>> A very good first step will be : 
>>>>>>>
>>>>>>>         
>>>>>>>             
>>
http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart1.html
>>   
>>>>   
>>>>       
>>>>>>> IMO steps are : 
>>>>>>> 1 - define your xml testimonial's structure
>>>>>>> 2 - build a rng
>>>>>>> 3 - add module
>>>>>>> 4 - enable a one form editor
>>>>>>> 5 - add modif/suppress on each testi
>>>>>>> 6 - enable form (with 1 field for each information)
>>>>>>> 7 - add some cooool javascript 
>>>>>>> 8 - be appy and drink some wine ! :)
>>>>>>>
>>>>>>> for 1 to 4 I'm not really affraid... We have doc ! But for 5 to
7...
>>>>>>>
>>>>>>> I you are OK to put your code on a public svn [1], I will like to
>>>>>>>             
>> code
>>   
>>>>>>> with
>>>>>>> you [2]
>>>>>>>
>>>>>>> ++
>>>>>>>
>>>>>>> [1] http://svn.4sengines.eu for example ? ;)
>>>>>>> [2] said this last phrase with a babe voice :) 
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Mon, 10 Aug 2009 18:32:11 +0530, Anish
>>>>>>> <an...@techblue.co.uk>
>>>>>>> wrote:
>>>>>>>         
>>>>>>>             
>>>>>>>> Hi All
>>>>>>>>
>>>>>>>> I want to create a module "Testimonials" (it will handle all the 
>>>>>>>> operations related to the testimonials like writing, reading,
>>>>>>>> editing,
>>>>>>>>           
>>>>>>>>               
>>>>   
>>>>       
>>>>>>>> deleting etc.)
>>>>>>>> My idea of doing this is as follows:
>>>>>>>>
>>>>>>>>
>>>>>>>> *1. User will create a new testimonial using CMS menu.*
>>>>>>>>
>>>>>>>> When user will click on "New Testimonial" option a new form will
be
>>>>>>>>
>>>>>>>> there which will contain fields related to the new testimonial
>>>>>>>>               
>> (name,
>>   
>>>>>>>> info,     testimonial-text, picture etc). Then user will fill and
>>>>>>>> save
>>>>>>>>           
>>>>>>>>               
>>>>   
>>>>       
>>>>>>>> the testimonial.
>>>>>>>>
>>>>>>>> *2. User will be able to update, delete testimonials using CMS.*
>>>>>>>>
>>>>>>>> On the testimonial page in authoring area, there will be
>>>>>>>> edit/delete
>>>>>>>>               
>>
>>   
>>>>>>>> option for each testimonial.
>>>>>>>>
>>>>>>>> *3. All the testimonials will be placed in a single XML file.*
>>>>>>>>
>>>>>>>> *4. In the live area there will be a testimonials page which will
>>>>>>>> show
>>>>>>>>           
>>>>>>>>               
>>>>   
>>>>       
>>>>>>>> all the testimonials as read only.*
>>>>>>>>
>>>>>>>>
>>>>>>>> */*User here refers to CMS user./*
>>>>>>>>
>>>>>>>>
>>>>>>>> I don't have much idea about implementing/writing lenya usecases.
>>>>>>>>
>>>>>>>>
>>>>>>>> Please Suggest
>>>>>>>>           
>>>>>>>>               
>>>>>>>
---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>>
>>>>>>>         
>>>>>>>             
>>>>>>
---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>       
>>>>>>           
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>     
>>>>>         
>>>> ---------------------------------------------------------------------
>>>> 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
>>
>>

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


Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Anish <an...@techblue.co.uk>.
>
> hummm, I don't think so. If we have this xml structure :
> <testimonials>
> <testimonial>
> <title>blabla</title>
> <content>......</content>
> </testimonial>
> <testimonial>
> <title>blabla2</title>
> <content>......2</content>
> </testimonial>
> </testimonials>
>
> When we edit with one-form editor and want to add a testimonial, just add
> <testi></testi> bloc.

Thanks for the response Florent, but how will it append the same XML. 
I'm bit confused about this.

Please suggest.


Florent André wrote:
> On Wed, 12 Aug 2009 14:34:04 +0530, Anish <an...@techblue.co.uk>
> wrote:
>   
>>> IMO steps are : 
>>> 1 - define your xml testimonial's structure
>>> 2 - build a rng
>>> 3 - add module
>>> 4 - enable a one form editor
>>> 5 - add modif/suppress on each testi
>>> 6 - enable form (with 1 field for each information)
>>> 7 - add some cooool javascript 
>>> 8 - be appy and drink some wine ! :)
>>>   
>>>       
>> Hi Florent
>>
>> Thanks for the guidance, if I follow these steps, the module created 
>> will work in a way that it will create different XMLs for each of the 
>> testimonial page like other index_{language}.xml files. But I wanted to 
>> place all the testimonials in a single XML file.
>>
>> Please correct me if I'm wrong.
>>     
>
> hummm, I don't think so. If we have this xml structure :
> <testimonials>
> <testimonial>
> <title>blabla</title>
> <content>......</content>
> </testimonial>
> <testimonial>
> <title>blabla2</title>
> <content>......2</content>
> </testimonial>
> </testimonials>
>
> When we edit with one-form editor and want to add a testimonial, just add
> <testi></testi> bloc.
>
>
> Another solution could be inspired by news module : 
> - a testimonials component-instance that is a collection
> - sub-testimonial component-instant that is a testimonial xml structure
>
> In this case each testimonial is an xml file (in the testimonials folder),
> but when you open testimonials the collection aggregate for you each single
> xml in one.
>
> IMO this second solution have to be if content of each testimonial could be
> long.
>
>
> HTH and be careful that is just some dev ideas, I don't implement something
> like that (first no, second idea yes in a some way) for now.
>
> I'm interesting in this subject, so keep in touch.
>
> ++
>
>
>
>   
>> Florent André wrote:
>>     
>>> Hey ! What do you think about the name "FillByForm" for our "module
>>> experience" ?
>>> ++
>>>
>>> On Tue, 11 Aug 2009 19:14:38 +0200, Florent André
>>> <fl...@4sengines.com> wrote:
>>>   
>>>       
>>>> Hi Vik
>>>>
>>>> For me my requirements are : 
>>>> - add and modify a vocabulary I have an xml like that :
>>>> <voc:team>
>>>> <voc:longname>Chealsea FC</voc:longname>
>>>> <voc:shortname>Chelsea</voc:shortname>
>>>> <voc:synonyms>
>>>> <voc:synonym>Fulham stadium</voc:synonym>
>>>> </voc:synonyms>
>>>> <voc:team>
>>>>
>>>> - add some pre-defined properties (attributes values) to a link :
>>>> <a href="...." evaluation="good|middle|bad">link description</a>. I
>>>> would
>>>> like that my user have just to select "evaluation" value in a drop-down
>>>> list.
>>>>
>>>> For sure, we have to do one for see where it can be generalized, but
>>>> IMO,
>>>> the hardest thing to made generic is the component-instance declaration
>>>> [1].
>>>> After that, the form to fill information would be hard to generalize,
>>>> but
>>>> if we use cform it will just be an xml to adapt to our requirements...
>>>>
>>>> I'm in the candy world ? :) (http://candyworld.free.fr/)
>>>>
>>>> Have a good day
>>>>
>>>> [1}
>>>> <component-instance name="person" logger="lenya.resourcetypes"
>>>>     class="org.apache.lenya.cms.publication.ResourceTypeImpl">
>>>>     
>>>>     <schema 
>>>>        namespace="http://relaxng.org/ns/structure/0.9"
>>>>        uri="fallback://lenya/modules/person/resources/schemas/foaf.rng"
>>>>     />
>>>>     
>>>>     <!-- Default time cache time in seconds for this resource type --> 
>>>>         
>
>   
>>>>     <expires seconds="3600" />
>>>>     
>>>>     <sample
>>>>        name="Basic FOAF sample"
>>>>        mime-type="application/rdf+xml"
>>>>        uri="fallback://lenya/modules/person/samples/foaf.xml"
>>>>     />
>>>>     
>>>>     <format name="xhtml" uri="cocoon://modules/person/xhtml.xml"/>
>>>>     <format name="xhtml-include"
>>>> uri="cocoon://modules/person/xhtml-include.xml"/>
>>>>     <format name="icon" uri="cocoon://modules/person/icon"/>
>>>>     
>>>>   </component-instance>
>>>>
>>>>
>>>> On Tue, 11 Aug 2009 15:14:52 +0100, Vik Tara <vi...@propco.co.uk> wrote:
>>>>     
>>>>         
>>>>> Hi Florent,
>>>>>
>>>>>       
>>>>>           
>>>>>>> I also would like to do something like that. Not on testimonial, but
>>>>>>>           
>>>>>>>               
>>>> for
>>>>     
>>>>         
>>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>>           
>>>>>>>               
>>>>> What's your requirement? I wonder if it can be made generic as you
>>>>>           
> say.
>   
>>>>> Also can any of the lenya dev's comment if we are following the
>>>>>           
> correct
>   
>>>>> approach?
>>>>>
>>>>> Or should we be defining a usecase?
>>>>>
>>>>> Regards
>>>>>
>>>>>
>>>>> Vik
>>>>>
>>>>>
>>>>> Florent André wrote:
>>>>>       
>>>>>           
>>>>>> Hi Anish,
>>>>>>
>>>>>> I also would like to do something like that. Not on testimonial, but
>>>>>>         
>>>>>>             
>>> for
>>>   
>>>       
>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>
>>>>>> A very good first step will be : 
>>>>>>
>>>>>>         
>>>>>>             
> http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart1.html
>   
>>>   
>>>       
>>>>>> IMO steps are : 
>>>>>> 1 - define your xml testimonial's structure
>>>>>> 2 - build a rng
>>>>>> 3 - add module
>>>>>> 4 - enable a one form editor
>>>>>> 5 - add modif/suppress on each testi
>>>>>> 6 - enable form (with 1 field for each information)
>>>>>> 7 - add some cooool javascript 
>>>>>> 8 - be appy and drink some wine ! :)
>>>>>>
>>>>>> for 1 to 4 I'm not really affraid... We have doc ! But for 5 to 7...
>>>>>>
>>>>>> I you are OK to put your code on a public svn [1], I will like to
>>>>>>             
> code
>   
>>>>>> with
>>>>>> you [2]
>>>>>>
>>>>>> ++
>>>>>>
>>>>>> [1] http://svn.4sengines.eu for example ? ;)
>>>>>> [2] said this last phrase with a babe voice :) 
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, 10 Aug 2009 18:32:11 +0530, Anish <an...@techblue.co.uk>
>>>>>> wrote:
>>>>>>         
>>>>>>             
>>>>>>> Hi All
>>>>>>>
>>>>>>> I want to create a module "Testimonials" (it will handle all the 
>>>>>>> operations related to the testimonials like writing, reading,
>>>>>>> editing,
>>>>>>>           
>>>>>>>               
>>>   
>>>       
>>>>>>> deleting etc.)
>>>>>>> My idea of doing this is as follows:
>>>>>>>
>>>>>>>
>>>>>>> *1. User will create a new testimonial using CMS menu.*
>>>>>>>
>>>>>>> When user will click on "New Testimonial" option a new form will be 
>>>>>>> there which will contain fields related to the new testimonial
>>>>>>>               
> (name,
>   
>>>>>>> info,     testimonial-text, picture etc). Then user will fill and
>>>>>>> save
>>>>>>>           
>>>>>>>               
>>>   
>>>       
>>>>>>> the testimonial.
>>>>>>>
>>>>>>> *2. User will be able to update, delete testimonials using CMS.*
>>>>>>>
>>>>>>> On the testimonial page in authoring area, there will be edit/delete
>>>>>>>               
>
>   
>>>>>>> option for each testimonial.
>>>>>>>
>>>>>>> *3. All the testimonials will be placed in a single XML file.*
>>>>>>>
>>>>>>> *4. In the live area there will be a testimonials page which will
>>>>>>> show
>>>>>>>           
>>>>>>>               
>>>   
>>>       
>>>>>>> all the testimonials as read only.*
>>>>>>>
>>>>>>>
>>>>>>> */*User here refers to CMS user./*
>>>>>>>
>>>>>>>
>>>>>>> I don't have much idea about implementing/writing lenya usecases.
>>>>>>>
>>>>>>>
>>>>>>> Please Suggest
>>>>>>>           
>>>>>>>               
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>>
>>>>>>         
>>>>>>             
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>       
>>>>>           
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>     
>>>>         
>>> ---------------------------------------------------------------------
>>> 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
>
>   


-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Florent André <fl...@4sengines.com>.
On Wed, 12 Aug 2009 14:34:04 +0530, Anish <an...@techblue.co.uk>
wrote:
>> IMO steps are : 
>> 1 - define your xml testimonial's structure
>> 2 - build a rng
>> 3 - add module
>> 4 - enable a one form editor
>> 5 - add modif/suppress on each testi
>> 6 - enable form (with 1 field for each information)
>> 7 - add some cooool javascript 
>> 8 - be appy and drink some wine ! :)
>>   
> 
> Hi Florent
> 
> Thanks for the guidance, if I follow these steps, the module created 
> will work in a way that it will create different XMLs for each of the 
> testimonial page like other index_{language}.xml files. But I wanted to 
> place all the testimonials in a single XML file.
> 
> Please correct me if I'm wrong.

hummm, I don't think so. If we have this xml structure :
<testimonials>
<testimonial>
<title>blabla</title>
<content>......</content>
</testimonial>
<testimonial>
<title>blabla2</title>
<content>......2</content>
</testimonial>
</testimonials>

When we edit with one-form editor and want to add a testimonial, just add
<testi></testi> bloc.


Another solution could be inspired by news module : 
- a testimonials component-instance that is a collection
- sub-testimonial component-instant that is a testimonial xml structure

In this case each testimonial is an xml file (in the testimonials folder),
but when you open testimonials the collection aggregate for you each single
xml in one.

IMO this second solution have to be if content of each testimonial could be
long.


HTH and be careful that is just some dev ideas, I don't implement something
like that (first no, second idea yes in a some way) for now.

I'm interesting in this subject, so keep in touch.

++



> 
> 
> Florent André wrote:
>> Hey ! What do you think about the name "FillByForm" for our "module
>> experience" ?
>> ++
>>
>> On Tue, 11 Aug 2009 19:14:38 +0200, Florent André
>> <fl...@4sengines.com> wrote:
>>   
>>> Hi Vik
>>>
>>> For me my requirements are : 
>>> - add and modify a vocabulary I have an xml like that :
>>> <voc:team>
>>> <voc:longname>Chealsea FC</voc:longname>
>>> <voc:shortname>Chelsea</voc:shortname>
>>> <voc:synonyms>
>>> <voc:synonym>Fulham stadium</voc:synonym>
>>> </voc:synonyms>
>>> <voc:team>
>>>
>>> - add some pre-defined properties (attributes values) to a link :
>>> <a href="...." evaluation="good|middle|bad">link description</a>. I
>>> would
>>> like that my user have just to select "evaluation" value in a drop-down
>>> list.
>>>
>>> For sure, we have to do one for see where it can be generalized, but
>>> IMO,
>>> the hardest thing to made generic is the component-instance declaration
>>> [1].
>>> After that, the form to fill information would be hard to generalize,
>>> but
>>> if we use cform it will just be an xml to adapt to our requirements...
>>>
>>> I'm in the candy world ? :) (http://candyworld.free.fr/)
>>>
>>> Have a good day
>>>
>>> [1}
>>> <component-instance name="person" logger="lenya.resourcetypes"
>>>     class="org.apache.lenya.cms.publication.ResourceTypeImpl">
>>>     
>>>     <schema 
>>>        namespace="http://relaxng.org/ns/structure/0.9"
>>>        uri="fallback://lenya/modules/person/resources/schemas/foaf.rng"
>>>     />
>>>     
>>>     <!-- Default time cache time in seconds for this resource type --> 

>>>     <expires seconds="3600" />
>>>     
>>>     <sample
>>>        name="Basic FOAF sample"
>>>        mime-type="application/rdf+xml"
>>>        uri="fallback://lenya/modules/person/samples/foaf.xml"
>>>     />
>>>     
>>>     <format name="xhtml" uri="cocoon://modules/person/xhtml.xml"/>
>>>     <format name="xhtml-include"
>>> uri="cocoon://modules/person/xhtml-include.xml"/>
>>>     <format name="icon" uri="cocoon://modules/person/icon"/>
>>>     
>>>   </component-instance>
>>>
>>>
>>> On Tue, 11 Aug 2009 15:14:52 +0100, Vik Tara <vi...@propco.co.uk> wrote:
>>>     
>>>> Hi Florent,
>>>>
>>>>       
>>>>>> I also would like to do something like that. Not on testimonial, but
>>>>>>           
>>> for
>>>     
>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>           
>>>> What's your requirement? I wonder if it can be made generic as you
say.
>>>>
>>>> Also can any of the lenya dev's comment if we are following the
correct
>>>> approach?
>>>>
>>>> Or should we be defining a usecase?
>>>>
>>>> Regards
>>>>
>>>>
>>>> Vik
>>>>
>>>>
>>>> Florent André wrote:
>>>>       
>>>>> Hi Anish,
>>>>>
>>>>> I also would like to do something like that. Not on testimonial, but
>>>>>         
>> for
>>   
>>>>> end-user (CMS user) it's the same think I want.
>>>>>
>>>>> A very good first step will be : 
>>>>>
>>>>>         
>>
http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart1.html
>>   
>>>>> IMO steps are : 
>>>>> 1 - define your xml testimonial's structure
>>>>> 2 - build a rng
>>>>> 3 - add module
>>>>> 4 - enable a one form editor
>>>>> 5 - add modif/suppress on each testi
>>>>> 6 - enable form (with 1 field for each information)
>>>>> 7 - add some cooool javascript 
>>>>> 8 - be appy and drink some wine ! :)
>>>>>
>>>>> for 1 to 4 I'm not really affraid... We have doc ! But for 5 to 7...
>>>>>
>>>>> I you are OK to put your code on a public svn [1], I will like to
code
>>>>> with
>>>>> you [2]
>>>>>
>>>>> ++
>>>>>
>>>>> [1] http://svn.4sengines.eu for example ? ;)
>>>>> [2] said this last phrase with a babe voice :) 
>>>>>
>>>>>
>>>>>
>>>>> On Mon, 10 Aug 2009 18:32:11 +0530, Anish <an...@techblue.co.uk>
>>>>> wrote:
>>>>>         
>>>>>> Hi All
>>>>>>
>>>>>> I want to create a module "Testimonials" (it will handle all the 
>>>>>> operations related to the testimonials like writing, reading,
>>>>>> editing,
>>>>>>           
>>
>>   
>>>>>> deleting etc.)
>>>>>> My idea of doing this is as follows:
>>>>>>
>>>>>>
>>>>>> *1. User will create a new testimonial using CMS menu.*
>>>>>>
>>>>>> When user will click on "New Testimonial" option a new form will be 
>>>>>> there which will contain fields related to the new testimonial
(name,
>>>>>>
>>>>>> info,     testimonial-text, picture etc). Then user will fill and
>>>>>> save
>>>>>>           
>>
>>   
>>>>>> the testimonial.
>>>>>>
>>>>>> *2. User will be able to update, delete testimonials using CMS.*
>>>>>>
>>>>>> On the testimonial page in authoring area, there will be edit/delete

>>>>>> option for each testimonial.
>>>>>>
>>>>>> *3. All the testimonials will be placed in a single XML file.*
>>>>>>
>>>>>> *4. In the live area there will be a testimonials page which will
>>>>>> show
>>>>>>           
>>
>>   
>>>>>> all the testimonials as read only.*
>>>>>>
>>>>>>
>>>>>> */*User here refers to CMS user./*
>>>>>>
>>>>>>
>>>>>> I don't have much idea about implementing/writing lenya usecases.
>>>>>>
>>>>>>
>>>>>> Please Suggest
>>>>>>           
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>
>>>>>         
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>       
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>     
>>
>> ---------------------------------------------------------------------
>> 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: What's the limit ? (Re: New Testimonial Module (Lenya 2.0.3) - Help)

Posted by Florent André <fl...@4sengines.com>.
Thanks for this detailed answer.

Have a good day
On Fri, 14 Aug 2009 11:54:26 +0200, Andreas Hartmann <an...@apache.org>
wrote:
> Hi Florent,
> 
> Florent André schrieb:
>> Hi Andreas, hi all
>> 
>> You said : 
>> 
>> On Wed, 12 Aug 2009 12:03:16 +0200, Andreas Hartmann
<an...@apache.org>
>> wrote:
>>> IMO the only reason for storing multiple content items in a single 
>>> document is the limited scalability of the sitetree, but this should 
>>> only be noticeable when there are several 10.000 or 100.000 documents.
>>>
>> 
>> There is a not little difference between 10.000 and 100.000 documents...
>> :)
>> 
>> There is any information on the max number of document that can be deal
?
> 
> I think the only hard limit is the amount of RAM that's available to the 
> JVM. There is a performance degradation when the sitetree is handled, 
> but I think it's pretty much linear.
> 
> 
>> What kind of problems can occur (difficult copy/past, time to access,
>> loss
>> of data,...) ?
> 
> Loss of data should not be an issue, since the complete sitetree is 
> locked in each transaction it is involved in.
> 
> The most significant issue is the performance degradation. Because the 
> sitetree is stored in a single file and there is no session 
> synchronization mechanism, it has to be parsed after each change. So if 
> you have a large sitetree and someone inserts a document or changes a 
> navigation title, the next request will be slower. There is a single 
> sitetree object with some indexes for faster node lookup that is shared 
> by all read-only sessions, so when no changes are made the system should 
> be pretty fast even when there are lots of documents. Maybe someone 
> would like to run some benchmarks?
> 
> If someone still uses the old navigation framework from the sitetree 
> module instead of the new navigation module, there will be a performance 
> degradation with large sitetrees. This should not be an issue with the 
> new navigation module.
> 
>> When you say "there are several 10.000 or 100.000 documents", this is
for
>> each publication or for the all Lenya instance ?
> 
> That's for each publication, or rather each area, since the sitetree is 
> stored per area. So you could mitigate the effects by distributing your 
> documents across multiple publication. I think it's possible to store 
> huge amounts of documents when you use many publications.
> 
> -- Andreas

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


Re: What's the limit ? (Re: New Testimonial Module (Lenya 2.0.3) - Help)

Posted by Andreas Hartmann <an...@apache.org>.
Hi Florent,

Florent André schrieb:
> Hi Andreas, hi all
> 
> You said : 
> 
> On Wed, 12 Aug 2009 12:03:16 +0200, Andreas Hartmann <an...@apache.org>
> wrote:
>> IMO the only reason for storing multiple content items in a single 
>> document is the limited scalability of the sitetree, but this should 
>> only be noticeable when there are several 10.000 or 100.000 documents.
>>
> 
> There is a not little difference between 10.000 and 100.000 documents... :)
> 
> There is any information on the max number of document that can be deal ?

I think the only hard limit is the amount of RAM that's available to the 
JVM. There is a performance degradation when the sitetree is handled, 
but I think it's pretty much linear.


> What kind of problems can occur (difficult copy/past, time to access, loss
> of data,...) ?

Loss of data should not be an issue, since the complete sitetree is 
locked in each transaction it is involved in.

The most significant issue is the performance degradation. Because the 
sitetree is stored in a single file and there is no session 
synchronization mechanism, it has to be parsed after each change. So if 
you have a large sitetree and someone inserts a document or changes a 
navigation title, the next request will be slower. There is a single 
sitetree object with some indexes for faster node lookup that is shared 
by all read-only sessions, so when no changes are made the system should 
be pretty fast even when there are lots of documents. Maybe someone 
would like to run some benchmarks?

If someone still uses the old navigation framework from the sitetree 
module instead of the new navigation module, there will be a performance 
degradation with large sitetrees. This should not be an issue with the 
new navigation module.

> When you say "there are several 10.000 or 100.000 documents", this is for
> each publication or for the all Lenya instance ?

That's for each publication, or rather each area, since the sitetree is 
stored per area. So you could mitigate the effects by distributing your 
documents across multiple publication. I think it's possible to store 
huge amounts of documents when you use many publications.

-- Andreas



-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


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


What's the limit ? (Re: New Testimonial Module (Lenya 2.0.3) - Help)

Posted by Florent André <fl...@4sengines.com>.
Hi Andreas, hi all

You said : 

On Wed, 12 Aug 2009 12:03:16 +0200, Andreas Hartmann <an...@apache.org>
wrote:
> 
> IMO the only reason for storing multiple content items in a single 
> document is the limited scalability of the sitetree, but this should 
> only be noticeable when there are several 10.000 or 100.000 documents.
> 

There is a not little difference between 10.000 and 100.000 documents... :)

There is any information on the max number of document that can be deal ?

What kind of problems can occur (difficult copy/past, time to access, loss
of data,...) ?

When you say "there are several 10.000 or 100.000 documents", this is for
each publication or for the all Lenya instance ?

Any other information about limits will be much appreciated.


Hope your are fine

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


Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Andreas Hartmann <an...@apache.org>.
Hi Anish,

Anish schrieb:
> 
>> IMO steps are : 
>> 1 - define your xml testimonial's structure
>> 2 - build a rng
>> 3 - add module
>> 4 - enable a one form editor
>> 5 - add modif/suppress on each testi
>> 6 - enable form (with 1 field for each information)
>> 7 - add some cooool javascript 
>> 8 - be appy and drink some wine ! :)
>>   
> Thanks for the guidance, if I follow these steps, the module created 
> will work in a way that it will create different XMLs for each of the 
> testimonial page like other index_{language}.xml files. But I wanted to 
> place all the testimonials in a single XML file.

is there a special reason why you want to store all testimonials in a 
single page? My first idea would be to store them in separate documents 
because this makes the repository much more flexible (e.g., you have 
separate meta data and workflow instances for the testimonials).

IMO the only reason for storing multiple content items in a single 
document is the limited scalability of the sitetree, but this should 
only be noticeable when there are several 10.000 or 100.000 documents.

The collection resource type is a convenient way to handle collections 
of documents. Maybe it could also be useful for the testimonials.

-- Andreas


> 
> Please correct me if I'm wrong.
> 
> 
> Florent André wrote:
>> Hey ! What do you think about the name "FillByForm" for our "module
>> experience" ?
>> ++
>>
>> On Tue, 11 Aug 2009 19:14:38 +0200, Florent André
>> <fl...@4sengines.com> wrote:
>>   
>>> Hi Vik
>>>
>>> For me my requirements are : 
>>> - add and modify a vocabulary I have an xml like that :
>>> <voc:team>
>>> <voc:longname>Chealsea FC</voc:longname>
>>> <voc:shortname>Chelsea</voc:shortname>
>>> <voc:synonyms>
>>> <voc:synonym>Fulham stadium</voc:synonym>
>>> </voc:synonyms>
>>> <voc:team>
>>>
>>> - add some pre-defined properties (attributes values) to a link :
>>> <a href="...." evaluation="good|middle|bad">link description</a>. I would
>>> like that my user have just to select "evaluation" value in a drop-down
>>> list.
>>>
>>> For sure, we have to do one for see where it can be generalized, but IMO,
>>> the hardest thing to made generic is the component-instance declaration
>>> [1].
>>> After that, the form to fill information would be hard to generalize, but
>>> if we use cform it will just be an xml to adapt to our requirements...
>>>
>>> I'm in the candy world ? :) (http://candyworld.free.fr/)
>>>
>>> Have a good day
>>>
>>> [1}
>>> <component-instance name="person" logger="lenya.resourcetypes"
>>>     class="org.apache.lenya.cms.publication.ResourceTypeImpl">
>>>     
>>>     <schema 
>>>        namespace="http://relaxng.org/ns/structure/0.9"
>>>        uri="fallback://lenya/modules/person/resources/schemas/foaf.rng"
>>>     />
>>>     
>>>     <!-- Default time cache time in seconds for this resource type -->  
>>>     <expires seconds="3600" />
>>>     
>>>     <sample
>>>        name="Basic FOAF sample"
>>>        mime-type="application/rdf+xml"
>>>        uri="fallback://lenya/modules/person/samples/foaf.xml"
>>>     />
>>>     
>>>     <format name="xhtml" uri="cocoon://modules/person/xhtml.xml"/>
>>>     <format name="xhtml-include"
>>> uri="cocoon://modules/person/xhtml-include.xml"/>
>>>     <format name="icon" uri="cocoon://modules/person/icon"/>
>>>     
>>>   </component-instance>
>>>
>>>
>>> On Tue, 11 Aug 2009 15:14:52 +0100, Vik Tara <vi...@propco.co.uk> wrote:
>>>     
>>>> Hi Florent,
>>>>
>>>>       
>>>>>> I also would like to do something like that. Not on testimonial, but
>>>>>>           
>>> for
>>>     
>>>>>> end-user (CMS user) it's the same think I want.
>>>>>>           
>>>> What's your requirement? I wonder if it can be made generic as you say.
>>>>
>>>> Also can any of the lenya dev's comment if we are following the correct
>>>> approach?
>>>>
>>>> Or should we be defining a usecase?
>>>>
>>>> Regards
>>>>
>>>>
>>>> Vik
>>>>
>>>>
>>>> Florent André wrote:
>>>>       
>>>>> Hi Anish,
>>>>>
>>>>> I also would like to do something like that. Not on testimonial, but
>>>>>         
>> for
>>   
>>>>> end-user (CMS user) it's the same think I want.
>>>>>
>>>>> A very good first step will be : 
>>>>>
>>>>>         
>> http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart1.html
>>   
>>>>> IMO steps are : 
>>>>> 1 - define your xml testimonial's structure
>>>>> 2 - build a rng
>>>>> 3 - add module
>>>>> 4 - enable a one form editor
>>>>> 5 - add modif/suppress on each testi
>>>>> 6 - enable form (with 1 field for each information)
>>>>> 7 - add some cooool javascript 
>>>>> 8 - be appy and drink some wine ! :)
>>>>>
>>>>> for 1 to 4 I'm not really affraid... We have doc ! But for 5 to 7...
>>>>>
>>>>> I you are OK to put your code on a public svn [1], I will like to code
>>>>> with
>>>>> you [2]
>>>>>
>>>>> ++
>>>>>
>>>>> [1] http://svn.4sengines.eu for example ? ;)
>>>>> [2] said this last phrase with a babe voice :) 
>>>>>
>>>>>
>>>>>
>>>>> On Mon, 10 Aug 2009 18:32:11 +0530, Anish <an...@techblue.co.uk>
>>>>> wrote:
>>>>>         
>>>>>> Hi All
>>>>>>
>>>>>> I want to create a module "Testimonials" (it will handle all the 
>>>>>> operations related to the testimonials like writing, reading, editing,
>>>>>>           
>>
>>   
>>>>>> deleting etc.)
>>>>>> My idea of doing this is as follows:
>>>>>>
>>>>>>
>>>>>> *1. User will create a new testimonial using CMS menu.*
>>>>>>
>>>>>> When user will click on "New Testimonial" option a new form will be 
>>>>>> there which will contain fields related to the new testimonial (name, 
>>>>>> info,     testimonial-text, picture etc). Then user will fill and save
>>>>>>           
>>
>>   
>>>>>> the testimonial.
>>>>>>
>>>>>> *2. User will be able to update, delete testimonials using CMS.*
>>>>>>
>>>>>> On the testimonial page in authoring area, there will be edit/delete 
>>>>>> option for each testimonial.
>>>>>>
>>>>>> *3. All the testimonials will be placed in a single XML file.*
>>>>>>
>>>>>> *4. In the live area there will be a testimonials page which will show
>>>>>>           
>>
>>   
>>>>>> all the testimonials as read only.*
>>>>>>
>>>>>>
>>>>>> */*User here refers to CMS user./*
>>>>>>
>>>>>>
>>>>>> I don't have much idea about implementing/writing lenya usecases.
>>>>>>
>>>>>>
>>>>>> Please Suggest
>>>>>>           
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>>
>>>>>         
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>       
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>     
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
>>   
> 
> 
> -- 
> Anish Sneh
> Software Engineer
> Techblue Softwares Pvt. Ltd.
> www.technologyblueprint.co.uk
> 
> 


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


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


Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Anish <an...@techblue.co.uk>.
> IMO steps are : 
> 1 - define your xml testimonial's structure
> 2 - build a rng
> 3 - add module
> 4 - enable a one form editor
> 5 - add modif/suppress on each testi
> 6 - enable form (with 1 field for each information)
> 7 - add some cooool javascript 
> 8 - be appy and drink some wine ! :)
>   

Hi Florent

Thanks for the guidance, if I follow these steps, the module created 
will work in a way that it will create different XMLs for each of the 
testimonial page like other index_{language}.xml files. But I wanted to 
place all the testimonials in a single XML file.

Please correct me if I'm wrong.


Florent André wrote:
> Hey ! What do you think about the name "FillByForm" for our "module
> experience" ?
> ++
>
> On Tue, 11 Aug 2009 19:14:38 +0200, Florent André
> <fl...@4sengines.com> wrote:
>   
>> Hi Vik
>>
>> For me my requirements are : 
>> - add and modify a vocabulary I have an xml like that :
>> <voc:team>
>> <voc:longname>Chealsea FC</voc:longname>
>> <voc:shortname>Chelsea</voc:shortname>
>> <voc:synonyms>
>> <voc:synonym>Fulham stadium</voc:synonym>
>> </voc:synonyms>
>> <voc:team>
>>
>> - add some pre-defined properties (attributes values) to a link :
>> <a href="...." evaluation="good|middle|bad">link description</a>. I would
>> like that my user have just to select "evaluation" value in a drop-down
>> list.
>>
>> For sure, we have to do one for see where it can be generalized, but IMO,
>> the hardest thing to made generic is the component-instance declaration
>> [1].
>> After that, the form to fill information would be hard to generalize, but
>> if we use cform it will just be an xml to adapt to our requirements...
>>
>> I'm in the candy world ? :) (http://candyworld.free.fr/)
>>
>> Have a good day
>>
>> [1}
>> <component-instance name="person" logger="lenya.resourcetypes"
>>     class="org.apache.lenya.cms.publication.ResourceTypeImpl">
>>     
>>     <schema 
>>        namespace="http://relaxng.org/ns/structure/0.9"
>>        uri="fallback://lenya/modules/person/resources/schemas/foaf.rng"
>>     />
>>     
>>     <!-- Default time cache time in seconds for this resource type -->  
>>     <expires seconds="3600" />
>>     
>>     <sample
>>        name="Basic FOAF sample"
>>        mime-type="application/rdf+xml"
>>        uri="fallback://lenya/modules/person/samples/foaf.xml"
>>     />
>>     
>>     <format name="xhtml" uri="cocoon://modules/person/xhtml.xml"/>
>>     <format name="xhtml-include"
>> uri="cocoon://modules/person/xhtml-include.xml"/>
>>     <format name="icon" uri="cocoon://modules/person/icon"/>
>>     
>>   </component-instance>
>>
>>
>> On Tue, 11 Aug 2009 15:14:52 +0100, Vik Tara <vi...@propco.co.uk> wrote:
>>     
>>> Hi Florent,
>>>
>>>       
>>>>> I also would like to do something like that. Not on testimonial, but
>>>>>           
>> for
>>     
>>>>> end-user (CMS user) it's the same think I want.
>>>>>           
>>> What's your requirement? I wonder if it can be made generic as you say.
>>>
>>> Also can any of the lenya dev's comment if we are following the correct
>>> approach?
>>>
>>> Or should we be defining a usecase?
>>>
>>> Regards
>>>
>>>
>>> Vik
>>>
>>>
>>> Florent André wrote:
>>>       
>>>> Hi Anish,
>>>>
>>>> I also would like to do something like that. Not on testimonial, but
>>>>         
> for
>   
>>>> end-user (CMS user) it's the same think I want.
>>>>
>>>> A very good first step will be : 
>>>>
>>>>         
> http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart1.html
>   
>>>> IMO steps are : 
>>>> 1 - define your xml testimonial's structure
>>>> 2 - build a rng
>>>> 3 - add module
>>>> 4 - enable a one form editor
>>>> 5 - add modif/suppress on each testi
>>>> 6 - enable form (with 1 field for each information)
>>>> 7 - add some cooool javascript 
>>>> 8 - be appy and drink some wine ! :)
>>>>
>>>> for 1 to 4 I'm not really affraid... We have doc ! But for 5 to 7...
>>>>
>>>> I you are OK to put your code on a public svn [1], I will like to code
>>>> with
>>>> you [2]
>>>>
>>>> ++
>>>>
>>>> [1] http://svn.4sengines.eu for example ? ;)
>>>> [2] said this last phrase with a babe voice :) 
>>>>
>>>>
>>>>
>>>> On Mon, 10 Aug 2009 18:32:11 +0530, Anish <an...@techblue.co.uk>
>>>> wrote:
>>>>         
>>>>> Hi All
>>>>>
>>>>> I want to create a module "Testimonials" (it will handle all the 
>>>>> operations related to the testimonials like writing, reading, editing,
>>>>>           
>
>   
>>>>> deleting etc.)
>>>>> My idea of doing this is as follows:
>>>>>
>>>>>
>>>>> *1. User will create a new testimonial using CMS menu.*
>>>>>
>>>>> When user will click on "New Testimonial" option a new form will be 
>>>>> there which will contain fields related to the new testimonial (name, 
>>>>> info,     testimonial-text, picture etc). Then user will fill and save
>>>>>           
>
>   
>>>>> the testimonial.
>>>>>
>>>>> *2. User will be able to update, delete testimonials using CMS.*
>>>>>
>>>>> On the testimonial page in authoring area, there will be edit/delete 
>>>>> option for each testimonial.
>>>>>
>>>>> *3. All the testimonials will be placed in a single XML file.*
>>>>>
>>>>> *4. In the live area there will be a testimonials page which will show
>>>>>           
>
>   
>>>>> all the testimonials as read only.*
>>>>>
>>>>>
>>>>> */*User here refers to CMS user./*
>>>>>
>>>>>
>>>>> I don't have much idea about implementing/writing lenya usecases.
>>>>>
>>>>>
>>>>> Please Suggest
>>>>>           
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>>
>>>>         
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: dev-help@lenya.apache.org
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>   


-- 
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk




Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Florent André <fl...@4sengines.com>.
Hey ! What do you think about the name "FillByForm" for our "module
experience" ?
++

On Tue, 11 Aug 2009 19:14:38 +0200, Florent André
<fl...@4sengines.com> wrote:
> Hi Vik
> 
> For me my requirements are : 
> - add and modify a vocabulary I have an xml like that :
> <voc:team>
> <voc:longname>Chealsea FC</voc:longname>
> <voc:shortname>Chelsea</voc:shortname>
> <voc:synonyms>
> <voc:synonym>Fulham stadium</voc:synonym>
> </voc:synonyms>
> <voc:team>
> 
> - add some pre-defined properties (attributes values) to a link :
> <a href="...." evaluation="good|middle|bad">link description</a>. I would
> like that my user have just to select "evaluation" value in a drop-down
> list.
> 
> For sure, we have to do one for see where it can be generalized, but IMO,
> the hardest thing to made generic is the component-instance declaration
> [1].
> After that, the form to fill information would be hard to generalize, but
> if we use cform it will just be an xml to adapt to our requirements...
> 
> I'm in the candy world ? :) (http://candyworld.free.fr/)
> 
> Have a good day
> 
> [1}
> <component-instance name="person" logger="lenya.resourcetypes"
>     class="org.apache.lenya.cms.publication.ResourceTypeImpl">
>     
>     <schema 
>        namespace="http://relaxng.org/ns/structure/0.9"
>        uri="fallback://lenya/modules/person/resources/schemas/foaf.rng"
>     />
>     
>     <!-- Default time cache time in seconds for this resource type -->  
>     <expires seconds="3600" />
>     
>     <sample
>        name="Basic FOAF sample"
>        mime-type="application/rdf+xml"
>        uri="fallback://lenya/modules/person/samples/foaf.xml"
>     />
>     
>     <format name="xhtml" uri="cocoon://modules/person/xhtml.xml"/>
>     <format name="xhtml-include"
> uri="cocoon://modules/person/xhtml-include.xml"/>
>     <format name="icon" uri="cocoon://modules/person/icon"/>
>     
>   </component-instance>
> 
> 
> On Tue, 11 Aug 2009 15:14:52 +0100, Vik Tara <vi...@propco.co.uk> wrote:
>> Hi Florent,
>> 
>>>> I also would like to do something like that. Not on testimonial, but
> for
>>>> end-user (CMS user) it's the same think I want.
>> 
>> What's your requirement? I wonder if it can be made generic as you say.
>> 
>> Also can any of the lenya dev's comment if we are following the correct
>> approach?
>> 
>> Or should we be defining a usecase?
>> 
>> Regards
>> 
>> 
>> Vik
>> 
>> 
>> Florent André wrote:
>>> Hi Anish,
>>> 
>>> I also would like to do something like that. Not on testimonial, but
for
>>> end-user (CMS user) it's the same think I want.
>>> 
>>> A very good first step will be : 
>>>
>
http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart1.html
>>> 
>>> IMO steps are : 
>>> 1 - define your xml testimonial's structure
>>> 2 - build a rng
>>> 3 - add module
>>> 4 - enable a one form editor
>>> 5 - add modif/suppress on each testi
>>> 6 - enable form (with 1 field for each information)
>>> 7 - add some cooool javascript 
>>> 8 - be appy and drink some wine ! :)
>>> 
>>> for 1 to 4 I'm not really affraid... We have doc ! But for 5 to 7...
>>> 
>>> I you are OK to put your code on a public svn [1], I will like to code
>>> with
>>> you [2]
>>> 
>>> ++
>>> 
>>> [1] http://svn.4sengines.eu for example ? ;)
>>> [2] said this last phrase with a babe voice :) 
>>> 
>>> 
>>> 
>>> On Mon, 10 Aug 2009 18:32:11 +0530, Anish <an...@techblue.co.uk>
>>> wrote:
>>>> Hi All
>>>>
>>>> I want to create a module "Testimonials" (it will handle all the 
>>>> operations related to the testimonials like writing, reading, editing,

>>>> deleting etc.)
>>>> My idea of doing this is as follows:
>>>>
>>>>
>>>> *1. User will create a new testimonial using CMS menu.*
>>>>
>>>> When user will click on "New Testimonial" option a new form will be 
>>>> there which will contain fields related to the new testimonial (name, 
>>>> info,     testimonial-text, picture etc). Then user will fill and save

>>>> the testimonial.
>>>>
>>>> *2. User will be able to update, delete testimonials using CMS.*
>>>>
>>>> On the testimonial page in authoring area, there will be edit/delete 
>>>> option for each testimonial.
>>>>
>>>> *3. All the testimonials will be placed in a single XML file.*
>>>>
>>>> *4. In the live area there will be a testimonials page which will show

>>>> all the testimonials as read only.*
>>>>
>>>>
>>>> */*User here refers to CMS user./*
>>>>
>>>>
>>>> I don't have much idea about implementing/writing lenya usecases.
>>>>
>>>>
>>>> Please Suggest
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: dev-help@lenya.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org

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


Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Florent André <fl...@4sengines.com>.
Hi Vik

For me my requirements are : 
- add and modify a vocabulary I have an xml like that :
<voc:team>
<voc:longname>Chealsea FC</voc:longname>
<voc:shortname>Chelsea</voc:shortname>
<voc:synonyms>
<voc:synonym>Fulham stadium</voc:synonym>
</voc:synonyms>
<voc:team>

- add some pre-defined properties (attributes values) to a link :
<a href="...." evaluation="good|middle|bad">link description</a>. I would
like that my user have just to select "evaluation" value in a drop-down
list.

For sure, we have to do one for see where it can be generalized, but IMO,
the hardest thing to made generic is the component-instance declaration
[1].
After that, the form to fill information would be hard to generalize, but
if we use cform it will just be an xml to adapt to our requirements...

I'm in the candy world ? :) (http://candyworld.free.fr/)

Have a good day

[1}
<component-instance name="person" logger="lenya.resourcetypes"
    class="org.apache.lenya.cms.publication.ResourceTypeImpl">
    
    <schema 
       namespace="http://relaxng.org/ns/structure/0.9"
       uri="fallback://lenya/modules/person/resources/schemas/foaf.rng"
    />
    
    <!-- Default time cache time in seconds for this resource type -->  
    <expires seconds="3600" />
    
    <sample
       name="Basic FOAF sample"
       mime-type="application/rdf+xml"
       uri="fallback://lenya/modules/person/samples/foaf.xml"
    />
    
    <format name="xhtml" uri="cocoon://modules/person/xhtml.xml"/>
    <format name="xhtml-include"
uri="cocoon://modules/person/xhtml-include.xml"/>
    <format name="icon" uri="cocoon://modules/person/icon"/>
    
  </component-instance>


On Tue, 11 Aug 2009 15:14:52 +0100, Vik Tara <vi...@propco.co.uk> wrote:
> Hi Florent,
> 
>>> I also would like to do something like that. Not on testimonial, but
for
>>> end-user (CMS user) it's the same think I want.
> 
> What's your requirement? I wonder if it can be made generic as you say.
> 
> Also can any of the lenya dev's comment if we are following the correct
> approach?
> 
> Or should we be defining a usecase?
> 
> Regards
> 
> 
> Vik
> 
> 
> Florent André wrote:
>> Hi Anish,
>> 
>> I also would like to do something like that. Not on testimonial, but for
>> end-user (CMS user) it's the same think I want.
>> 
>> A very good first step will be : 
>>
http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart1.html
>> 
>> IMO steps are : 
>> 1 - define your xml testimonial's structure
>> 2 - build a rng
>> 3 - add module
>> 4 - enable a one form editor
>> 5 - add modif/suppress on each testi
>> 6 - enable form (with 1 field for each information)
>> 7 - add some cooool javascript 
>> 8 - be appy and drink some wine ! :)
>> 
>> for 1 to 4 I'm not really affraid... We have doc ! But for 5 to 7...
>> 
>> I you are OK to put your code on a public svn [1], I will like to code
>> with
>> you [2]
>> 
>> ++
>> 
>> [1] http://svn.4sengines.eu for example ? ;)
>> [2] said this last phrase with a babe voice :) 
>> 
>> 
>> 
>> On Mon, 10 Aug 2009 18:32:11 +0530, Anish <an...@techblue.co.uk>
>> wrote:
>>> Hi All
>>>
>>> I want to create a module "Testimonials" (it will handle all the 
>>> operations related to the testimonials like writing, reading, editing, 
>>> deleting etc.)
>>> My idea of doing this is as follows:
>>>
>>>
>>> *1. User will create a new testimonial using CMS menu.*
>>>
>>> When user will click on "New Testimonial" option a new form will be 
>>> there which will contain fields related to the new testimonial (name, 
>>> info,     testimonial-text, picture etc). Then user will fill and save 
>>> the testimonial.
>>>
>>> *2. User will be able to update, delete testimonials using CMS.*
>>>
>>> On the testimonial page in authoring area, there will be edit/delete 
>>> option for each testimonial.
>>>
>>> *3. All the testimonials will be placed in a single XML file.*
>>>
>>> *4. In the live area there will be a testimonials page which will show 
>>> all the testimonials as read only.*
>>>
>>>
>>> */*User here refers to CMS user./*
>>>
>>>
>>> I don't have much idea about implementing/writing lenya usecases.
>>>
>>>
>>> Please Suggest
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: dev-help@lenya.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org

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


Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Vik Tara <vi...@propco.co.uk>.
Hi Florent,

>> I also would like to do something like that. Not on testimonial, but for
>> end-user (CMS user) it's the same think I want.

What's your requirement? I wonder if it can be made generic as you say.

Also can any of the lenya dev's comment if we are following the correct
approach?

Or should we be defining a usecase?

Regards


Vik


Florent André wrote:
> Hi Anish,
> 
> I also would like to do something like that. Not on testimonial, but for
> end-user (CMS user) it's the same think I want.
> 
> A very good first step will be : 
> http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart1.html
> 
> IMO steps are : 
> 1 - define your xml testimonial's structure
> 2 - build a rng
> 3 - add module
> 4 - enable a one form editor
> 5 - add modif/suppress on each testi
> 6 - enable form (with 1 field for each information)
> 7 - add some cooool javascript 
> 8 - be appy and drink some wine ! :)
> 
> for 1 to 4 I'm not really affraid... We have doc ! But for 5 to 7...
> 
> I you are OK to put your code on a public svn [1], I will like to code with
> you [2]
> 
> ++
> 
> [1] http://svn.4sengines.eu for example ? ;)
> [2] said this last phrase with a babe voice :) 
> 
> 
> 
> On Mon, 10 Aug 2009 18:32:11 +0530, Anish <an...@techblue.co.uk>
> wrote:
>> Hi All
>>
>> I want to create a module "Testimonials" (it will handle all the 
>> operations related to the testimonials like writing, reading, editing, 
>> deleting etc.)
>> My idea of doing this is as follows:
>>
>>
>> *1. User will create a new testimonial using CMS menu.*
>>
>> When user will click on "New Testimonial" option a new form will be 
>> there which will contain fields related to the new testimonial (name, 
>> info,     testimonial-text, picture etc). Then user will fill and save 
>> the testimonial.
>>
>> *2. User will be able to update, delete testimonials using CMS.*
>>
>> On the testimonial page in authoring area, there will be edit/delete 
>> option for each testimonial.
>>
>> *3. All the testimonials will be placed in a single XML file.*
>>
>> *4. In the live area there will be a testimonials page which will show 
>> all the testimonials as read only.*
>>
>>
>> */*User here refers to CMS user./*
>>
>>
>> I don't have much idea about implementing/writing lenya usecases.
>>
>>
>> Please Suggest
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
> 


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


Re: New Testimonial Module (Lenya 2.0.3) - Help

Posted by Florent André <fl...@4sengines.com>.
Hi Anish,

I also would like to do something like that. Not on testimonial, but for
end-user (CMS user) it's the same think I want.

A very good first step will be : 
http://lenya.apache.org/docu20/tutorials/newResourceType/newResourceTypePart1.html

IMO steps are : 
1 - define your xml testimonial's structure
2 - build a rng
3 - add module
4 - enable a one form editor
5 - add modif/suppress on each testi
6 - enable form (with 1 field for each information)
7 - add some cooool javascript 
8 - be appy and drink some wine ! :)

for 1 to 4 I'm not really affraid... We have doc ! But for 5 to 7...

I you are OK to put your code on a public svn [1], I will like to code with
you [2]

++

[1] http://svn.4sengines.eu for example ? ;)
[2] said this last phrase with a babe voice :) 



On Mon, 10 Aug 2009 18:32:11 +0530, Anish <an...@techblue.co.uk>
wrote:
> Hi All
> 
> I want to create a module "Testimonials" (it will handle all the 
> operations related to the testimonials like writing, reading, editing, 
> deleting etc.)
> My idea of doing this is as follows:
> 
> 
> *1. User will create a new testimonial using CMS menu.*
> 
> When user will click on "New Testimonial" option a new form will be 
> there which will contain fields related to the new testimonial (name, 
> info,     testimonial-text, picture etc). Then user will fill and save 
> the testimonial.
> 
> *2. User will be able to update, delete testimonials using CMS.*
> 
> On the testimonial page in authoring area, there will be edit/delete 
> option for each testimonial.
> 
> *3. All the testimonials will be placed in a single XML file.*
> 
> *4. In the live area there will be a testimonials page which will show 
> all the testimonials as read only.*
> 
> 
> */*User here refers to CMS user./*
> 
> 
> I don't have much idea about implementing/writing lenya usecases.
> 
> 
> Please Suggest

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