question, question.s

Previous answer
Main page of Friday 101
Next answer
:question: The current question



How/When you'd use it
The example above could be used to set the title of each of your answer pages to the question it answers if added to the <head> </head> section of your answer template.

The page's title appears in the bar at the top of the browser when you view the page and is also used by some search engines to determine the page's content.

The templates supplied with Friday also use :question: placeholder to create the list of questions (and links to answers) on the main FAQ page and in several cases to repeat the question as the headline of each answer page.

:question.s: The current question, stripped of any user-defined placeholders

To use the current question, stripped of any user-defined placeholders, as the title of your answer pages, include this html in the answer template between the <head> and </head> tags:


How/When you'd use it
You don't need :question.s: unless you use user-defined placeholders in your questions. You can simply use :question: instead.

Why you'd need to use it
Normally, :question: returns the current question's text, but if your question has a user-defined placeholder in it, you may not want that to be included. For example if you have a user-defined placeholder that gets replaced by the HTML code to insert an image file, you don't want that code to appear in the Head portion of your html files.

At the same time, you might want to use the question as the title for the current answer page.

That's where you'd use :question.s: instead - it returns the question text stripped of any user-defined placeholders.

Filename: FAQ00107.htm
Last edited on 8/9/2004 5:52:30 PM

Naturally, all content & site maintenance by

Friday The Automatic FAQ Maker