Host Profile not showing #181
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HPR/hpr_generator#181
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The host profile is not showing on the page.
There are two cases where correspondent (host) data is displayed:
content-correspondents.tpl.html
which generates the list of all correspondents incorrespondents/index.html
content-correspondent.tpl.html
which generates individual host pages showing their details and a list of their shows in a file calledcorrespondents/[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.
Changed the queries
queries-correspondent-mysql.tpl.html
andqueries-correspondent-sqlite.tpl.html
to include theprofile
field. Also changed the in-built query insidecontent-correspondent.tpl.html
calledquery_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.
Decided to display the field as-is. Will need work to add HTML tags to fields that don't have any.