trying to add an extra field/ text area to the Discussion GuestBook

Permalink Browser Info Environment
I think this is above my pay grade, but my client loves the functionality of the Discussion Forum here - it's pretty awesome. I 'm using the Discussion Guestbook on certain pages as a way for multiple people to comment/ add info about a certain topic.
But My client would like to have a template specifying certain topics that need to be discussed for every contributor about a subject.
For example:
The topic is about Dr. Joe Black
The template items that each student needs to address: Proper Attire, Required Reading, Equipment / Best Apps.
(around line 200) I added in an extra text area by copying this code: ( I also slid in the echo t part (Proper Attire)
<strong><?php    echo t('Proper Attire') ?></strong>
         <?php echo Loader::helper('form')->textarea('discussionGuestbookBody', $entryBody)?>
         <br/>


and just below it did the next topic like this

<strong><?php    echo t('Required books, reading, equipment/ Best Apps') ?></strong>
         <?php echo Loader::helper('form')->textarea('discussionGuestbookBodyA', $entryBody)?>
         <br/>

and I tried adding the extra call?? on line 120 for that new added text area, but it just duplicates what ever was posted into the first text area. Nothing from the second text area posts. If I leave the 2nd text area empty it returns " Your comment is empty "

I obviously am not doing a lot of things right - can someone point me in the right direction?

<strong><?php    echo t('Proper Attire:  ') ?></strong>    
         <?php echo $p->getBody()?>
<br/>
<strong><?php    echo t('Books and such: ') ?></strong>    
 <?php echo $p->getBody()?>


Let me know your thoughts.

Type: Discussion
Status: Archived
PPPills
View Replies:
PPPills replied on at Permalink Reply
PPPills
I forgot to mention that I copied the Discussion GuestBook view.php file into
>templates
>doctors

so that this can become a custom template.
And I'm editing the view.php file.
PPPills replied on at Permalink Reply
PPPills
too little sleep: I mistyped a section:

If I only put text into the 2nd text area - and NOTHING in the first - then it returns
" Your Comment is Empty"
ryan replied on at Permalink Reply
ryan
Seems like you're not saving the data anywhere.
The key point here is to understand that discussion posts are in fact concrete5 pages. To store additional information you'd have to create a second discussion post content block, or add an attribute the system and then take the content of the form that's posted and save that value. Then you'll have to modify the display to output the content appropriately.
So it's going to get allot more complicated.....
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.

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.