Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • radChad 2 posts 20 karma points
    Mar 27, 2009 @ 06:16
    radChad
    0

    Dynamic Title Tags for SEO

    Hi all,

    I really need some help creating dynamic title tags for a client's site. I've never worked with Umbraco, ASP.NET or XSLT before today and it's been fun but now I'm stuck.

    In a nutshell, I want to construct title tags based on the Menu ID

    i.e. browse.aspx?catID=[n]

    At present the default browserTitle or pageTitle for browse.aspx is applied across all browse.aspx?catID=[n] pages. Since search engines index these as unique pages I want each one to have a unique title tag.

    The content of each page is unique because there are database fields for stuff like %productName %brand %price etc. I want to construct titles like

    As best as I can tell, this is how the titles are being constructed right now (it's the same in www/xslt/pageTitle.xslt and www/xslt/browserTitle.xslt so I'm not entirely sure which one to edit):

    AS-IS


    TO-BE
    Let's say I have the following pages
    browse.aspx
    browse.aspx?catID=123
    browse.aspx?catID=321
    whatever.aspx
    whatever.aspx?blah=111

    I want to test if the current nodeName is 'browse' or 'whatever' which I guess I can do with an

  • radChad 2 posts 20 karma points
    Mar 30, 2009 @ 06:25
    radChad
    0

    I got some feedback on this problem from a friend of a friend:

    -------
    If the database value is to be extracted and displayed, I'd prefer to use a .NET user control as a Umbraco Macro than bothering with XSLTs. XSLT is good if all data is available as umbraco nodes. The moment you connect to a database, switch to .NET user controls instead. They would make life a lot easier.
    -------

    Sounds like I've got a lot more research to do. I'll update this thread if I make any breakthroughs. If anybody wants to have a crack at this problem then jump on in.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies