Host Profile not showing #181

Closed
opened 2024-01-24 19:59:45 +00:00 by ken_fallon · 3 comments
Owner

The host profile is not showing on the page.

The host profile is not showing on the page.
Owner
  • There are two cases where correspondent (host) data is displayed:

    • In content-correspondents.tpl.html which generates the list of all correspondents in correspondents/index.html
    • In content-correspondent.tpl.html which generates individual host pages showing their details and a list of their shows in a file called correspondents/[id].html (where [id] is the host id number, zero-padded).
  • I am assuming we want profile information in the latter case.

  • The template(s) and queries do not currently return this information from the database.

- There are two cases where _correspondent_ (host) data is displayed: - In `content-correspondents.tpl.html` which generates the list of all correspondents in `correspondents/index.html` - In `content-correspondent.tpl.html` which generates individual host pages showing their details and a list of their shows in a file called `correspondents/[id].html` (where `[id]` is the host id number, zero-padded). - I am assuming we want profile information in the latter case. - The template(s) and queries do not currently return this information from the database.
Owner

Changed the queries queries-correspondent-mysql.tpl.html and queries-correspondent-sqlite.tpl.html to include the profile field. Also changed the in-built query inside content-correspondent.tpl.html called query_twat_shows to include this field.

The end result might need some tweaking since we get back several leading and trailing blank lines from some profiles.

Changed the queries `queries-correspondent-mysql.tpl.html` and `queries-correspondent-sqlite.tpl.html` to include the `profile` field. Also changed the in-built query inside `content-correspondent.tpl.html` called `query_twat_shows` to include this field. The end result might need some tweaking since we get back several leading and trailing blank lines from some profiles.
Owner

Decided to display the field as-is. Will need work to add HTML tags to fields that don't have any.

Decided to display the field as-is. Will need work to add HTML tags to fields that don't have any.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HPR/hpr_generator#181
No description provided.