Access a node field from a view

Hi!

I need the "value" of a "filter" in my view to have the same "value" as a "field" of a "node" of a different type of content. By code I try to access that node through a hook but I find it impossible.

Example

Content type 1

Content type 2

View- fields content type 2- filter with value of field of content type 1.

Thanks :)

Regarding delete fields programmatically

Hi,

In my module, I have two content types Text and Source. Every time I create a node of the content type Source, it creates a field in the content type Text:

e.g. If I create a node of the content type Source with title "Introduction", it creates a field in the content type Text as field_introduction.

I have used hook_entity_delete() to delete the Source nodes from the database:

function heritage_schema_entity_delete(EntityInterface $entity) {

Update Entity Reference View based on form field selection

I have a Content Type called Licence which has two fields, field_product and field_billing_cycle. Both are Entity Reference fields, using the select Widget. The product content type has a multi value entity reference that links to billing types. So each product has its own billing cycle with different prices and lengths etc.

CKEditor strips <i> tags

How can we prevent this? Sometimes I use font-awesome related tags (<i> or SPAN) and CKEditor strips they automatically.

I saw some JS code but it's for CKEditor in D7, not D8.

Sending mail from a shared server host

My non-profit site keeps getting out-bound mails bounced as spam due to others on our shared server. We have a gmail account, but A2hosting only allows outgoing mail using their server. I have MailChimp set up, but then the mailing list is no longer dynamic (addresses taken from user registration pages). 

Is there some other option (that does not cost a lot) that will let us use gmail with a dynamic mailing list, but somehow contacting an external server?

Thanks for ideas,

Jim

University of Dundee

University of Dundee website

The University of Dundee, Scotland, is one of the UK's leading universities, internationally recognised for its expertise across a range of disciplines including science, medicine, engineering and art. Manifesto partnered with the University of Dundee to build a complex, robust web platform to serve the needs of the institution’s many audiences.

Sectors: 
Education

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x