Following up on #480192: Add <itunes:keywords>, <itunes:author>, and <itunes:duration> elements. where we added the <itunes:author> element we should make it more flexible on where we get the author name from. I'd like a per-node-type option that's either: "- None -", Node Author, or any of that type's CCK text fields.

Comments

guillaumeduveau’s picture

I got it working, will submit the patch tomorrow. I was just wondering, maybe CCK User Reference would be best for this (we can leave CCK textfield too).

guillaumeduveau’s picture

Status: Active » Needs review
StatusFileSize
new4.17 KB

Hey Drewish, here's the patch against -dev. I'm sorry, I have no CVS access at work but I made a patch for multiple files with diff. Some file timestamps are wrong too because I started to work before your last commit. Hopefully I'll improve myself with CVS and patches !

Anyway, the patch allows to choose the source for itunes:author between :
- none
- node author
- a CCK Text Field of this nodetype, but textareas are not allowed : we obviously want something short for itunes:author
- a CCK User Reference field of this nodetype, and if multiple values are provided, they are imploded in a comma separated string

Let me know !
Guix

drewish’s picture

I haven't tested it but just looking at the patch that looks great. I'll be back in a few hours and take a look at it then.

guillaumeduveau’s picture

Hello Drewish, any updates on this ? If you prefer I can re-roll a patch against CVS with the good file timestamps.

drewish’s picture

Status: Needs review » Needs work
StatusFileSize
new9.05 KB

okay i liked your choice of source naming and decided to rename the rest of the variables to match it. i also did a little clean up around it but it shouldn't be too different from your code. might taking a look at it? it probably needs some work.

guillaumeduveau’s picture

Status: Needs work » Needs review
StatusFileSize
new12.05 KB

I just found a typo in a variable name, otherwise I've reviewed and tested the code and everything is clean. I added some fixes for warnings found by Coder, too. I just hope you can work easily with the multiple files patches I did with diff (I've asked for CVS acces @work but it should take some time... IF I get it). See you !

guillaumeduveau’s picture

StatusFileSize
new13.5 KB

I now have CVS access at work and I re-rolled a patch against CVS, is it more usable for you ?

JaredAM’s picture

I like where this module is going, but what if someone is using a node reference (as the author) to point to a staff page?

I suppose that someone could use nodeapi and get the node reference and insert it to the "node author" field on presave.

*Updated*

Never mind, I see where there is a userreference!

JaredAM’s picture

StatusFileSize
new536 bytes

In the new admin page, there is an issue with the Vocab and the default selected value. I've rolled a patch to catch this.

drewish’s picture

committed JaredAM's patch to HEAD.

also committed the documentation and white space changes from guix on #7. i'll re-roll a clean version of the patch in a minute.

drewish’s picture

StatusFileSize
new9.02 KB

here's what's left of guix's changes. i dropped the @see -> See change since @see is better PHPDoc.

drewish’s picture

Status: Needs review » Fixed
StatusFileSize
new10 KB

made a few small changes and committed the following to HEAD.

guillaumeduveau’s picture

Thanks for the update and credits :)

drewish’s picture

of course! you're very welcome. thanks again for all your hard work. sorry i let it sit for so long before JaredAM prompted me to look at it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.