I have recently tried out the CC-lite module on a test server and found I liked it a lot. Unfortunately it doesn't fit the bill for a site I might make for a journalists league.
So I started to think about creating a Copyright node-type to encapsulate any/all copyrights needed.
Then I played with the http://creativecommons.org/license/ page and created the following for embedding into a text field in the Copyright node:
![]()
[title] by [author-name-raw] is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Norway License.
Permissions beyond the scope of this license may be available at http://[site-url]/copyright.
Note how I have used tokens inside the HTML.
Problem 1
Then I realized that the tokens will be replaced with the info pertaining to the Copyright node I made, and of course not the node which references it.
How would I work around that problem? I would probably have to create a computed field, which goes into the Copyright template, gets the original text, and do token replacement using the current nodes info? Then the user can just get a drop down of all allowed copyrights.
Or is there any non programmatic way of doing this without setting up too much work for the user? Perhaps I could use a computed field, and let the Copyright node reference field just give the names of the copyrights and then try to construct the above link in a switch statement?
Problem 2
How do I let a computed field push info into the html head in order to create html relative links for the copyright info? I think I'll try out http://api.drupal.org/api/function/drupal_set_html_head/6 it seems to fit the bill.
Comments
Problem 2 solved
I did the following using CCK and Computed Field:
and the link shows in the site navigation bar of Opera. Now it just needs to be fine tuned. I can also see how to use this trick for a lot of other cool stuff.
Off to the laboratory again.
In http://drupal.org/node/356711 I show how to enhance the computed field to make a pretty good Dublin Core and HTML head link functionality.
Paul K Egell-Johnsen
Paul K Egell-Johnsen
Problem 1 Mostly Solved
I created a computed field for Dublin Core and Head link tags and a computed field and a copyright node type in Creative Commons and Copyright.
Some stuff todo, but at its most basic it gives me full control of what I need to do.
Paul K Egell-Johnsen
Paul K Egell-Johnsen