uicomponent – Custom Category Attribute not rendered in backend Categories Page

i try to add a new category attribute in Magento 2.3.6 and render an input in the category backend.
Setup worked, attribute is created. But the category_form.xml seems to be ignored. Maybe someone can show me whats wrong here.

I used this explanation first:
https://devdocs.magento.com/guides/v2.3/ui_comp_guide/howto/add_category_attribute.html

But i dont get the Attribute shown in backend. Module is enabled, setup creates the entries in eav_attribute and catalog_eav_attribute. I dont have errors in the logs.

Vendor/Module/Setup/InstallData.php

<?php
namespace VendorModuleSetup;

use MagentoFrameworkSetup{
    ModuleContextInterface,
    ModuleDataSetupInterface,
    InstallDataInterface
};

use MagentoEavSetupEavSetup;
use MagentoEavSetupEavSetupFactory;

class InstallData implements InstallDataInterface
{
    private $eavSetupFactory;
    
    public function __construct(EavSetupFactory $eavSetupFactory) {
        $this->eavSetupFactory = $eavSetupFactory;
    }
    
    public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
    {
        $eavSetup = $this->eavSetupFactory->create(('setup' => $setup));
        $eavSetup->removeAttribute(MagentoCatalogModelCategory::ENTITY, 'product_group');
        $eavSetup->addAttribute(MagentoCatalogModelCategory::ENTITY, 'product_group', (
            'type'     => 'varchar',
            'label'    => 'Product Group',
            'default'  => null,
            'input'    => 'text',
            'visible'  => true,
            'required' => false,
            'global'   => MagentoEavModelEntityAttributeScopedAttributeInterface::SCOPE_STORE,
            'group'    => 'general',
            'source' => '',
            'backend'  => '',
            'user_defined' => false,
            'sort_order'   => 100,
        ));
    }
}

UI Component
Vendor/Module/view/adminhtml/ui_component/category_form.xml

<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <fieldset name="general">
        <field name="product_group">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="required" xsi:type="boolean">false</item>
                    <item name="validation" xsi:type="array">
                        <item name="required-entry" xsi:type="boolean">false</item>
                    </item>
                    <item name="sortOrder" xsi:type="number">100</item>
                    <item name="dataType" xsi:type="string">string</item>
                    <item name="formElement" xsi:type="string">input</item>
                    <item name="label" translate="true" xsi:type="string">Product Group</item>
                </item>
            </argument>
        </field>
    </fieldset>
</form>

Would be great if someone can help me 🙂

Regards,
Andreas

rooting – Remove or hide a ui element from android rendered xml layout

Context
I have automated a production app (dont have control over it’s source code) using appium but in an attempt to speed up this automation I would like to remove a dynamic animated element (with class android.view.Viewgroup) from UI which is slowing down the UI query response time. Preferably, a shell command using adb by specifying a UISelector query would be amazing!

Full disclosure: I dont fully understand the android UI model as well as I do say browser’s DOM. And the ability to hide/remove an element on DOM in browsers is easy. However, android doesnt seem to support any straight forward API to remove a rendered UI element. I suspect this is because UI model is more closely linked to OS internals in android and any attempt to alter expected rendering behavior would trigger fatal errors.

In simple terms, I would like to replicate the browser’s document.getElementById("ded").remove() behaviour for android’s native view model.

Potential Solution
While not officially supported, I’m confident this can be achieved with View#setVisibility api using a rooted device and some form of code injection during runtime using frameworks like Xposed. I’m happy to check in at xda forum if discussing about it is not supported here.

I would greatly appreciate any insight into libraries/modules/apps that may already provide this functionality.
Thank you in advance!

seo – Googlebot doesn’t see links in Angular SPA because routerLink is rendered with a href starting with a hash

In My Angular SPA I have links like:

<a routerLink="/en/my-page" ...

When I check it in google search console I see that googlebot see the link as:

<a href="#/en/my-page" ...

It seems that googlebot can’t follow such link and therefore can’t see my-page.

javascript – erro react native: text strings must be rendered within a componet

eu estava fazendo um projeto de campo minado em react native quando fui adicionar o campo na view ele da este problema no emulador e não o campo.
render() {
return (

            <Text style={styles.welcome}>Iniciando o Mines</Text>
            <Text style={styles.instructions}>{params.getRowsAmount()}x{params.getColumnsAmount()} 
            </Text>
            <View style={styles.board}>
      <MineField board={this.state.board}  />
    </View>
        </View>
    )
    }(!(inserir a descrição da imagem aqui)(1))(1)

inserir a descrição da imagem aqui

unity – Terrain shadows not rendered to additional camera with Unity3D URP

I’m running into problems with a project using several cameras rendering to different monitors.
The first Camera (a VR camera) renders the foliage and the terrain correctly.
However, in the second camera view, I see the objects are receiving light, but are not casting shadows on the terrain.

  • Culling mask of both Cameras is set to “Everything”
  • Trees and other objects have shadow casting enabled (and render correctly to the main Camera)
  • I tried changing the shadow distance, without any result
  • I tried different terrain light modes, which didn’t help
  • I tried using the same renderer for both cameras, and a different renderer for each camera, without success
  • I tried putting all the cameras and lights on the same object layer, without any success

Any hint about how to solve this issue?

views – Drupal rendered Section 1 overlay section 2

I have the following html code and css style:

html code:

<section class="intro" id="section1" data-speed="5" data-type="background" style="background-position: 50% 0px;">
    <div class="overlay">
    <div class="headline">
      {{ page.headline }}
    </div>
  </div>
    <a href="#" id="goto-section2" class="arrow-down">Get started</a>
</section>
<main role="main" class="main">
  <div class="layout-content">
    <section id="section2" class="section">
      <div class="container">
          {{ page.before_content }}
      </div>
    </section>
  </div>
</main>

#section1 {
  display: block;
  height: 100%;
  width: 100%;
}

.intro {
  height: 100%;
  width: 100%;
  background: url(../img/background.jpg) no-repeat center top fixed;
  -webkit-background-size: 100% auto;
  -moz-background-size: 100% auto;
  -o-background-size: 100% auto;
  background-size: 100% auto;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  display: block;
  background-attachment: fixed;
}

css style:

.overlay {
  display: block;
  position: absolute;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.section {
  position: relative;
  padding: 40px 0 40px 0;
  display: block;
}

.headline {
  display: block;
  position: absolute;
  text-align: center;
  top: 48%;
  width: 100%;
  z-index: 111;
}

.headline div.flexslider {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  display: block;
  text-align: center;
  width: 100%;
}

.flexslider {
  margin: 0 0 60px;
  background: #FFFFFF;
  border: 4px solid #FFFFFF;
  position: relative;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  zoom: 1;
}

.arrow-down {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 11;
  height: 60px;
  width: 70px;
  margin-left: -35px;
  background: url(../img/bg-arrow-down.png) no-repeat 21px 26px rgba(0, 136, 204, 0.8);
  background-size: 28px 16px;
  text-indent: -9999px;
  display: block;
}

#section1 h2 {
  color: #FFFFFF;
  margin-bottom: 4px;
  font-size: 40px;
  line-height: 48px;
  text-transform: uppercase;
  font-weight: 700;
}

#section1 p {
  color: #FFFFFF;
}

Section 1 followed by section 2 rendered in pure html mock up, but in drupal (version 8.9.11) section 1 overlay section 2.

In Drupal section 1 contained in custom block and rendered by custom view. While section 2 is contained in custom block standard view.

Please help to get drupal rendering same as pure html.

javascript – Chrome bug: headless window not rendered (new tab in background) if outerWidth is referenced

(see update at bottom)

When I click on a to my website, it opens correctly in Google Chrome.

When I command-click the link, opening a new tab in the background, the page seems to load (correct favicon, loading bar etc.) but it’s just a blank page in the new tab.

It’s as though the browser is waiting for something before drawing the page, and the something never comes.

I am on macOS 11.1, using Google Chrome 87.0.4280.88.

I am trying to resolve this apparently trivial issue because several people have complained that Facebook links to our site open as a blank page.

(update)

The culprit seems to be a bug in Chrome caused by referencing window.Outerwidth in an unfocused window.

Minimal code to reproduce the problem:

<html><head><script>
   document.documentElement.style.fontSize = (window.outerWidth/50) + 'px';
</script></head><body><p>
   Hello World
</p></body></html>

Link to the page: files.svija.love/chrome.

  • command-clicking on the above link in Chrome results in a blank page
  • changing fontSize to other elements is still broken
  • replacing document.documentElement.style.fontSize with a variable resolves the problem (but doesn’t help me, because I need it)

Does anybody know about a Chrome bug affecting headless windows and outerWidth?

search – What is the difference between index all on a node and indexing that takes place after node save for a rendered html node on a solr index?

If a page containing panels is indexed as a rendered item, when indexing all the content of the panels is not included in the index. However if you save the node then the content of the panels is added to the index. What is the difference between the process of index all on a node vs indexing that occurs after node save?

Convert RTF to HTML when it’s saved to the database or when it’s rendered?

Users have the ability to enter and save text in a rich text editor which is eventually stored in a database and then rendered on a site.

Is it better to convert the RTF to HTML when it’s stored to the database because there will be more reads than writes and converting it once will be more efficient?

Or would it be better to store the RTF directly in the database so the original data is always retained and there’s more separation between data and display?

Convert to html on save to database:

Pros:

  • More efficient when more there are more reads than writes
  • Faster
    retrieval/rendering

Cons:

  • Takes up more storage space
  • Presentation and data mixed
  • Original output from editor lost

Convert to html on retrieval from database:

Pros:

  • Keeps original data in-tact
  • Separates presentation from data

Cons:

  • Inefficient/ must convert on every retrieval and render

Both seem options seem to come with costs/benefits so are there any established best practices or is it decision that needs to be made based on the specifics of each project?

American business, with all services rendered overseas?

I’ve been in the industry for over a decade, but not on the business facing side of things. Usually behind the scenes making sure things are… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1829989&goto=newpost