Child Pays for Parent transactions get stuck on testnet

I’m building a service prototype by reusing Electrum code and generated 4 consequent transactions which are CPFP type on the testnet. They are staying unconfirmed for several hours but test transaction with 10 sat/vbyte got confirmed in the nex block.

What could be a possible reason for that? Could it be testnet-specific so I should not expect the same behavior on mainnet?

enter image description here

Creating a child page with the parent set as the front page results in strange permalink

I’m not sure if this is a bug by the theme author but when I try to create a sub page (child page) with the front page as the parent, the resulting permalink includes the name of the template. This only happens when the parent of the page is set as the front page.

So for example, I have “Work” set as the front page. When I try to create a child page with “Work” as the parent, the permalink turns into this: https://example.com/template-name/pagename

But even when I don’t specify a template, the template name still gets inserted into the permalink.

I would like it if the permalink became this: https://example.com/work/pagename

I tried reaching out to the theme author but he is unresponsive. Any idea what I can do to fix this?

Programmatically add field collection item (child) into a existing field collection item (parent)

I have a nested field collection item, field_collection_parent which contains one field_text and a field collection field_collection_child contains two text fields(field_a and field_b).

Now I’m trying to add more field_collection_child into an existing field_collection_parent (using its entity_id) but the new field_collection_child is not getting created.

Below are my codes:

$  entityId = 331  $  field_collection_1 = entity_load('field_collection_item', array($  remId));  $  field_collection_2 = entity_create('field_collection_item', array('field_name' => 'field_collection_child')); $  field_collection_2->setHostEntity('field_collection_parent', $  field_collection_1); $  field_collection_2->field_a['und'][0]['value'] = 'http://www.google.com'; $  field_collection_2->field_b['und'][0]['value'] = 'http://www.google.com'; $  field_collection_2->save(); 

Even I’ve tried https://www.drupal.org/node/2382811, but no luck.

What is the appropriate architecture to access variable in parent from element of child list?

I have a Parent object which looks like this (pseudocode):

class Parent {   String token;   Child[] children; } 

It contains a token string and an array of Child objects. My problem is that each of these Child objects needs to access the token string from the Parent class.

My first hunch is to loop through the children and specifically set a reference to the Parent object. Is there a more recommended way to take care of this, or is this kind of coupling unavoidable? I’m working in C# specifically but would be interested in any language-agnostic solutions as well.

How do I configure the migrate API to assign all parent and child taxonomy terms to an entity during import?

I’m importing media files which have a taxonomy in the media content type definition.

Here is the section of my Yaml file that deals with the taxonomy.

field_nih_asset_taxonomy_auto:     -       plugin: skip_on_empty       method: process       source: nihtaxonomy     -       plugin: hierarchical_taxonomy       bundle: nih_asset_taxonomy_auto       ignore_case: true       source:         - t1         - t2         - t3         - t4         - t5         - t6           -       plugin: explode       delimiter: / 

The second plugin ‘hierarchictal_taxonomy’ comes from the Migrate Hierarchictal Taxonomy module.

My source file is a json file and here are the mappings for the two plugin sources from above.

"nihtaxonomy": "ntp-db/ntp_reports/ntp_pathology_tbls/99020_tables", "t1": "ntp-db", "t2": "ntp_reports", "t3": "ntp_pathology_tbls", "t4": "99020_tables", "t5": "", "t6": "" 

What I’m expecting to happen is the import reads from the ‘nihtaxonomy’ source, explodes that, and assigns all of those terms as taxonomies.

Then, I’m expecting the hierarchical taxonomy plugin to create the parent child relationships. (there are no more than 6 terms, but it varies per record, if that matters).

This is working correctly. The problem is that the only term that’s being assigned to the entity is the last child, so 99020_tables in this example. But I need all of the terms attached.

How do I need to configure my Yaml file so all the terms get attached to the node?

Crud module for parent and children table

i’m doing crud module for children and parent table. Can anyone suggest how to get the data from parent table. Many thanks here are may table

<?php 

namespace ThuyNT\Crud\Setup; use Magento\Framework\DB\Ddl\Table; use Magento\Framework\DB\Adapter\AdapterInterface; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface;

class InstallSchema implements InstallSchemaInterface {

public function install(SchemaSetupInterface $  setup, ModuleContextInterface $  context)  {     $  installer = $  setup;     $  installer->startSetup(); 

// $ table = $ installer->getConnection() ->newTable($ installer->getTable(‘crud_news_post’)); $ table->addColumn( ‘entity_id’, Table::TYPE_INTEGER, null, [ ‘identity’ => true, ‘unsigned’ => true, ‘nullable’ => false, ‘primary’ => true ], ‘Post ID’ ) ->addColumn( ‘authorpost_id’, Table::TYPE_INTEGER, null, [ ‘unsigned’ => true,

            ],             'Post Author ID'         )         ->addColumn(             'title',             Table::TYPE_TEXT,             255,             ['nullable' => false,],             'Post Title'         )         ->addColumn(             'url_key',             Table::TYPE_TEXT,             255,             [],             'Post Url Key'         )         ->addColumn(             'post_content',             Table::TYPE_TEXT,             '64k',             [],             'Post Content'         )         ->addColumn(             'type',             Table::TYPE_TEXT,             '64k',             [],             'Post Type'         )         ->addColumn(             'is_active',             Table::TYPE_INTEGER,             null,             [                 'nullable' => false,                 'default' => '1',             ],             'Is Author Active'         )         ->addColumn(             'updated_at',             Table::TYPE_TIMESTAMP,             null,             [],             'Update at'         )         ->addColumn(             'created_at',             Table::TYPE_TIMESTAMP,             null,             [],             'Creation Time'         )->addForeignKey(             $  installer->getFkName('crud_news_post', 'authorpost_id', 'crud_news_author', 'author_id'),             'authorpost_id',             $  installer->getTable('crud_news_author'),             'author_id',             Table::ACTION_CASCADE)         ->setComment('News posts');        $  table = $  installer->getConnection()         ->newTable($  installer->getTable('crud_news_author'));     $  table->addColumn(         'author_id',         Table::TYPE_INTEGER,         null,         [             'unsigned' => true,             "nullable"=>false,             'primary' =>true,          ],         'Author ID'     )         ->addColumn(             'author_name',             Table::TYPE_TEXT,             255,             ['nullable' => false],              'Author Name'         ) 

)

        ->setComment('Author To Link Table');     $  installer->getConnection()->createTable($  table);     $  installer->endSetup(); } 

}

Render sub-paragraph in parent template

I have a paragraph that has a field of type paragraph reference to sub-paragraphs.

Within my template, I need to access these sub-paragraphs and render the entity element. I have a loop that loops through a list of Drupal\paragraphs\Entity\Paragraph elements.

I need to render the paragraph markup. Is there a function?

I tried item|render and item.view(), but neither of them worked.

Workflow If/Then: When Child (Count Related) List lookup field equals zero in Parent List Workflow. Error

I’ve got two lists; List 1 = Parent & List 2 = Child. The relationship between the two is one (Parent) to many (Child). The Child list has a lookup field to the Parent ID and the Parent list has a lookup field (count related) based on the Parent ID stored in the Child list. The intent here is to identify how many Child records are associated with each Parent ID. From a list view perspective, everything functions as designed.

I’m working on a Workflow that identifies integrity concerns when certain fields are missing. I know I can make these required fields in the list settings, but some of these fields are required when other field values in the list = X vs Y. My workflow is checking for these occurrences in a series of nested If/ElseIf’s. My current roadblock is when I use the “If any value equals value”. If Parent.Checkbox = “Yes” and Parent.Child Lookup Count = 0, then I want to create a variable that I will later embed in an email response. For the fields not incorporating the Parent.Child Lookup Count field, the workflow and automated email both function. Whenever I try to apply the same approach with the Parent.Child Lookup Fields, the workflow fails.

What I’m after:

In the Workflow Condition – If any value equals value: I need it to state: If Parent.Checkbox = “Yes” and Parent.Child Lookup Count = 0 Then Set Workflow Variable to equal “Blah blah blah.”

1. I’ve tried hard coding a 0 (int) and “0” string.

  • If Parent.Checkbox = “Yes” and Parent.Child Lookup Count = 0/”0″

    2. I’ve tried creating a Workflow Variable called ZeroCount for both int & string and hard coding my 0/”0″ there.

  • If Parent.Checkbox = “Yes” and Parent.Child Lookup Count = ZeroCount

    3. I’ve tried creating a Workflow parameter (int & string) and then setting the Workflow Variable ZeroCount to equal that.

  • ZeroCount (variable) = ZeroCountP (parameter)

  • If Parent.Checkbox = “Yes” and Parent.Child Lookup Count = ZeroCount

    4. I’ve tried creating a field in my Parent list and making the default value 0.

  • If Parent.Checkbox = “Yes” and Parent.Child Lookup Count = Parent.ZeroField

So far, no dice. I’m pretty new to this world and know I’m shooting in the dark, but I’ve exhausted my Google search efforts and was hoping someone could point me in the right direction.