Loading...
Show Publish Date
P
PauloPosted 9 years agoEdited 3 years ago
Hi Yannis,
How are you?
I'd like to ask you if its possible for the Smart Search Extension to show the publish date.
Joomla default search component is able to show the Creation date, but I need the publish date instead. Is it possible to do with your extension?
I installed it and it seems its not possible, but want to confirm.
Thank you.
How are you?
I'd like to ask you if its possible for the Smart Search Extension to show the publish date.
Joomla default search component is able to show the Creation date, but I need the publish date instead. Is it possible to do with your extension?
I installed it and it seems its not possible, but want to confirm.
Thank you.
7 answers
Unpublished
M
MinitekPosted 9 years agoModerator
Hi Paulo,
Yes, you can enable the publishing date in the component options:
Options > Results > Result Date
Yes, you can enable the publishing date in the component options:
Options > Results > Result Date
Unpublished
P
PauloPosted 9 years ago
Hi Yannis,
It shows the creation date, not the publish date.
It shows the creation date, not the publish date.
Unpublished
M
MinitekPosted 9 years agoModerator
You can do the following:
1. Create a template override for the view search.
https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
2. Go to the Minitek Smart Search menu item in your menu and in the field Alternative Layout, select your template override.
3. In your template override, open the file default_result.php
and in line 109 replace
with
1. Create a template override for the view search.
https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
2. Go to the Minitek Smart Search menu item in your menu and in the field Alternative Layout, select your template override.
3. In your template override, open the file default_result.php
and in line 109 replace
JHTML::_('date', $this->result->start_date, 'd M, Y')
with
JHTML::_('date', $this->result->publish_start_date, 'd M, Y')
Unpublished
P
PauloPosted 9 years ago
Good afternoon Yannis
I just noticed that joomla keeps loading the core Searh component. Instead of Minitek Smart Search.
My link in SH404 incudes the menu ID, and this Menu ID leads to Minitek Search Component...
Any clue why this happens?
(see images attached)
by the way I added this code (that you gave me the other day) to the index file and it did not render anything.. am I missing something?
<?php
$app = JFactory::getApplication();
$view = $app->input->get('view', '');
?>
Thank you for helping.
I just noticed that joomla keeps loading the core Searh component. Instead of Minitek Smart Search.
My link in SH404 incudes the menu ID, and this Menu ID leads to Minitek Search Component...
Any clue why this happens?
(see images attached)
by the way I added this code (that you gave me the other day) to the index file and it did not render anything.. am I missing something?
<?php
$app = JFactory::getApplication();
$view = $app->input->get('view', '');
?>
Thank you for helping.
Unpublished
M
MinitekPosted 9 years agoModerator
Hi Paulo,
You must purge the sh404 urls each time you change your menu items. sh404 is still using your old urls.
The above code will not render anything.
You must also add this code if you want to display the current view:
You must purge the sh404 urls each time you change your menu items. sh404 is still using your old urls.
The above code will not render anything.
You must also add this code if you want to display the current view:
var_dump($view);
Unpublished
P
PauloPosted 9 years ago
Hi Yannis,
I've been playing with this for the last few days. Purging sh404 didn't help.
I had to resort to customizing the Joomla core search component and use that instead.
If you're curious to check this out, let me know and I'll find a way for you to get access. Maybe it can help advancing your extension even further, however this does sound like its an issue with my site, not the extension, so not sure if its worthwhile for you to check it out now that I found an alternative.
I do really like your extension, its a pitty I can't seem to be able to use it.
To be clear, I'm not blamming your extension.
I've been playing with this for the last few days. Purging sh404 didn't help.
I had to resort to customizing the Joomla core search component and use that instead.
If you're curious to check this out, let me know and I'll find a way for you to get access. Maybe it can help advancing your extension even further, however this does sound like its an issue with my site, not the extension, so not sure if its worthwhile for you to check it out now that I found an alternative.
I do really like your extension, its a pitty I can't seem to be able to use it.
To be clear, I'm not blamming your extension.
Unpublished
M
MinitekPosted 9 years agoModerator
Hi Paulo,
I just saw that you are using the original Smart Search module from Joomla.
This is the problem.
Minitek Smart Search does not have a module. It's a component and can be used only directly via a menu item.
I just saw that you are using the original Smart Search module from Joomla.
This is the problem.
Minitek Smart Search does not have a module. It's a component and can be used only directly via a menu item.
Search - Powered by Minitek Live Search
© 2011 - 2024 Minitek.gr. All Rights Reserved.
Minitek.gr is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.
The Joomla! logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.