Copied to clipboard

Flag this post as spam?

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


  • Alec Colebrook-Clark 134 posts 258 karma points
    Jul 23, 2009 @ 15:51
    Alec Colebrook-Clark
    0

    Advice

    Quick question!

    Should I include a page title property within a document type or should I use the @pagename?

    Cheers

    Alec

  • dandrayne 1138 posts 2262 karma points
    Jul 23, 2009 @ 15:55
    dandrayne
    100

    For flexibility, using a page title is probably advisable.  This means you can have control both the page name (which forms the url) and a page heading, which could help from an seo perspective.  Also you might want a filename/url to be /help.aspx and the title to be something like "need help? we're here!"

  • Alec Colebrook-Clark 134 posts 258 karma points
    Jul 23, 2009 @ 16:13
    Alec Colebrook-Clark
    0

    Thanks for the reply, Was about to edit my code to only the @pagename!

    The reason i ask is some test... subjects(?) have been lazy and copying and pasting, which in itself isnt a problem, however one of them copied and pasted the url for an image the used so the title page read "SAHFOS - http://www.example.com/example.jpg" which i thought untidy and uselss to a user.

    cheers

    Alec

  • dandrayne 1138 posts 2262 karma points
    Jul 23, 2009 @ 16:25
    dandrayne
    0

    No problem! It's hard to defend against lazy users.  Sometimes less options is more but flexibilty outweighs simplicity for me (hence using umbraco).  Depends on the client I guess,

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jul 23, 2009 @ 17:55
    Morten Bock
    2

    I have used the setup with two fields, where I just create some logic so the "PageTitle" property is used as a sort of override. So if the PageTitle is empty, I use the @pagename. Supports both the lazy user and the user who want's a bit more control.

  • Alec Colebrook-Clark 134 posts 258 karma points
    Jul 24, 2009 @ 10:42
    Alec Colebrook-Clark
    0

    I have another question!

    If i was to implement the empty check, could i do that using inline xslt? secondly would it be better to do it using inline xslt or to use a macro?

     

    Alec

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jul 24, 2009 @ 10:54
    Jan Skovgaard
    1

    Hey Alec

    When you are inserting a page field In your template you just choose to insert an alternative field if your primary field is empty. Then you just set the alternative field to @pagename.

    If I have understood your question correctly there is no need for inline XSLT or XSLT macro to resolve this.

    /Jan

     

  • Alec Colebrook-Clark 134 posts 258 karma points
    Jul 24, 2009 @ 10:59
    Alec Colebrook-Clark
    0

    ofc! Sorry im slowly getting to grips with Umbraco, I can do most things and looking to advance but i keep forgetting about all the funky little features on the side, like said alternate fields!

     

    Alec

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jul 24, 2009 @ 12:08
    Jan Skovgaard
    0

    Well before you know it you are an umbraco wizard ;-)

  • 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