Forums / Developer / Object relation list question
Glenn MacGregor
Monday 17 November 2003 8:15:40 am
Hello,
I am thinking about changing the builtin Product class. Currently the Product class contains: Title Product nr Intro Description Price Photo
I want to add a list of bullet points and a conclusion to this.
First question: Is it better to modify the existing Product class or create a new one?
Second: I was going to create a class for the list of bullet points because I don't know how many there are per product so I can't just have (say) 3 Text Line's for bullet 1 2 and 3 because there may be 100 bullets. So I was going to create a class which contains a Text Line and a URL (because each bullet could be a link as well) and have an object relation list of those as part of the product. Is there any docs on getting the object relation list working and is this the correct solution?
Thanks!
Tore Skobba
Monday 17 November 2003 8:37:13 am
Hi
Hmm why dont you just have an HTML or XML textfield in order to represent your list? Then simply add link tag in order to make links. For instance check out the online editor demo at : http://www.ez.no/products/ez_publish_3/demos
Alternitively I would opt for making an new product class and not modify the existing classes. This in order to hopefully run future updates of the system easier.
CheersTore