Forums / Developer / Information regarding collect.ini?

Information regarding collect.ini?

Author Message

Paul Forsyth

Friday 30 April 2004 2:34:40 am

After looking at the new contributed ezcountry datatype I noticed that it includes views for 'result' and 'collect', views i didn't know existed! I dug around a little to find they are loosely related, or controlled by, the collect.ini file.

Would it be possible for some information, documentation, to be created to describe how to best use this file and for best practise guidelines to be given for how to use the new views? I notice there isn't much in the way of current documentation, eg:

http://ez.no/content/advancedsearch?SearchText=collect&SubTreeArray=488&SearchButton=Search

Would it also be possible to expand upon new functionality like this with future releases? As someone who started to use eZ with betas of 3.0 I have my own developed best practise for creating templates. By introducing new views I can see these are refinements to the process and can aid development, so a few examples describing how these would affect developers would go down well, i think.

Thanks,

Paul

Bruce Morrison

Wednesday 08 September 2004 8:42:26 pm

Hmmm still no real info on this.

Anyone got some pointers, specifically on the values in [DisplaySettings]
and if they are all implemeneded

[InfoSettings]
TypeList[feedback_form]=feedback_form

[DisplaySettings]
DisplayList[feedback_form]=redirect
RedirectURLList[feedback_form]=/thanks

I'm assuming that the above show redirect to "/thanks" after the form has been submitted - but it doesn't seem to work :(

Any hints before I dive in to the code?

TIA
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Bruce Morrison

Wednesday 08 September 2004 9:57:18 pm

Well the above does work as long as

[CollectionSettings]
CollectAnonymousData=enabled

It was disabled because I'm tring to stop the infocollector from storing the collected information in the ezinfocollection & ezinfocollection_attribute tables and just send an email.

Looking at the code this does not seem possible.

Anyone know when or how information in these tables is cleaned out?

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Paul Forsyth

Thursday 09 September 2004 12:03:12 am

Not heard a thing. Though documentation is meant to be forked 'shortly'. What this means in practise is anyones guess since its over a month since Ole announced this and i've not seen anything different in the docs section:

http://ez.no/community/news/community_newsletter_23_07_2004

paul

Ole Morten Halvorsen

Thursday 09 September 2004 2:05:39 am

Paul,

We have planned to work on the documentation during the 3.5 release cycle. We will not have time to do everything we would like to do in this cycle, but I assume work on the documentation will continue on to the next cycle as well.

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Charles-Edouard Coste

Tuesday 10 March 2009 7:53:55 am

It seems that you also need to add :

[InfoSettings]
TypeList[feedback_form]=feedback_form

If you don't... the information collector module doesn't consider feedback_form class as a information collector and will ignore directives like RedirectURLList[feedback_form], DisplayList[feedback_form], and so on...

Actually, it seems that it can be usefull if you change the name of the class but doesn't want to change all directives, for instance you can have :

[DisplaySettings]
DisplayList[feedback]=redirect
RedirectURLList[feedback]=/thanks

[CollectionSettings]
CollectAnonymousDataList[feedback]=enabled
CollectionUserDataList[feedback]=unique

[EmailSettings]
SendEmailList[feedback]=enabled

[InfoSettings]
TypeList[feedback_form]=feedback

If you want to change feedback_form to feedback_message, you just have change the last line :

...
TypeList[feedback_message]=feedback
...