Forums / Setup & design / Article/weblog comments in separate windows
Antonio Cortese
Thursday 02 September 2004 10:53:21 am
Hello! I'm Antonio and I'm new with Exponential. I've been working with it for the past month, and I think it's awesome! I'm astounded by all you can do with it. So far, I've managed to do everything I needed on my own, but now I've come across an issue which I didn't see addressed anywhere and couldn't figure out, so I thought I'd ask here.
On certain articles or weblog posts, I do not wish to see comments right below the article/weblog post, but would rather have them on a separate page, which would be made accessible from the article/weblog post through a link and which ideally should display all the comments, and also a form the user could use to enter a comment. I was wondering, is that possible with Exponential?
I'm completely lost with this, so any help would be greatly appreciated. Thanks in advance!
Bård Farstad
Monday 06 September 2004 7:43:27 am
Antonio,
you can do this by using view modes in Exponential. Every object/node can be viewed in many different ways, the default is the full mode and will have the url /content/view/full/42 where 42 is your current node id. What you can do is to create a view mode /content/view/showcomments/42. Then you need to create an override template for your class and that viewmode. E.g. create the filedesign/standard/templates/node/view/showcomments.tpl and in this file you will list the comments, while in the default-full- you don't.
--bård
Documentation: http://ez.no/doc
Tuesday 07 September 2004 6:37:13 pm
Hey, thanks so much, Bård! Works like a charm.