×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: upgrade from 4.1.7 to 4.2 gives template problems

upgrade from 4.1.7 to 4.2 gives template problems 12 years 8 months ago #13854

  • Brecht Coene
  • Brecht Coene's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Thank you received: 0
We are having troubles with the latest version of compojoom. On www.spaargids.be/sparen/nieuwsoverzicht.html we have the latest version. There you can see that the comments link is added under the section/categories. But in our earlier version of compojoom(4.1.7 ) the comments link was added above the sections as you can see here www.guide-epargne.be/epargner/nouvelles-epargner/blog.html .

Is there a way to have the same behaviour of guide-epargne.be(compojoom 4.1.7) on spaargids.be(4.2)?

upgrade from 4.1.7 to 4.2 gives template problems 12 years 8 months ago #13856

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Kristof,

In compojoomComment 4.1 the comments were outputted onPrepareContent. This means:
the plugin gets the article $row and we attach the comments to the end of it. This is all good, but in a lot of cases we get conflicts with plugins that are also executed onPrepareContent - the best example is the e-mail cloaking plugin. It was transforming the emails in the comment form...

Since the onPrepareContent event is used to make changes to the article and since we don't do any changes to the article the best event for the comments is onAfterContent... And compojoomComment 4.2 does exactly this.

Now with your specific template the onAfterContent event is displayed way below after your article. What you need to do is a template override and move the <?php echo $this->onAfterContent; ?> tag to the place where you want the write comment to be.

Cheers,
Daniel
  • Page:
  • 1
Time to create page: 0.111 seconds