Closed (fixed)
Project:
CCK Formatters
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2009 at 13:44 UTC
Updated:
26 Jul 2010 at 19:42 UTC
Would you be interested in adding the same feature for display of the Title (link) and Title (no link) options for Node reference fields?
Comments
Comment #1
scottrigbyI see that CCK Formatters is the better module for nodereference support. Anyone interested in this? If so, what's the best approach?
Comment #2
Crell commentedIsn't that already handled by the nodereference module itself?
Comment #3
bomarmonk commentedNode reference does not automatically display the content or fields of a referenced node, so there is a lot of room for other modules to make node reference fields display in more usable ways. Just my two cents.
Comment #4
brisath commented. . .and, I was just sent over here from the CCK issue queue at http://drupal.org/node/540504 . I have a need for the following feature for nodereference.module:
Ability to hide the title and byline in the Display Fields. A drop down option for "Node Body Only" and "Node Teaser Body Only" would accomplish this for me. Control over other CCK fields would also be helpful.
Comment #5
Crell commentedOn my nodereference, I get a "Full Node" and "Teaser" formatter out of the box. I don't see what the issue is here.
Comment #6
brisath commentedI don't want the full node or the teaser. I want the body only.
Comment #7
scottrigby@Crell: I missed your reply earlier - apologies the miscommunication - yes that feature is in Nodereference... My question was from a slightly different context, so I should have clarified when i moved it to this issue.
Initially i added this feature request in the 'Text Formatter' queue (until i realized that was only for the Text module, then moved to this queue). So the implied context (what i meant to say above) was to ask whether the 'comma-separated' options could be applied to the existing "display of the Title (link) and Title (no link) options". A simple version (consistent with CCK Formatters' Text option) would be like:
* Title (link)
* Title (no link)
* Title, comma-separated (link)
* Title, comma-separated (no link)
* Full node
* Teaser
* [Hidden]
Though there are slightly more elaborate options for Text Formatter as well ('Commas-And', 'Commas-And-Period', 'Unordered List', 'Ordered List'). I'd be willing to work on the above for Nodereference, but just want to make sure I'm not barking up the wrong module ;) I know we can add formatters to our own custom modules, so that's always an option if you'd rather not see this here.
@brisath I see what you mean - the option to display only the body text without the node title is not currently an option. I guess you would want to add the following to the list above:
* Full node (title)
* Full node (no title)
* Teaser (title)
* Teaser (no title)
I guess the list of options could get overwhelming.
@Crell: this makes me think maybe there could be a few more commonly requested formatter options available, potentially with a configuration screen (to optionally enable or disable the each option) - so the format options list could remain as extensive or uncluttered as we want.
Comment #8
brisath commentedThanks scottrigby, your clarification explains what I am looking for. In my immediate case, Full node (no title) and Teaser (no title) would do exactly what I want. However, more flexibility may be helpful in the future like selecting or omitting different CCK fields, as you have inferred.
Comment #9
scottrigby@brisath: i purposefully avoided mentioning adding selection options for displaying specific cck fields through the referenced node because this could be an insanely complex configuration screen, and maybe a totally unnecessary duplication of CCK's 'Display fields' screen ;) -- for specific fields I suggest coupling a viewfield with nodereference (add the nodereferenced nid as an argument in the view) .
Comment #10
Crell commentedConfiguration is sadly not really available, due in part to the complete and utter lack of per-formatter-usage configuration in CCK. I don't believe that's solved in Drupal 7, either. Any other configuration would be out of band and site-wide, which makes it not very useful.
scottrigby's suggestion of using viewreference and nodereference together is a reasonable one at this point. I'm not against a nodereference mirror to all of the textformatter formatters, but that's probably large enough to warrant its own module.
Comment #11
brisath commentedUsing viewfield and nodereferenced nid as an argument is a good thought, but that won't work for me in this particular case. Is it possible to have a token, like [field_nodereference-body]? That might accomplish what I need.
Comment #12
brisath commentedIgnore my last comment. #9-10 above helped me solve my problem afterall. I tried using a "view reference field" pointing to a view I created with a node body field. The argument was set up to be the Node Reference "node link." This didn't yield anything in my node display. I also tried using a relationship for Node Reference node link but still no luck there.
I'm not sure if I had something set up incorrectly. In any case, I stumbled upon the module http://drupal.org/project/nodereference_views This immediately worked for displaying what I wanted to see. I cloned the supplied view from the module and included a single field for Node:body and made it an Style:Unformatted display. Then, using AutoNodetitle I inserted the token [field_node_link-title] for the title. When creating the node, I used a different menu location.
Now I'm happy! Everything came out perfect with this. The breadcrumbs show the new location, yet the content is all from a different node. What I have is a phantom node (i.e. mirror or symlink node). The reason this is important to me, is so I can use the exact same content in 2 or more places in the menu structure. One serves as the anchor that can be edited, and the other a mirror.
Coincidentally, I also added a note that is only visible to admins or other roles (through permissions) that links to the original field when viewing the phantom node. I did this in the form of cck field link (http://drupal.org/project/link ) with a default value of [field_node_link-url] for the link and "This is a mirror of Node [field_node_link-nid]" as a static title (requires token module).
I know there is already a NodeSymlinks module still in development ( http://drupal.org/project/nodesymlinks ), that I had originally considered to accomplish this task. The approach I've listed may be a better approach because it is more flexible. . .or maybe not. I haven't tried out the other module. My approach does require several modules though, but fortunately I already had most of these installed already. Anyway, this is an alternative that may have some upsides compared to dealing with a single module to accomplish the task.
There is also another development module http://drupal.org/project/multiple_node_menu , but this currently lacks breadcrumb and pathauto distinctions.
Thanks for the help, especially scottrigby
Comment #13
brisath commentedComment #14
Hobbes-2 commentedsubscribe
Comment #15
samonenko commented@scottrigby
>> * Full node (title)
>> * Full node (no title)
>> * Teaser (title)
>> * Teaser (no title)
Whether it has been created?
It is very important for me!