best way to add more data fields?

Permalink Browser Info Environment
Hello

I purchased your testimonials addon because I like the general way it works for managing testimonials and adding them to pages.

I want to add my own data fields though (not just add them to the "Extra" area) for things like:

- headline (text)
- location (text)
- date (date picker)
- photo (file picker)

This is because I want finer control in how this it output in the code. (I'd also like to change the actual content area to a Rich Text Editor, but that is not too important right now.)

Anyway, I am just wondering if I have to edit the main package OR if I can modify the package the way I would normally extend something in the concrete core?

(PS. I am getting a friend to program this for me [not programming myself], and he is asked whether he should edit the main package. My feeling is "no, you should extend it if possible" but I don't know enough about extending C5 addons to advise him)

Thanks in advance!

Type: Discussion
Status: New
webporter
View Replies:
c5studio replied on at Permalink Reply
c5studio
Hello,

You can edit the package, but you just have to be make sure that you don't update it if a new version comes out because it would overwrite your changes.

Other than that adding fields should be pretty straightforward, you have to add the database fields to db.xml, and then you will need to add the fields to the form in the dashboard. You will also need to make sure that the fields get saved in the Testimonial model. Then all you need to do is add the fields in the blocks view.php

Hope this helps!
BHWW replied on at Permalink Reply
BHWW
HI I need to do the same, did you have any success, if so would you mind sharing? Thanks in advance

Ben

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.