Sort nodes in view according to taxonomy term weight...

I think the subject says it all. I want to be able to sort the nodes in a View according to the weight of their category (which is a taxonomy).

I'd rather not go the route of hook_query_alter because this seems like a pretty simple concept. I see that there's a module for 7.x that claims to do this, but I need this for 8.

subtheme for bartik

hey,

can someone help me with the making of a subtheme?

I followed a few tutorials but with no succes. I also read the documentation on drupal.org and a few topics in the forum but it is all confusing to me.

can someone give me some good guidelines?

this is what i have:

My: .info.yml
bartik_subtheme.info.yml

name: Bartik_subtheme
type: theme
description: 'mytheme theme based on Bartik'
core: 8.x
package: custom
base theme: bartik
libraries:
- Bartik_subtheme/global-styling

How to insert field collection value programmatically in Drupal 8

Hi All,

I need a process for inserting field collection values programmatically in Drupal 8. I have tried following :

$fc_item = entity_create('field_collection_item', array('host_id'=> 44, 'host_type'=> 'node', 'field_name'=> 'field_country_content_index'));
        
$fc_item->save();

but it always throws following error while saving:

"Unable to save a field collection item without a valid reference to a host entity"

Please help.

Thanks
Ashutosh

Alter views Breadcrumbs in drupal 8

Hi Everyone,

I need a help to alter the views page breadcrumbs. I want to add the title and remove some links from views pages.

CSV export from Drupal 8

I can't seem to find a module /method for exporting CSV files. In Drupal 7 I could create a CSV export from within a views page but there does not seem to be a D8 module that lets me do this.

This kind of functionality is really important to me and I hope it is available on D8 or I will need to consider going back to D7.

Please advise.

Many Thanks

Steve

Changing default location of features directory

Hey everyone,

I would like to change the default directory to which the features get exported :

Upon my first export, I moved my my_feature_name feature to profiles/myprofile/modules/features/ from modules/custom/, but now that I exported once more, it is obviously still exporting to the default directory which is modules/custom. I would like to be able to change that directory.

Any help would be greatly appreciated :)

I am using drupal 8.

Anha

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x