Welcome to the Question2Answer Q&A. There's also a
demo
if you just want to try it out.
Login
Login
Register
All Activity
Questions
Hot!
Unanswered
Tags
Users
Ask a Question
About
Wiki
Welcome to the Q&A for
Question2Answer
.
If you have questions about the platform,
click here to ask
and please use English.
If you just want to try Q2A, please use the
demo
, which also grants admin access.
Apr 29:
Q2A 1.5.2
Related questions
How to load a single question overview
How to add a link : Ask another question only on the question site where users are directed after entering a question ?
Theming question: How does one refer to the tall-table on login form in css ?
How to retrieve a single question from the database.
Want to build a todays question feature, how to access a single question by its number in advanced theme ?
Is there a way to put sidebar text on the 'Ask a Question' page only?
Can the "Ask a question" box be extracted to be place in other part of the site?
How to rename "Ask a Question" to something like "Need Help/Post your Query" and add some customized fields
is the "quick question preview" feature available only in 1.4 version?
How to display "Related questions" on the right of the page ?
All categories
Q2A Core
(3,252)
Plugins
(356)
Theming question: How to refer to the single question site only ?
+2
votes
If one wants to show something on selected pages only he can use:
if ($this->template==' ') {} or if ($this->template=='questions')
but how would one refer exclusively to the single question pages to show something only on question pages ?
Thanks and best regards
Edit: Anyone knows that ?
question
template
asked
Nov 13, 2010
in
Q2A Core
by
monk333
edited
Nov 15, 2010
by
monk333
Same for v1.5:
Actually
if ($this->template==' ')
does not longer work for accessing the homepage.
What would one use now if he wants to refer to the homepage only.
question, questions, unanswered, tags and so on are still fine.
Found it: To refer to the home page one has to use
if ($this->template=='qa')
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
+1
vote
Best answer
On the question page,
$this->template
will contain
'question'
(singular).
answered
Nov 16, 2010
by
gidgreen
There is an "ask related question" button, or you can also use the "Ask a Question" button at the top. Best not to post questions as comments to other questions, especially those 9 months old!
Yes, but you see the "comment" button is for commenting. The "ask related question" button is for asking related questions. I'm just trying to help, not spam you for points. Posting questions as comments won't get you answers - it might get you flagged for not following board protocol, though.
How to load a single question overview
Please
log in
or
register
to add a comment.