Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Single Track template #2

Open
bobbingwide opened this issue Dec 17, 2024 · 2 comments
Open

Add Single Track template #2

bobbingwide opened this issue Dec 17, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@bobbingwide
Copy link
Owner

Add a Single Track template to display information about the oik-track CPT

Requirements

  • Title

  • Post content

  • Duration in mm:ss

  • Track number

  • Composer(s)

  • Other recordings for the same title.

  • Lyrics

  • Artist(s)

Proposed solution

For other recordings I prototyped a solution using the following shortcode.
[bw_table post_type=oik-track title="In the land of grey and pink" fields=_oikt_recording,_oikt_track,_oikt_duration ]

@bobbingwide bobbingwide added the enhancement New feature or request label Dec 17, 2024
@bobbingwide bobbingwide self-assigned this Dec 17, 2024
bobbingwide added a commit that referenced this issue Jan 6, 2025
@bobbingwide
Copy link
Owner Author

For other recordings I prototyped a solution using the following shortcode.
[bw_table post_type=oik-track title="In the land of grey and pink" fields=_oikt_recording,_oikt_track,_oikt_duration ]

This solution doesn't work since

  1. title= is not a shortcode parameter
  2. The _oikt_UFI metadata field is now used for the filename of the track. It's different between recordings either because the track number is different or because the track name has not been specified correctly. For examples see variations of C'Thlu Thlu

@bobbingwide
Copy link
Owner Author

For other recordings I prototyped a solution using the following shortcode.

  • The solution involves a new field called _oikt_original which is set with new admin code in oik-tunes.
  • The _oikt_original field is displayed using oiksb/sb-field-block with the label false
  • The virtual field other_versions is also displayed using the SB field block.

This screenshot shows the output for Nightmare - from Better by Far, which is the original version of the track.

Image

The heavy lifting work is implemented in bobbingwide/oik-tunes#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant