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!"
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.
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,
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.
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.
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!
Advice
Quick question!
Should I include a page title property within a document type or should I use the @pagename?
Cheers
Alec
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!"
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
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,
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.
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
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
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
Well before you know it you are an umbraco wizard ;-)
is working on a reply...