Needs review
Project:
NodeStream
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2011 at 03:54 UTC
Updated:
4 Feb 2012 at 22:39 UTC
ns_fact has a dependency on ns_article so if you want to use a fact box on another content type you must enable ns_article as well, that kind a suck! I'm going to write a patch to remove the dependency so that you are free to use ns_fact on what ever you want.
Comments
Comment #1
whitefluffy commentedThe problem here was that the node reference field in the article needed to be in ns_fact since ns_article would depend on ns_fact if the field was in that feature. This is why there is a separate fact box for pages.
But now that there are no fields in features anymore, I guess this can be done. Do you plan on adding the node reference field for all content types that should be able to have fact boxes referred to them in ns_fact, and them remove the fields you dont want to use through the .info file?
Comment #2
logaritmisk commentedI think we should remove the reference from ns_* to ns_fact in ns_core and let products add this on a higher level. ns core should only provide us with a great starting point and if we want to use ns_fact we will have to create the reference for us self.
Comment #3
fabsor commentedThere has been quite a lot of discussion on this subject, and it might be that we need another solution than features entirely for this. In the meantime I guess we should go ahead and make ns_fact a "content provider" without worrying about that part for now.
Comment #4
pontus_nilssonWhat is the status on this now that fields are not installed through features?
Comment #5
fabsor commentedIt's still relevant, we need to have a real content provider, so that we can use the same fact box feature in conjunction with other different content providers.
Comment #6
whitefluffy commentedIsn't it sane to do as logaritmisk described, and not include the fact box node reference field at all? Then whenever you want to refer to a fact box, you just add a node reference field yourself and put it in one of your own features.
Comment #7
gumdrop commentedBTW, it might be a silly question but how do we enable the fact box so anonymous viewers can see it? I do have "View Published Content" checked in permissions but you have to be logged in to see the fact box.
Comment #8
whitefluffy commentedgumdrop - If you are using the web channel you might want to check out one of the views displaying fact boxes. The access permissions on the views has been set to "View revisions", which is silly (as oppose to your question) and should be fixed shortly.
There is an issue about it: http://drupal.org/node/1422320
Comment #9
gumdrop commented@ heyintern I kind of figured that out after a bit of traversing through views and panels. Which makes me wonky to say the least. Thanks.
Comment #10
fabsor commentedThis should be fixed now, due to #1404898: Turn all "extension" features into content providers
Comment #11
gumdrop commentedSeems fact doesn't show as being enabled as an attachment to an article, or neither does a form.
Comment #12
fabsor commentedIf you enable facts before articles, you will have to to into "Extensions" under structure and select that you want facts on your articles. Do facts seem to be enabled under extensions?
Comment #13
gumdrop commentedThey appeared to be checked "Enabled" but I had to save Extensions before they showed up.