Host Profile not showing #181

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

The host profile is not showing on the page.

The host profile is not showing on the page.
davmo self-assigned this 2024-03-02 16:53:05 +00:00
Collaborator
  • 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.
Collaborator

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.
Collaborator

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.
davmo closed this issue 2024-03-04 19:22:29 +00:00
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: rho_n/hpr_generator#181
No description provided.