editing – Hello how to make template editor app in android studio like festival photo editor app

editing – Hello how to make template editor app in android studio like festival photo editor app – Android Enthusiasts Stack Exchange

8 – Access a user entity reference in a commerce-product template file

I have a field_intervenantfield which contains a user entity reference.
In the commerce-product template file, I want to access the description field of each intervenant.

How can I achieve it?

I tried reading the following values, but none of them returns what I am looking for.

  • product.field_intervenants.entity.field_description
  • product.field_intervenants.0.entity.field_description
  • product_entity.field_intervenants.0.entity.field_description
  • product_entity.field_intervenants.field_description
  • product_entity.field_intervenants.field_description.value

Do I need to loop through it, or am I missing something else?

Custom Taxonomy template is not recognised

I have created a custom post type (products), and at the moment I have 2 custom taxonomies (lips and eyes).

I can get the archive to show up for ‘products’, and I can get to the URL for the archive for the categories under ‘lips’, but I cannot get the archive to show for the taxonomies.

I have been through every question I can find, and I have checked the answers against what I have done, but for the life of me I can’t figure out what is going wrong.

I have a taxonomy template, ‘taxonomy-lips.php’, but it just keeps defaulting back to my front-page.php template.

Here is my code for the post type:

function my_first_post_type() {

$args = array(
    'labels' => array(
        'name' => 'Products',
        'singular_name' => 'Product',
    'hierarchical' => true,
    'public' => true,
    'has_archive' => true,
    'menu_icon' => 'dashicons-list-view',
    'supports' => array('title', 'editor', 'thumbnail'),
    'rewrite' => array('slug' => 'shop-products'),
    'taxonomies' => array('lips', 'eyes'),
    register_post_type('products', $args);
    add_action('init', 'my_first_post_type');

And here is the code for my taxonomy:

    function my_first_taxonomy()
    $args = array(
    'labels' => array(
        'name' => 'Lips',
        'singular_name' => 'Lips',
    'public' => true, 
    'hierarchical' => true,
    'rewrite' => array('slug' => 'lips'),
    register_taxonomy('lips', array('products'), $args);

    add_action('init', 'my_first_taxonomy');

I have reset the permalinks many times, and nothing changes.

Sorry, I know this question has been asked many times, I just can’t figure out what I have done! I’m very new to all of this, so be gentle lol, I might not understand anything too complex!

magento2 – Magento 2 how to use phtml jquery events on knockouts js component template?

I’m struggling trying to approach the following objective:

Use jquery events on a knockout js component template.

On phtml file I have my knockout js component like this:

<div class="container">
  <div class="notification content-form">
    <?php //if($identificator == "port"):  ?>
      <div id="port-form" data-bind="scope:'port-form'">
      <!-- ko template: getTemplate() --><!-- /ko -->
      <?php if($hasSpouse): ?>
      <!-- ko template: template2 --><!-- /ko -->
      <!-- ko template: template3 --><!-- /ko -->
      <?php endif; ?>
      <!-- ko template: template4 --><!-- /ko -->
        <script type="text/x-magento-init">
            "#port-form": {
                "Magento_Ui/js/core/app": {
                  "components": {
                        "port-form": {
                            "component": "Vendor_Application/js/port-app-form",
                            "quote_data": <?= /* @escapeNotVerified */ $data ?>,
                            "quantities": <?= /* @escapeNotVerified */ $quantities ?>,
                            "states": <?= /* @escapeNotVerified */ $states ?>

As you can see I have 4 different templates, at the bottom of phtml I try the following:

require(('jquery', 'jquery/ui'), function($){
  $(document).ready( function() {

When I click the button #beneficiary-button it’s not doing anything, my guess is because I can’t reach knockoutjs templates, so I would need to require my jquery validations on knockoutjs component?


magento2 – How to call cms static block in template phtml file in Magento 2?

Are you wondering how to show CMS Static Block from template phtml file in Magento 2? Here you are, the effective intrucstion in this topic.

Use the below code snippet if you want to show CMS Static Block in any template in Magento 2:

echo $this->getLayout()

For another block within CMS Block in Magento 2, please use the below code to show it.

{{block class="MagentoCmsBlockBlock" block_id="your_block_identifier"}}

Hope this will helpful to show cms static block from template phtml file in Magento 2.

Custom post type template – add banner under heading

I’m trying to add tag in CUSTOM POST TYPE (news). Problem is that I dont know how. I’m not a developer of WP Theme.

I need to add it here: HERE

As you can see its a custom post type with posts, but I need to add the only to this subcategory (aktuality-z-legislativy) somewhere under heading. How can I do that ?

Get an example product collection in a template

I’m working on a recently viewed section and it would be useful to have an example product collection for me to test my template without having to manually view random products beforehand.

Does anyone know a quick and dirty (i.e. Object Manager) way to get this?

confluence – Web-item xwork module does not render template

I’m asking this question here as I haven’t gotten any replies from Atlassian’s developer community site.

I’m developing a plugin, and I want the web-item to open up a soy template when clicked. Below are my code:


<web-item name="comparator-plugin-action-web-ui" key="comparator-plugin-action-web-ui" section="system.content.action/primary" weight="10">
        <description key="item.comparator-plugin-action-web-ui.link.desc">Compare 2 versions of a page</description>
        <label key="Comparator Plugin"/>

    <xwork name="comparator-plugin-action-xwork" key="comparator-plugin-action-xwork">
        <description key="item.comparator-plugin-action-xwork.link.desc">Defines what the Comparator Plugin action does.</description>
        <package name="comparator-plugin" extends="default" namespace="/plugins/comparator-plugin">
            <default-interceptor-ref name="defaultStack"/>
            <action name="comparator-plugin" class="com.example.plugin.ComparatorPluginAction">
                <result name="success" type="soy">/Soy/mySoyTemplate.soy</result>

java action class

package com.example.plugin;

import com.atlassian.confluence.core.ConfluenceActionSupport;

public class ComparatorPluginAction extends ConfluenceActionSupport{

    public String execute() {
        return "success";

However, whenever I click on the web-item, this error shows:

java.lang.IllegalArgumentException: completeModuleKey is required at com.atlassian.confluence.xwork.SoyResult.execute(SoyResult.java:73)

Would really appreciate if some one could tell me what I did wrong. Thank you.

custom taxonomy – Add some html code in my wordpress theme template

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

magento2 – Magento 2.4 Header and footer not showing in email template

If you are use send email functionally using controller and other like :-

My Old code is not working header and footer

$transport = $this->transportBuilder
                            'area' => MagentoFrameworkAppArea::AREA_FRONTEND,
                            'store' => MagentoStoreModelStore::DEFAULT_STORE_ID,
                        'customerName'  => $customerFirstName ,
                        'customerEmail'  => $customerEmail,

After i have find some solution like :-


'store' => MagentoStoreModelStore::DEFAULT_STORE_ID


'store' => $this->storeManager->getStore()->getId()

And How to create object for storeManager follow below link :-


Hope this help other.


DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123