But I something bother me, there're pages that show the page title (like Contact Us), but there're also pages that don't show the page title (like the article main and its detail).
What should I put on the template(?) that can show that page title?
If you have a master layout where you put our basic markup for header body and footer you should place the title tag in the head.
And you could do something like this. In the case it first, see if there are some content in the field called title on the page that you are viewing in the browser, if it´s empty then it takes the page of the page,
Thank you very much for your reply. It seems that on the pages I mention before I don't have any pageTitle properties (field?) around. After I add it. Then there is page title on all the pages.
Once again thank you for the help and detail explanation.
How to display the page title?
Hello,
I follow this link: http://our.umbraco.org/documentation/Using-Umbraco/Creating-Basic-Site/
But I something bother me, there're pages that show the page title (like Contact Us), but there're also pages that don't show the page title (like the article main and its detail).
What should I put on the template(?) that can show that page title?
Thank you in advance for the help.
Hi Tanuwijaya,
If you have a master layout where you put our basic markup for header body and footer you should place the title tag in the head.
And you could do something like this. In the case it first, see if there are some content in the field called title on the page that you are viewing in the browser, if it´s empty then it takes the page of the page,
http://our.umbraco.org/documentation/Reference/Mvc/views#RenderingafieldwithUmbracoHelper
Or you could just do this if you don´t need a fallback field
Your markup would look something like this:
This example is from the TXT starter kit.
Hope this helps, if you have any other questions don't hesitate to ask again.
/Dennis
Hi Dennis,
Thank you very much for your reply. It seems that on the pages I mention before I don't have any pageTitle properties (field?) around. After I add it. Then there is page title on all the pages.
Once again thank you for the help and detail explanation.
is working on a reply...