How i disable SEOlink for printing a Productpage?

Started by ridors, August 09, 2012, 14:38:00 PM

Previous topic - Next topic

ridors

Hi there. I want to load my own component.php if someone uses the print button on a product detail page.

I have already modify the component.php ,renamed it to componentprint.php and put it in my template-root folder.

The link in my productdetail-page is build like this:

$printlink ='index.php?tmpl=componentprint&option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->virtuemart_product_id;

and the output code looks like this:

echo $this->linkIcon($printlink . '&print=1', 'COM_VIRTUEMART_PRINT', 'printButton', 'show_printicon' ,$link_target = '_blank');

With SEO enabled in VMConfig, the link in frontend is modified to:

Quotehttp://mydomain/myproduct.html/modal?print=1

and my template will not be loaded.

How can i disable SEO for just this link?


Joomla V 2.53 and VM 2.08e