97 Posts
Anjo
9 years ago
7
Topic
Struggled for a while trying to figure out how to use this field but got there in the end. Maybe there should be a section in the forum for each filed/plugin etc where people can post examples of how they use them. The Ratings and Reviews section could work but it only allows a maximum of 255 characters. Anyhow here is what I did:

Create a Language ini file override in "joomla root/language/overrides"- name it "en-GB.override.ini"
The easiest way to do this is to copy a language file from the language folder "en-GB", delete all content inside, save it and rename it as above.

Copy text from Search Total field language constant box COM_CCK_SEARCH_TOTAL to your language override ini  and add = "Showing %3$s-%4$s of %1$s total results" at the end so it looks like COM_CCK_SEARCH_TOTAL="Showing %3$s-%4$s of %1$s Listings"

Make sure you add Search Total Field to search form and that it is being called in your template.    The result in front end for the above language constant COM_CCK_SEARCH_TOTAL will be something similar to - showing 1-4 of 10 Listings

Hope this helps
Anjo












Get a VIP membership
693 Posts
rpoy
9 years ago
0
Level 1
Hi Anjo,

Thank you for your post.  Please add your feature request to the Tracker regarding the different field categories.  Perhaps an option for the rating, is to supply the link back to your post.

Thanks,

Randy
9 years ago
1
Level 1

Hi Anjo

Even If I put the search total in the search view of the list I can't see it on the front side. Is there something we should make please?

thanks

cyril

97 Posts
Anjo
9 years ago
0
Level 2

Hi Cyril,

The plugin only works on Search Form view, it does not work on search view list. After testing it does not seem to work in a module (seblod search) I only got it to work in a menu link with show search form. Maybe this could be a bug?

Hope this helps

Anjo

9 years ago
1
Level 1

Hi Anjo

Sorry but I don't understand you. I put the field in the search tab of a seach&list that is called from a menu item but the field  doesn't appear. I didn't put the field in the list tab or in the item tab.

thanks

cyril

97 Posts
Anjo
9 years ago
0
Level 2

Hi Cyril, check link below there are 4 images showing how I set it up. Make sure your search form shows in the front you can do this in menu link - show search form.

http://asdaily.net/images/searchtotal/

Hope this helps

9 years ago
1
Level 1

Hi

thanks for the screenshots

This is eactly what I did but it doesn't work.

I checkd the search_total.php where it should display the total and I found $config[total] to be null whereas the list is far from empty!

// onCCK_FieldBeforeRenderForm

public static function onCCK_FieldBeforeRenderForm( $process, &$fields, &$storages, &$config = array() )

{

$id = $process['id'];

$name = $process['name'];

$jtext = $process['jtext'];

var_dump( $config['total'] );die(); <-- DISPLAYS NULL

if ( isset( $config['total'] ) && $config['total'] > 0 ) {

if ( $config['total'] < $config['limitend'] ) { $step = ...

thanks for your help

cyril

9 years ago
0
Level 2

Ok I found what was wrong.... The seblod version was too old !

it works with recent versions

thanks a lot!

cyril

Get a Book for SEBLOD