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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

Multiply Contentparts?


Go to End


2 Posts   1592 Views

Avatar
audi

Community Member, 2 Posts

28 June 2008 at 10:07am

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

Forum Moderator, 5523 Posts

28 June 2008 at 10:50am

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