Hi, me again. If you don’t want to read situation explanation, just skip to the questions.
I’m doing a discography section with pods, it is nearly finished – the last thing to do is a tracklist for every release, and here i stuck. I’m newbie with all php/css/etc etc stuff, so i don’t see rational solutions sometimes, and also can’t pull php/js code out of some plugin.
So the first question is – can i somehow pull out id3 tags of an mp3 file inside the pod directly by CMS Pods?
Question can be rephrased as this – does file column contain anything except for array of filepathes, and if yes, can i use this anything to pull out mp3′s id3 tags?
The second question is – can pods file column provide me enough information to pull out tags some other way? (I just want to confirm that filepath should be ok to pull them out somehow, and i should start looking in that way)
I know that most possibly i can achieve the same effect with helpers, but i don’t want to have more columns than i already have, and they won’t be so flexible.
You’ll need an external PHP library to extract id3 tags from a file. Try using something like this:
I believe all you need to supply to a library function like this is a valid file path to an audio file.
That’s sad, i already have ton of code and files included in theme and hoped there is more simple way. I’ll try that one, thanks.
Also, if someone will encounter same probem – i’ve found id3_get _tag() function, but it needs to be installed first, and i don’t know yet if my hoster will do this.
You must be logged in to reply to this topic.