raymondo wrote:
I have two questions though, both about the page title, ie the text that you enter in the Title: box of the Main tab of the Edit Content screen.
First of all this text does not seem to be printed when I use the {print} tag. This means that you get a page printed without the main heading at the top. Is it possible to make this title print?
Second there are some pages that I do not want the page title to be displayed on screen anyway. Is there a way of achieving this?
The "title" is inserted wherever the {title} tag appears in the template or content. I believe the default initial install puts the {title} in the template (right before the {content} tag), not in each individual page's content.
The {print} tag prints ONLY the content (i.e. what you edit when you edit a page, the contents of the {content} tag), and since the {title} tag isn't there (it's in the template).. it's not getting printed.
If you want {print} to include the {title}, you'll have to remove {title} (and surrounding tags, like {title}) from the template and insert it at the top of every page's content instead.
For the pages you don't want the title to appear, leave it out of those pages' content.
Alternatively, you can choose NOT to use the {print} tag and use a print media stylesheet instead (you would then use the browser's print command to print a page instead of a button or link in the page itself).
Assign a class to {title}:
{title}
where you want it printed, but not shown on the screen. then...
main (all media types or none specified) stylesheet would have:
.printonly {display:none;}
print media stylesheet would have:
.printonly {display:block;}
if you'd rather not have {title} in the page's content, you can leave it in the template... duplicate the template and remove {title} from the copy (or assign it the 'printonly' class) -- assigning the template copy you just made and edited to those pages that you do not want {title} to appear in at all.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info