× All questions about EDocman extension

publish date in search result page

  • Alison
  • Alison's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
More
1 week 6 days ago #131910 by Alison
publish date in search result page was created by Alison
Hi

Is it possible to show the documents published date in the search results page?



Thanks
Alison
Attachments:

Please Log in or Create an account to join the conversation.

More
1 week 6 days ago #131913 by Mr. Dam
Replied by Mr. Dam on topic publish date in search result page
Hi,
You can add Published date of documents by opening file: root -> components -> com_edocman -> view -> common -> documents_default.php
Find:
<?php echo $item->title; ?>
after the A tag to show title of documents, you can add code
<?php echo JHTML::_('date',$item->created_time, 'j F Y');?>
to show created date of documents
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Alison
  • Alison's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
More
1 week 5 days ago - 1 week 5 days ago #131955 by Alison
Replied by Alison on topic publish date in search result page
Can you confirm that this code will only change the layout of the search results page?
Also in the future, can this be made an option in the search plugin rather than having to edit the code?
Last edit: 1 week 5 days ago by Alison.

Please Log in or Create an account to join the conversation.

More
1 week 20 hours ago #132104 by Mr. Dam
Replied by Mr. Dam on topic publish date in search result page
Hi Alison,
Actually, the documents listing pages are using the same layouts. So that, the change will be applied to Documents listing pages also, not just with Search layout
Thanks
Dam
The following user(s) said Thank You: Alison

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam