Hi ...
I searched a lot to find the answer, I found one but didn't worked for me ...
I have Article content type, and Featured Article (FA), the FA have only reference filed to the Article to list the FA alone.
I have 2 block, one for latest articles and one for the featured articles, I do not want to duplicate the articles in the two blocks, so here what am trying to do with the views2 & cck nodereference module:
1. Node view type fields.
2. Relationships : FA: field_featured_node (cck nodereference)
3. Filter: Node Type : Article
4. Filter Node Nid : empty, Relation field_featured_node
5. Fields Node Title.
but nothing happening I get all nodes!
where is the clue ??!
Thanks in advanced!
Comments
Comment #1
merlinofchaos commented1) I'd recommend the nodequeue module for a really easy way to select featured articles, rather than this which sounds complex and hard to use.
2) Why are you using 3.0-alpha1?
3) You might need the node_referrer module (I think) to provide the back relationship. What you're doing is looking for a list of articles whose nodereference to featured articles is set to NULL. Since the nodereference is set on featured articles, not articles, it is always NULL.
Comment #2
marvix commented1. nodequeue sounds good, but I need to add image, another title for the featured articles, also to include slide shows, polls ... that why with my way will make easier !
2. its still offline site, to the lunching time I will replace it with latest stable version, or when I meet some problems with ver3.
3. you right ..
Thanks a lot ..
Comment #3
marvix commentedregarding point 3, its seems this will not work ... what they mean with "Node id" ...
They saying that views2 support the back reference ...since the backlinks module shifted into the views2 !
Comment #4
patcon commentedWhy not just use the flag module to tag your featured articles? It's hella documented and totally convenient for things like this, and works great with views (check documentation link).
As for your needs for extra fields with featured articles, you could put the extra fields in a fieldset on the article creation form (collapsed by default so as not to clutter up the create form). These fields could be set to hidden on the "Display fields" settings page, so that they show up in neither teasers nor full nodes, but then you could show them when you're using views to display your lists. This might make more sense then having a "FA extras" node type, which it sounds like you're doing.
Hopefully this helps, and good luck! :)
Comment #5
merlinofchaos commentedbacklinks is about search, not about nodereference. Nodereference is *entirely* supported by CCK, not by Views at all.
Comment #6
marvix commentedI see ,,, am using now nodereference , and its works fine , thx!