theming – How can I customize the 403 page for specific routes?

On a D9 site, with an existing custom 403 page twig. I’ve been requested to show a different, variable, message from the “standard one” for a couple of specific routes.

I’ve tried with theme_preprocess_page__403(&$variables) but I couldn’t determine the original route.

E.g. using Drupal::routeMatch()->getRouteName() I got system.403 instead of the route name I need to check. I’ve checked solutions to find the refer route but none of them seemed to work.

Actually the two routes that need this specific 403 are created programmatically with a *routing.yml and relative controller in a custom module.

I wonder if it is possible somehow to specify the redirect path if the route requirements fails. I didn’t find any documentation about, but that would another way to implements this requirement.

gui design – Is feature to customize themes and colors for Mobile/Web Apps important for UX?

We are building a CRM like application but targeting micro businesses, consultants and etc.

While designing UI for our Mobile/Web App, my manager suggested us to inlcude themes, color and fonts customization so our users will be able to customize the look and feel of the App.

From my Point of View, I feel this is rather pointless, I don’t think users would care about theme customizations. To further my point, Facebook, linkedIn, or Whatsapp doesn’t have it….

So my question, is the feature of customizing themes and colors important for a good UX experience?

theming – How customize 403 page for some routes?

On a D9 site, with an existing custom 403 page twig. I’ve been requested to show a different, variable, message from the “standard one” for a couple of specific routes.

I’ve tried with theme_preprocess_page__403(&$variables) but I couldn’t determine the original route.

E.g. using Drupal::routeMatch()->getRouteName() I got system.403 instead of the route name I need to check. I’ve checked solutions to find the refer route but none of them seemed to work.

Actually the two routes that need this specific 403 are created programmatically with a *routing.yml and relative controller in a custom module.

I wonder if it is possible somehow to specify the redirect path if the route requirements fails. I didn’t find any documentation about, but that would another way to implements this requirement.

php – Customize the WP Fusion Gravity Forms integration to use the post author email as the Ontraport contact to update

I am using WP Fusion to sync information from WordPress to Ontraport. We are using Gravity Forms in a unique way and need to manipulate the WP Fusion Gravity Forms integration to use the Post Author Email addresses instead of the logged in users’ email.

I have identified the file that is handling this and can manually update the line in question with a hard coded email address and have it function like I would like however when I try to use get_the_author_meta( 'email', $post->post_author ); it is not working.

Current line in class-gravity-forms.php – $email_address = '';
I tried to change this line to – $email_address = get_the_author_meta( 'email', $post->post_author ); which does not work however if I change it to $email_address = 'test@example.com'; it works.

The only other references to $email_address in class-gravity-forms.php is:

if ( false == $email_address && 'email' == $data('type') && is_email( $value ) ) {
                        $email_address = $value;

and

$args = array(
            'email_address'    => $email_address,

I’m sure I am missing something and any help is appreciated.

sharepoint online – Customize Gallery View formatting of a Document Library

I’m looking for any assistance on how to change the formatting of the gallery view of a document library (not the tile view of a list, which is what all the search results end up being for). The default gallery view, regardless of what fields are displayed in the view when in list format, is a thumbnail of the document and the filename.

Ideally, I would like:

  1. Bigger thumbnail, like in the highlighted content web part (which can’t be customized as far as I can tell, so isn’t a solution)
  2. Display columns/data that I want, such as document title instead of the filename
  3. Display download button/link (already set up as a field on the library, so I have the JSON set for this and it works in list view)

The Microsoft documentation isn’t robust enough for a novice like me, and doesn’t really touch on gallery view.

Customize Title column with JSON

Currently my Title column has a link in it, but I need to make it bigger and change the font while keeping the href function.

When I use "elmType": "a", the text disappears.

Anyone got a hint?
Thank you.

magento2 – Magento 2 – How to customize email items?

If you buy a configurable product, then all options are showing in the invoice for example at www.example.com/sales/order/print/order_id/14807/

My team wants me to remove all the configurable options and only show the product name.

enter image description here

I figured out, that the layout is here:

vendormagentomodule-salesviewfrontendlayoutsales_order_print.xml

this is the template:

vendormagentomodule-salesviewfrontendtemplatesorderitems.phtml

it contains this line, which is reponsible for the items being rendered:

<?= $block->getItemHtml($item) ?>

So I analysed the method in the block

vendormagentomodule-salesBlockItemsAbstractItems.php

public function getItemHtml(MagentoFrameworkDataObject $item)
{
    $type = $this->_getItemType($item);

    $block = $this->getItemRenderer($type)->setItem($item);
    $this->_prepareItem($block);
    return $block->toHtml();
}

but I have no clue how I have to modify it

content type – Add and Customize Pages permissions required for Full Control user to add Basic page to document library

I’m an admin on a modern Hub Team Site in SharePoint Online, with Full Control Permissions. I created a Document Library and enabled content types and added the Basic Page type so I can add pages to this library.

Whenever I try to create an entry in this library from the Basic Page option, I am able to create the page by naming the file, but the following step that should open the page in design mode shows this error:

Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. You don’t have Add and Customize Pages permissions required to perform this action.

I’ve seen various posts from the classic experience talking about the need to create a new permission at the site level with the required permissions, but doing that and adding my user which already has Full Control doesn’t fix it.

How can this be the out-of-the-box experience for page content types in a document library for a user who already has full control?? Is this a long-standing bug?

How to adapt a customize function from excel visual basic to google sheets the function is to sum inside multiple () within single cell

i already have a function in excel visual basic that helps me to sum up all the numbers inside the () parenthesis within on cell. this is

Function SUMAPA(n1 As String)
Longitud = Len(n1)
For i = 1 To Longitud
If Mid(n1, i, 1) = "(" Then
If Mid(n1, i + 2, 1) = ")" Then
Valor = Val(Mid(n1, i + 1, 1))
SUMAPA = SUMAPA + Val(Mid(n1, i + 1, 1))
ElseIf Mid(n1, i + 3, 1) = ")" Then
Valor = Val(Mid(n1, i + 1, 2))
SUMAPA = SUMAPA + Val(Mid(n1, i + 1, 2))
ElseIf Mid(n1, i + 4, 1) = ")" Then
Valor = Val(Mid(n1, i + 1, 3))
SUMAPA = SUMAPA + Val(Mid(n1, i + 1, 3))
ElseIf Mid(n1, i + 5, 1) = ")" Then
Valor = Val(Mid(n1, i + 1, 4))
SUMAPA = SUMAPA + Val(Mid(n1, i + 1, 4))
ElseIf Mid(n1, i + 6, 1) = ")" Then
Valor = Val(Mid(n1, i + 1, 5))
SUMAPA = SUMAPA + Val(Mid(n1, i + 1, 5))
ElseIf Mid(n1, i + 7, 1) = ")" Then
Valor = Val(Mid(n1, i + 1, 6))
SUMAPA = SUMAPA + Val(Mid(n1, i + 1, 6))
End If
End If
Next i
Debug.Print Valor
Debug.Print SUMAPA

End Function

It works perfectly in excel look the image attached Excel function

I want to use this function in google sheets but i dont know what to change in order it works! please help sos

functions – Is there any way I can customize Woocommerce product post thumbnail layout?

Is there a way I can customize Woocommerce product thumbnails? Perhaps add a div around product thumbnail image and another div around price. Then add product description after product title. Thank you!

I have Googled this but I couldn’t really find a suitable solution for myself.

I have found this but this just adds description after the price.

function tutsplus_excerpt_in_product_archives() {
      
      
      echo '<div class="description">';
    echo get_the_excerpt();
    
     echo '</div>';
          
}
add_action( 'woocommerce_after_shop_loop_item_title', 'tutsplus_excerpt_in_product_archives');

Image just for better explanation for what I am talking about.

enter image description here