×

Notice

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

TOPIC: Joomla Comment and Docman

Joomla Comment and Docman 14 years 1 month ago #10746

  • Hitarth
  • Hitarth's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi all,

I recently migrated my website from Joomla 1.0.x to Joomla 1.5.x. In this process i also upgrade my Joomlacomment from 3.26 to 4.0.rc1.

I have also put the Docman Hack code in the respective files but for some reasons it shows comments from com_content in the docman area.. rather than from com_docman.

example on this page in the link below -
hitarthjani.com/index.php?option=com_doc...emid=42&limitstart=5

any ideas whats wrong...?

Joomla Comment and Docman 14 years 1 month ago #10747

  • Hitarth
  • Hitarth's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Just for info. i have added following code in Docman files -

document.tpl.php -
<!-- START joomlacomment INSERT -->
 
<div style="float:left;" align="left">
 
<?php
 
    global $option;
 
    require_once(JPATH_SITE."/administrator/components/com_comment/plugin/$option/josc_com_docman_doc.php");
 
?>
 
</div>
 
<div class="clr"></div>
 
<!-- END OF joomlacomment INSERT -->

and
list_item.tpl.php
<!-- START joomlacomment INSERT -->
 
<div class="dm_description" style="text-align:right;">
 
<?php
 
    global $option;
 
    require(JPATH_SITE."/administrator/components/com_comment/plugin/$option/josc_com_docman_item.php");
 
?>
 
</div>
 
<!-- END OF joomlacomment INSERT -->

Joomla Comment and Docman 14 years 1 month ago #10753

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I'm copying this from the compojoomComment 4.1 documentation:

Docman – com_docman
For the readmore button open the file components/com_docman/themes/yourtheme/templates/
documents/list_item.tpl.php

And place the following code at the end of it:
<!-- START compojoomComment INSERT -->
<div style="clear:both">
<?php

require(JPATH_SITE."/administrator/components/com_comment/plugin/com_docman/josc_com_docma
n_item.php");

?>
</div>
<!-- END OF CompojoomComment INSERT -->

To show the actual comment form in single view of the documents open the file
components/com_docman/themes/yourtheme/templates/documents/document.tpl.php and place the
following code at the end of it:
<!-- START compojoomComment INSERT -->
<div style="clear:both" >
<?php
require_once(JPATH_SITE."/administrator/components/com_comment/plugin/com_docman/josc_com_d
ocman_doc.php");
?>
</div>
<div class="clr"></div>
<!-- END OF compojoomComment INSERT -->

Now go to your Joomla backend components->CompojoomComment->settings click on new and from
the component dropdown list select com_docman and click save. Now you should be able to see
CompojoomComment under docman documents in frontend.


Are you sure that you did everything as described above?
Also change this $option to com_docman.

Joomla Comment and Docman 14 years 1 month ago #10758

  • Hitarth
  • Hitarth's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
that works perfect

Thanks Daniel :)
  • Page:
  • 1
Time to create page: 0.104 seconds