Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 1, 20159 yr 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.
July 1, 20159 yr It comes from each field. So you can for example add additional lines after the field content and then the will show before the next field starts.
July 1, 20159 yr Author So the extra line break needs to be entered within that field's value upon initial creation?Can the title for each field be displayed?
July 1, 20159 yr 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.
July 1, 20159 yr Author 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 )
Archived
This topic is now archived and is closed to further replies.