Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid
# create Output.php.search-by-attribute.diff
--- ./app/code/core/Mage/Catalog/Helper/Output.php	2010-10-06 17:13:09.000000000 +0200
+++ ./app/code/local/Mage/Catalog/Helper/Output.php	2010-10-06 17:12:45.000000000 +0200
@@ -111,6 +111,11 @@
             'product'   => $product,
             'attribute' => $attributeName
         ));
+
+        if ($attributeName != "item" && $attributeName != "description" && $attributeName != "name") {
+            $attributeHtml = "<a>" . $attributeHtml . "</a>";
+        }
+
         return $attributeHtml;
     }

# add patch
mkdir -p ./app/code/local/Mage/Catalog/Helper
cp -n ./app/code/core/Mage/Catalog/Helper/Output.php ./app/code/local/Mage/Catalog/Helper/Output.php
patch -p2 ./app/code/local/Mage/Catalog/Helper/Output.php < Output.php.search-by-attribute.diff

# 2th solution, extend productAttribute method in ./app/code/local/Mage/Catalog/Helper/Output.php (splited attributes)
public function productAttributeWithSearch($product, $attributeHtml, $attributeName) {
   $attributeHtml = $this->productAttribute($product, $attributeHtml, $attributeName);

   $result = "";
   if ($attributeName != "item") {
      $attribute = split(",", $attributeHtml);
      foreach ($attribute as $a) {
         $result .= "<a>" . $a . "</a> ";
      }
   } else {
      $result = $attributeHtml;
   }
   return $result;
} 

# 3th solutions, rewrite attributes.phtml (attributes.phtml.diff)
--- app/design/frontend/base/default/template/catalog/product/view/attributes.phtml	2010-10-05 17:55:18.000000000 +0200
+++ app/design/frontend/default/default/template/catalog/product/view/attributes.phtml	2010-10-05 17:58:45.000000000 +0200
@@ -44,7 +44,11 @@
         <?php foreach ($_additional as $_data): ?>

                 <?php echo $this->htmlEscape($this->__($_data['label'])) ?>
-                <?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?>
+                
+                    <a>">
+                        <?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?>
+                    </a>
+                

         <?php endforeach; ?>
Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung