WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

Combining two forms in Drupal

Submitted by barnettech on Thu, 10/08/2020 - 14:45
 // Build and render the group_content/user profile form for this user.
  $group_content = \Drupal::entityTypeManager()
    ->getStorage('group_content')
    ->loadUserGroupContentByUser($user);
  $inline_form = \Drupal::service('plugin.manager.commerce_inline_form')
    ->createInstance('content_entity', [], $group_content);

  $form['group_content'] = $inline_form->buildInlineForm(
    [
      '#parents' => array_merge($form['#parents'], ['group_content']),
      '#inline_form' => $inline_form,
      '#weight' => 10,
    ],
    $form_state
  );

Migrate module cheat sheet

Submitted by barnettech on Mon, 09/21/2020 - 20:03

drush ms to see the migrations
# this will run the migration
drush mim migration_name
# to stop the migration
drush mst migration_name
# to reset the migration when it won't stop and it just constantly says "running"
drush mrs migration_name
# to roll back your migration
drush mr migration_name

#this will reload just your migration your editing
drush config-import --partial --source=modules/custom/ipcsync/config/install

Create a new salesforce article / Finding Your Community Builder instances

Submitted by barnettech on Fri, 07/17/2020 - 10:14

* click on setup for the Communities page --> then click on the square of colorful dots in the upper left (app launcher) --> then search for "knowledge"
* from there you can create new articles

* to find your community go to setup--> then "Quick find" search box on the left under app launcher (the square of dots), and search for "communities", then choose all communities.

* to assign topics go to "content management" and then "article management" and then choose articles to assign to topics. Create the topics under "topic management"

Drupal queues

Submitted by barnettech on Fri, 05/29/2020 - 15:08
drush queue-list

to see a list of queues and how many are lined up in each
there's also

 drush queue-run 

drush sqlq "DELETE FROM queue WHERE name='message_subscribe'" is the only way to clear a queue

SEO services for Jen Rothbart and her healthful Isagenix Product

We are happy to be providing SEO services for Jen Rothbart and Isagenix. They are a great healthy product, shakes, sodas, weight loss items, and a great service.

WebTechKitchen is proud to be maximizing their exposure to broadcast their great services out on the world wide web. Here is a shout out to promote their great products, visit her website at https://www.jenrothbart.com/