CornellCustomDev / CD_cwd_events_localist_pull

GNU General Public License v3.0
3 stars 3 forks source link

event description markup "lost" #23

Open alisonjo315 opened 3 years ago

alisonjo315 commented 3 years ago

From what I can see (not really sure), event descriptions come in with things like \n, not <p> or <br> -- it's ok in many circumstances because the descriptions get rendered fine with line-breaks and such, BUT, if you need to edit the event node (i.e. to add meta data post-import), you lose these line breaks.

I think it would be fixed if the importer set a value for *_format for the field to which the event description is mapped...


Example

(forgive the truncated description - but you can still see the line-breaks) https://dev-cd-demo.pantheonsite.io/events/institute-african-development-seminar-students-presentations

But if you edit the event node, there are no <br> or <p> tags, and if you were to save the event, the lingering line breaks or whatever you want to call them, will get stripped out.

Screenshot of node-edit

Row data in node__field_short_description table

MariaDB [pantheon]> select bundle,entity_id,field_short_description_format,field_short_description_value from node__field_short_description where entity_id=646 limit 1;

+--------+-----------+--------------------------------+-------------------------------+
| bundle | entity_id | field_short_description_format | field_short_description_value |
+--------+-----------+--------------------------------+-------------------------------+
| event  |       646 | NULL                           | Title: Transportation Policy Development in Africa , Paine Gronemeyer

Cornell AAP '24, Urban and Regional Studies

Title: African Healthcare Real Estate Outlook: [...] |
+--------+-----------+--------------------------------+-------------------------------+
alisonjo315 commented 3 years ago

@sbbutkcin Don't they have to save events on Einaudi, so they can add the "program" tags? -- did you run into this issue when setting that up, or?