Share » Forums » Setup & design » Article/weblog comments in separate...

Article/weblog comments in separate windows

Article/weblog comments in separate windows

Thursday 02 September 2004 10:53:21 am - 2 replies

Modified on Thursday 02 September 2004 10:54:15 am by Antonio Cortese

Author Message

Bård Farstad

Monday 06 September 2004 7:43:27 am

Antonio,

you can do this by using view modes in eZ publish. 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 file
design/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

Antonio Cortese

Tuesday 07 September 2004 6:37:13 pm

Hey, thanks so much, Bård! Works like a charm.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu