Jump to content

Using the forum for database record comments does not display field titles.


Recommended Posts

Is there a template someplace to edit what content is shown in a new forum topic for a new database record entry (for posting a new topic and using the forum for comments)? Currently when a new record is created in a db only the values of all fields are displayed with no line-breaks, only spaces, between each field.

Link to comment
Share on other sites

Oops, I wanted to show you a screenshot of the settings, but just noticed the “topic format” field was only in 3.4 and is not present in 4.0 anymore. 

But I guess this is the template you can modify to change the default display. Haven’t tried it, but looks like it. 

Bildschirmfoto_2015-07-01_um_21.08.47.th

 

Link to comment
Share on other sites

Thanks!, That does appear to be the correct template (added a line break to the template and it moved the field's values onto their own lines). 

Looks like the $record object doesn't contain the titles. Not sure how to reference that from the $record object.

    [_data:protected] => Array
        (
            [record_publish_date] => 1435779837
            [record_last_comment] => 1435779837
            [member_id] => 1
            [record_last_comment_by] => 1
            [record_last_comment_name] => Balandar
            [record_last_review] => 1435779837
            [category_id] => 3
            [record_approved] => 1
            [record_locked] => 0
            [record_views] => 0
            [record_pinned] => 0
            [record_featured] => 0
            [record_future_date] => 0
            [record_comments] => 0
            [record_reviews] => 0
            [record_comments_queued] => 0
            [record_comments_hidden] => 0
            [record_meta_keywords] => 
            [record_meta_description] => 
            [field_5] => testy
            [field_7] => 1230
            [field_13] => 456
            [field_12] => 42562
            [field_11] => adsfdsaf
            [field_10] => safdsadf
            [field_8] => asdfadsf
            [field_9] => sadfasdf
            [field_6] => 
            [record_saved] => 1435779837
            [record_updated] => 1435779837
            [record_allow_comments] => 1
            [record_dynamic_furl] => testy
            [record_static_furl] => 
            [record_last_comment_seo] => balandar
            [primary_id_field] => 4
        )

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...