Forums / Setup & design / Article/weblog comments in separate windows

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.

eZ debug

Timing: Jan 19 2025 11:48:25
Script start
Timing: Jan 19 2025 11:48:25
Module start 'content'
Timing: Jan 19 2025 11:48:25
Module end 'content'
Timing: Jan 19 2025 11:48:26
Script end

Main resources:

Total runtime0.3076 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.0859180.8125
Module start 'content' 0.00700.0066 769.898493.9297
Module end 'content' 0.01360.2939 863.8281522.8750
Script end 0.3075  1,386.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00401.3064200.0002
Check MTime0.00150.4939200.0001
Mysql Total
Database connection0.00100.341310.0010
Mysqli_queries0.242278.72881410.0017
Looping result0.00200.65211390.0000
Template Total0.293495.410.2934
Template load0.00070.220710.0007
Template processing0.292795.143610.2927
Override
Cache load0.00050.150510.0005
Sytem overhead
Fetch class attribute can translate value0.00150.502910.0015
XML
Image XML parsing0.00040.130710.0004
General
dbfile0.00591.9061200.0003
String conversion0.00000.002030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

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

Time used to render debug report: 0.0002 secs