Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Add comments to custom templates


Reply


4 Posts   3016 Views

Avatar
lusiton

13 Posts

8 November 2007 at 4:20am

Edited: 08/11/2007 4:21am

Hi.
I'm creating a website from scratch www.myfriendsru.com/mysite/site/home and building a custom template for it. I can't figure out the way to add comments to some of the pages. I enabled comments on the back end but I guess I need correct divs and classes. Is there a way to find out more about how to do it. Thank you in advance.

Avatar
Andy

230 Posts

8 November 2007 at 9:59am

You need to add $PageComments to your template.

Avatar
lusiton

13 Posts

8 November 2007 at 10:11am

Thank you for replaying to my post earlier. I tried to put it in with the back end option by editing HTML and also I tried to put it in the content section on my template. No luck unfortunately.
Is ther any other code that I have to insert along with $PageComments ?

Thank you

Avatar
Andy

230 Posts

8 November 2007 at 1:56pm

No, it just needs to go in your template, and you need to have the allow comments box ticked in the CMS. Make sure you flush your templates (?flush=1).