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.
abustone1
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
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

<li>
   <h4 class="result-title <?php echo $mime; ?>">
      <a href="<?php echo JRoute::_($route); ?>"><?php echo $this->result->title; ?></a>
   </h4>
   <?php if ($show_description && $description !== '') : ?>
      <p class="result-text<?php echo $this->pageclass_sfx; ?>">
         <?php echo $description; ?>
      </p>
   <?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); ?>
      </div>
   <?php endif; ?>
</li>


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.

com_finder.png


I used some search and tried to get some codes from here but no luck!
https://docs.joomla.org/Latest_News_module_with_date
https://docs.joomla.org/Customising_the ... 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.

abustone1
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Dec 06, 2007 11:22 am

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

Postby abustone1 » Fri May 26, 2017 4:59 pm

Any one know solution for this! Thanks


Return to “Performance - Joomla! 3.x”

Who is online

Users browsing this forum: No registered users and 7 guests