Show a dynamic text depending on the day I'd like my Drupal website to show at the right top something like:


  ____ day (eg. Medicine day)


and fill __________ dynamically depending on the current day.

I will create a new content type DayType or something like that, with two fields:


Title
Date


My question is:

How can I show in __________ the title depending on the current day?

I could do that with a View, but what I don't know is how to show it on the right-top, and not apparently in a block or just in a new page.
You can use views_embed_view() to get the output of a view manually. Supposing your view is called 'days' and you want to display the output of this view:

print t('Today is @dayname day.', array('@dayname', views_embed_view('days')));


(This assumes the output of your view is just some text, and contains no HTML.)

By 'on the right-top', do you mean the page title? In any case, you could set a variable in your theme's preprocess function (which goes in the theme's template.php), like this:

function mytheme_preprocess_page(&amp;$vars) {
  $vars['daystring'] = t('Today is @dayname day.', array('@dayname', views_embed_view('days')));
}


Now, in your page.tpl.php, you can write something like this:

print $daystring;