CCK Author Field 5.x-1.x-dev
File ID: 100807
CCK Author Field 5.x-1.x-dev Description
Description: The module allows you to show node author information in a custom format.
As it uses the cck userreference field, you can easily change the displayed author and keep the real author information in the uid field of the node table. This is useful if you work with freelance authors/journo's or if somebody else handles the actual content input/upload.
To use the module:
1. Enable the module
2. Go to node type settings page Administer -> Content Management -> Content types. Select the node type you want to modify
3. Add a userreference cck field to a node type. Select display template "Author field template"
4. Open the page with content type settings.
5. In a fieldset "Author information" for a field "Author field" select the userreference field you want to use
6. In "Author information template" add php code which returns formatted string. You can use $n (node object) and $u (user object) variables here.
$name = (isset($u->profile_last_name) || isset($u->profile_first_name)) ? $u->profile_first_name . ' ' . $u->profile_last_name : $u->name;
$user_link = l($name, 'author/' . $u->uid);
print format_date($n->created, 'small') .' / <em>' . $u->profile_company_name . '</em> / '. $user_link;
7. Save your settings.
This is a DuoNox Module, sponsored by GamblingCompliance.com.
Your feedback would be most appreciated, and if you write your own plugin, please consider contributing back!
Related: Field, quotauthor, Information, userreference, Author, Select, Content, Object, ugtnameuser link, lname, ugtuidprint, format datengtcreated, issetugtprofile, herefor, variables, String, examplelt fphpname
O/S:BSD, Linux, Solaris, Mac OS X
File Size: 10.0 KB
|More Similar Code|
This module adds a CCK table field type that lets you add a table display to any content type without having to manually enter HTML. It currently parses text data to form the header and row content, but the goal is to accomplish the data entry using a custom form widget. The output is generated by the theme system, so you don't have to worry about forming valid HTML or adding all those little classes yourself.
There is currently no...
This module adds a CCK list field type that lets you add a list display to any content type without having to manually enter HTML. To be most pacific, it adds a textarea field. For every row enter it will be a list point. The output is generated...
If you're using the Wysiwyg API module for a CCK text field, and you have the "number of values" for that text field set to unlimited, you may be encountering some problems:
1. When you use drag-and-drop to re-order the items,...
This tiny module uses Custom filter (previously CCK Computed field) and Chart API modules and embeds a Google Chart anywhere inside the node text. It needs some setup before it can be used, but thankfully it's easier now than previously with the...
Turns a regular CCK text field into a field for selecting and displaying Creative Commons licenses. Makes use of the Creative Commons web services to fetch information on the current license variations and versions for given jurisdictions.
Transforms the autocomplete Author field on node add/edit forms to a select widget. That way, the user doesn't have to guess the first couple letters of the desired username. Instead, he/she can just browse the select box and find it.
This module adds a new widget to the CCK Userreference field type, in order to use the Realnames for autocompletion.
If the widget is configured without any view the autocomplete suggestions and the already filled-in values :
The 6.x-1.1-dev version of the TinyMCE module doesn't work when used in a CCK text field set to "unlimited" for two reasons. One is that drag and drop functionality provided by Drupal core's tabledrag.js causes the tinymce editor's...
Widgets include a normal password textfield and a drupal password confirm.
Passwords cannot be retrieved in their plain text form because only hashes are stored.
Password fields that have been set will have a delete check...
The 6.x-1.1-dev version of the TinyMCE module doesn't work when used in a CCK text field set to "unlimited" for two reasons. One is that the "Add another item" button uses AHAH and the tinymce module doesn't handle that well....
|User Review for CCK Author Field