Drupal search-api doesn't index custom body field - drupal

I've created custom content type, with custom text area field 'field_main_body' (main body field is deleted). The field doesn't show up on search-api index configure page. The search result don't show nodes containing text in this field. I think it's not beeing indexed by search api. I've tried http://ygerasimov.com/add-custom-field-search-api-apachesolr-index sollution, but nothing happened.
Does anyone know how to add this field to search-api index? Or maybe there's another problem here?

Try to re-index until 100% ("admin/config/search/settings" page) or/and run cron. There is no reasons that it is not indexed.

Related

Wordpress Advanced Custom Fields - Limit A User's Choice To One Option

I have a WordPress website and as part of the news items, the editor can add either an:
internal link OR
external link OR
file
Currently I have this set up as a repeater field with maximum rows set to 1.
Is it possible if say one value has been entered, to prevent another of the values from being filled in.
E.g. I add an internal link and then try to add an external link. A message of some sort is then shown to me to say that only one value can be selected at a time.
I know I can add a description to the field with this information but I want to make it idiot proof so that the user can never add more than one value.
Thanks for your time and help in advance.
I can't write this in comments but celeriko right. Install types plugin there is ability of conditional logic. You can very easy implement of from backend.
Types: http://wp-types.com/
Reagrds

Drupal 7 webform/entityforms with node reference

I have a form on a node, that displays 2 fields that are entity reference fields from the current node page. It shows the correct info on the label of the fields, but as soon as you save the form, it saves the nodes title and not the correct info.
See screenshot at https://www.dropbox.com/s/rwj1lu1d34zgb53/ScreenshotEntityform.jpg
I don't know PHP or how to mod/write a Drupal module, I just need some guidance as to if this is possible and how to do it, so any help would be really really great, thanks.
There is a setting to edit how an entity reference field is displayed.
If you go to Structure > Content Types > Your Content Type > Manage Display then you will see a select box to control the format of each field.
The entity reference field will let you choose between either label, entity ID or rendered entity. It sounds like at the moment it is set to label so is showing the node title. If you set it to show the rendered entity then it will show all fields that belong to the referenced entity.
The easiest way to hide fields you don't want displayed would be to install the Field Permissions module. This will give you a setting for each field that allows you to choose who can see it. If you don't want to use the Field Permissions module you could create a custom template but it sounds like your trying to avoid that...

Drupal: List recently modified pages

In drupal, I would like to create a page like a site map, but also containing last modification date of each page and preferably mod author.
To clarify: I need to last date the page contents have changed, so this could be a change to the template or the underlying DB. Clearly, changing 1 DB entry can effect many pages.
Many thanks
Last changed timestamp is stored in node table under changed column. You can get this information from here & display it in the teaser.
If you need more sophisticated change control then you need to enable node revisions: http://drupal.org/node/320614
If you are using the views module, create a view for a sitemap and make an alias /sitemap or something similar.
When you add fields in the view, you can select: "Content: Updated date" as one of the fields. Any time this content is changed, it will use that timestamp as the field.
I hope this answers the question. If I misunderstand your question, I'll try to revise.

Newly added Drupal cck fields are created but not shown when published

I have a content type which has several fields. When I add new fields to this content type, they get added. I am able to enter data into these newly created fields. But when I publish it, the previously existing fields are shown. But the newly created fields do not appear.
I have checked the permission, cleared the cache.
Am not much aware of using view module. But there exist a view for this content type. Is that responsible for it?
Thanks in advance.
If the page where you want to see your fields is handle by Views, yep definitivly need to look into this views. There a lot of chance that the views only display fields (at the opposite of "full node" or "teaser"), and the fields it display are set in the views configuration.
Some modules will allow granular permissions per cck field.
You might check the user permissions page and see if there is a checkbox for "view {CUSTOM FIELD}" or "edit {CUSTOM FIELD}".
I found out what it is. Actually in the file node.tpl.php , there was an exception for the content type 'article' to print only the predefined fields. So, the newly created fields were not getting printed. But when I added the php code for printing these newly added fields, it worked. Thank you everyone for your time.

Drupal6 - Display specific View from a specific user in page

I need a help displaying a specific View result in a page which the user created it.
story...
"User X has created a Page called My Store and UserX has products which was created in custom Content Item."
Now how do I show this UserX's products in his My Store page?
I have already made a view called User_Store_View, I added a Page Display and on Page Settings:Path, the value was "node/%".. now I guess my problem is on the Arguments?
The path should be something like my-store and it should have an argument of user id. Given your requirements I think setting the default behaviour for the argument being invalid or not being supplied to an empty result set would be the most sensible(I think the default is show all). That may be all you really need.
However, if your product is a type that you've created yourself you will need to do some behind the scenes wiring to expose all your fields to Views; it's almost always better to build a content type using CCK so it's already hooked up to Views. And D7 is a different beast in this regard, with fields part of core and whatnot, so I can't help you out there.

Resources