Article/weblog comments in separate windows

Author Message

Antonio Cortese

Thursday 02 September 2004 10:53:21 am

Hello! I'm Antonio and I'm new with eZpublish. 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 eZpublish?

I'm completely lost with this, so any help would be greatly appreciated. Thanks in advance!

Antonio Cortese

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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 06:11:46
Script start
Timing: Jan 31 2025 06:11:46
Module start 'layout'
Timing: Jan 31 2025 06:11:46
Module start 'content'
Timing: Jan 31 2025 06:11:46
Module end 'content'
Timing: Jan 31 2025 06:11:46
Script end

Main resources:

Total runtime0.0138 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.3984151.2266
Module start 'layout' 0.00570.0021 740.625036.6797
Module start 'content' 0.00790.0045 777.304790.1875
Module end 'content' 0.01230.0015 867.492233.9922
Script end 0.0138  901.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002518.4157140.0002
Check MTime0.00117.9318140.0001
Mysql Total
Database connection0.00075.030010.0007
Mysqli_queries0.002517.991830.0008
Looping result0.00000.081010.0000
Template Total0.00117.910.0011
Template load0.00085.905410.0008
Template processing0.00031.952410.0003
Override
Cache load0.00064.068410.0006
General
dbfile0.00107.540780.0001
String conversion0.00000.043140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs