2011-06-24, 17:10:57
yojoe Wrote:I see It would be clever to add an exception to show news clean title only when visitors enter news page,.I think that's a matter of taste or style... Some would prefer to have the news parent title there (or even af the beginning). Anyway that's only an example... you can insert your usual if (return_page_slug()==... there.
But when seeing a news, get_page_clean_title() of the parent news page shouldn't be shown.
Note that this solution is not very efficient: the post xml file will be read twice (once for rendering the <title>, another later to display the post). The better one would involve some changes in NM core (reading the file before rendering anything, making the data global...)