drupalfun.com
Implied relationships
Submitted by mighty777 on Thu, 12/31/2009 - 20:32
Status:
Open Question:
Hi!
I refer to the book's page 93 - User Relationships - implied relations:
I would like to add 2 types of relations:
1) Fan
2) Guru
"Guru" should be implied automatically to the person whose "fan" I became.
I created Guru. Than I create Fan.
I check Guru, Strict and Reverse like in the book in order to have Hero relationship implied.
However I do not want to allow users to become Guru of someone by their own will. I would like to remove it from the My Relationsips:Actions block.
How can I do that?
Many thanks.

1. Note, however, that this
Note, however, that this content-field.tpl.php template file online payments, named as it is, themes the output of all CCK fields, globally across custom content types. You can become much more powerful when you take control of Drupal and CCK naming conventions and create more specifically named template files.
With a copy of content-field.tpl.php in your custom theme's directory (whether you've modified it or not) you have the ability to theme very specific field situations dsl:
For example, making sure you do have a copy of content-field.tpl.php in your theme folder (it's important to have this file and have it named content-field.tpl.php, if you wish to theme only one specific custom field, you can add an additional template file named: content-field-[FIELD_NAME].tpl.php. For example backup, if the machine readable name of your field is field_custom_field, the name of your template file should be: content-field-field_custom_field.tpl.php. The same code from content-field.tpl.php will work as the base content for this file as well.
Refine this method further to isolate the impact to all the fields within a specific content type by adding a template file named: content-field-[CONTENT_TYPE].tpl.php data recovery. Or impact any single field within a specific content type with a template file named: content-field-[FIELD_NAME]-[CONTENT_TYPE].tpl.php
With this theming method at your disposal, you have quite a bit of control over CCK fields, if you determine such control is necessary. Remember, always use this power wisely and well.