Welcome to Vortx Community Forum, where you can ask questions and receive answers from the staff at Vortx and other members of the community.

If you had a user account on our previous forums website, you will need to register a new account here.

Learn more about...

AspDotNetStorefront
DotFeed

How to Change Meta Description in Manufacturers.aspx ?

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..
asked Aug 12, 2014 in MultiStore by clickacig (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
------------------------------------------------------------------------------------------------------
answered Aug 13, 2014 by jsimacek (6,865 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
------------------------------------------------------------------------------------------------------
...