Show published/created dates in results page for smart search (com_finder)

Discussion regarding Joomla! 3.x Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Dec 06, 2007 11:22 am

Show published/created dates in results page for smart search (com_finder)

Postby abustone1 » Fri May 19, 2017 12:07 pm

Show published/created date in results page for smart search (com_finder)
I have already made an override for \templates\xxxx\html\com_finder\search (with orginaled files)

I now this must be done end of default_result.php
Start line 52

Code: Select all

   <h4 class="result-title <?php echo $mime; ?>">
      <a href="<?php echo JRoute::_($route); ?>"><?php echo $this->result->title; ?></a>
   <?php if ($show_description && $description !== '') : ?>
      <p class="result-text<?php echo $this->pageclass_sfx; ?>">
         <?php echo $description; ?>
   <?php endif; ?>
   <?php if ($this->params->get('show_url', 1)) : ?>
      <div class="small result-url<?php echo $this->pageclass_sfx; ?>">
         <?php echo $this->baseUrl, JRoute::_($this->result->route); ?>
   <?php endif; ?>

So please could you correct the code to add created dates on smart search results page! I will be grateful if you can help!

I did some tries like to dome some trick but I got just the text like created date without the date format. See screenshot to know my meaning.


I used some search and tried to get some codes from here but no luck! ... sults_page

I really appreciate any help you can provide. ???
You do not have the required permissions to view the files attached to this post.

Return to “Performance - Joomla! 3.x”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest