Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Multiply Contentparts?


Reply

2 Posts   1245 Views

Avatar
audi

28 June 2008 at 10:07am Community Member, 2 Posts

Hello,
is there a possibilty to integrate contentparts that can be multiplied by the author?
What I'd like to have:
At the moment, on the "main" tab, I can integrate some content fields for the author.
Is there a possibility to have "contentparts" that the author can multiply, for example for a list of persons:

> Textfield (for the name)
> Image
> Contentfield (for a description)
<<<< now, I'd like to integrate (multiply) these fields on one page, as often as I want
In the "contentfield" I'd like to use functions like "bold" etc.

I hope, that you understand my problem ;-)

Greetings!
audi

Avatar
Willr

28 June 2008 at 10:50am Forum Moderator, 5511 Posts

So want you to do is have multiple content boxs? What you would use if this is the case is a TableListField Or a complex table field

http://doc.silverstripe.com/doku.php?id=tablelistfield
http://doc.silverstripe.com/doku.php?id=complextablefield

So your page would have a 1 to many relationship - 1 page has many people. See the tutorial on dataobject management for information on how to use a HasManyComplexTableField

http://doc.silverstripe.com/doku.php?id=tutorial:5-dataobject-relationship-management