The title field in the contents has disappeared - drupal

in the types of content that brings by default drupal and some that I have created, at the time of the visualization the title field that has the form, then it is not shown on the pages or in the views created from this content , Where is this field re-enabled? Before it was shown, but now it does not appear.
When I go to the administration part -> structure -> types of content -> manage fields -> Manage presentation, all fields in the form except the title appear.

You will not see title field in "Manage Fields" on content type. Its kind of default field that comes with every content type. On first tab, where you can edit content type. You can see few options about title: preview optional or not.
Now come back to your views. I hope you filtered correct content type, and added title field to be displayed. And, I hope you have some content of that content type.

Related

Drupal: display views page instead of default node/%

Case is that im using views for displaying each of content-types.
eg. q=?news/12 for news by nid
q=?product/13 for products by nid
Problem is when im creating (or editing) new content, it automatically displays (or refer) ?node/14 instead of ?product/14. Also menu link is created under node/14 link.
How could i set each view to referring content type?
Thanks in advance.
You can create a view (display mode : page) for each content type, which displays datas from your node (fields or whatever you need). To do so, add a contextual filter in your view, on content nid, give default value : content nid from url. Then give to this view a url like "/news/%". So "/news/12" hits this view and grabs data from news content type with id 12. Then you can manually modify menu link, or use pathauto to specify /news/[node:nid] as a pattern for all your news nodes (I never tried all this stuff together but it should work).
Other solution : https://www.drupal.org/project/contemplate (seems deprecated...)
Other solution : create a .tpl for your content type nodes : node--news.tpl.php, but no more views...
Other solution : create a view displaying one particular node data (like I explain first with a contextual filter), this view creates a block (display mode : block), you assign this block to a region (with block interface), and set this block to be displayed only for the news content type (last menu on the left on the block configuration page). Then with Display Suite you hide everything for this content type on the full content display. So on each node page which refers to a "news" node, you have nothing in your page but your block (and the node title, which you can remove with display suite extras I guess).
Good luck with it

In Drupal 7, can you create a field in a content type which lets you add content of another content type and keep the reference?

Imagine the following content types:
Content Type A
- Title
- Field with a link "Add content of type B"
Content Type B
- Title
- Node Reference
If one adds content of the content type A and views this node, there shall be a Link/what ever which says "Add content of type B". When clicking this link (/node/add/b), there shall be a direct reference to the previous node of type A. For instance:
User adds new content (type A) titled "Awesome content" with url node/10. Some other user views this node, sees the link "add content of type b" and opens node/add/b. In this node form, there is the field "Node reference" and shall automatically preselected node/20 because this is the node the last user came from. Is this possible?
I haven't seen a module that does this.
But you could do it by having a link on node A, but instead of it being 'node/add/b', you could make the link 'node/add/b/[node A id]'.
Then on node b have a node reference field and set the default of this field with a form_alter and get node A's id with arg(3) in the form_alter.
I think this new module might help you,
Inline Entity Form
this gives you the ability to edit ContentTypeA node which holds an inline field that is reprsenting ContentTypeB node.
all this from the same page.
add to this, from that field you can add multiple fields and nodes I think.
there is youtube video that explain it
Nodereference URL widget does this magically awesome.

Drupal 7 displaying image in search results

I have a content type called "people". When a search is made and one of the search results is of "people" type, I want to display two fields of the "people" type; an image called "photo", and a text filed called "email".
Under "Manage Display" of the "people" content type, I selected custom display types and selected "Search Result" box. After saving, I selected the new "Search result" button and hid all other fields except "photo" and "email". I then customized the photo to have image style of "thumbnail".
I saved, cleared the cache, and reindexed the site. The search results are correct but no images are shown. I am very new to Drupal, all the help I could find is for Drupal 6 and by reading the comments people say that the solutions shown do not work for Drupal 7. Help...
Have a look at the display suite module which will further augment what you are trying to achieve and probably work better for you.
Here is a screencast about the search results specifically

Drupal: building a users-submitted testimonials page

What's the easiest way to create a testimonial page in Drupal ?
I need the users be able to add a comment on the bottom of the page, and I need to approve them before they can be published.
I could use views + webform module for it ? Or is there something simpler ?
thanks
Create a content type called "Testimonials" and set it to default Unpublished. Call the Title field "Name" and the body field "Testimonial".
Create a View called testimonials with a page attachment that lists out nodes of type "testimonial" with a filter for Published = Yes. Set the path to "/testimonials".
Use the Form Block module (http://drupal.org/project/formblock) to put the Node Add form for the Testimonial content page into a block.
Configure the block you created to appear at the bottom of the testimonial page (your theme should have a "Content bottom" region, if not you'll need to add one by editing the theme's page.tpl.php and $theme.info file.
To approve a testimonial, go to the content list, filter by Type: Testimonial and Status: Unpublished then use the checkboxes and the drop-down to change the status to "Published".
This will provide a page that lists testimonials, with an "add testimonial" form at the bottom of the page, and all testimonials must be approved before they will appear on the site.
If your criteria for a testimonial is just a block of text then creating a "testimonial" content type would work. You could allow users to create them but require admin approval to be published.
You can also change the access control for comment approval
Edit:
This was going to be my follow-up comment when you clarified that you wanted a form at the bottom of an existing page.
I don't know if this works, but try
viewing the HTML source of
/node/add/testimonial in your
browser and copy everything from
<form action="/node/add/page"... to
the closing </form> tag.
Gah. That sounds hideously complicated. If you want a form at the bottom of an existing page then maybe the plugin you mentioned is the best option (but I haven't researched it).

Changing order of fields in Drupal's content type

I am using Drigg on Drupal 6.17. Drigg has a content type called as "Scoop". I try to change the labels and order of fields. Normally, this is done in Content Management > Content Types > Manage Fields . But some fields that are shown in Create Content screen are not shown in Manage Fields screen.
The screenshot of Manage Fields is here:
The screenshot of Create Content view is here:
The first three fields (Submit the scoop as.., Scoop's URL, Scoop) in Create Content form are not shown in Manage Fields view.
I would like to ask the reason for this. They must be defined somewhere else. Where is it?
Manage fields is for editing CCK fields that you have added. Other fields from different modules often have a weight setting that you can change to move the field up and down, which you would get to from the main content type editing page.

Resources