APSDNSF manufacturers.aspx page by default inherits the template.master file settings (especially the header parts).

Is there a way to override the <meta> settings for that specific page only? If so, how..?

 

Thanks in advance..
in MultiStore by (160 points)

1 Answer

+1 vote

Since that page is loaded via an XmlPackage, you can override the SE tags via the meta templates within the XmlPackage.

 

    <SearchEngineSettings>
        <SETitle actionType="transform">
            <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:aspdnsf="urn:aspdnsf" xmlns:compunix="urn:compunix" exclude-result-prefixes="aspdnsf compunix">
                <xsl:output method="html" omit-xml-declaration="yes" />
                <xsl:template match="/">
                     more code etc here
                </xsl:template>
            </xsl:stylesheet>
        </SETitle>
    </SearchEngineSettings> 

 

Thank you,
Jan
 
Compunix, LLC (Phoenix, AZ)
AspDotNetStorefront Development Partner and Reseller since 2005
------------------------------------------------------------------------------------------------------
 AspDotNetStorefront add-ons and plugins : http://www.ecommercecartmods.com
 Complete Automotive Solution : http://www.autopartsshoppingcart.com
------------------------------------------------------------------------------------------------------
by (6.9k points)

Ok cool... found the codes but im not sure what should i replace it with..

I should add the codes here right?

<xsl:template match="/">

                    more code etc here
</xsl:template>
 
So should I add something like:
<xsl:param name="MetaDescription">?? 

 

Correct, you want to add code there to overwrite/set the Meta Description...it should be conditional as needed and fall back to the cart's defaults etc

Thank you,
Jan
 
Compunix, LLC (Phoenix, AZ)
AspDotNetStorefront Development Partner and Reseller since 2005
------------------------------------------------------------------------------------------------------
 AspDotNetStorefront add-ons and plugins : http://www.ecommercecartmods.com
 Complete Automotive Solution : http://www.autopartsshoppingcart.com
------------------------------------------------------------------------------------------------------
...