The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
Brookstone Creative
Forum Replies Created
-
Brookstone Creative in reply to:
using string to translate text in within filter(Private) June 19, 2019 at 9:56 am #214427I am trying this code from the documentation you supplied. However it just removes all the options.
How can I use this correctly?<?php function filter_input_object($input_object, $sfid) { foreach($input_object['options'] as $option) { if($option->value=="brochures") {//the option with no value is always the "all items" or unselected state $option->label = "Brochures"; } else if($option->value=="brochures") {//we want to change the label for the option "black" - we can feed back in the count number to the label for this field type $option->label = "test (".$option->count.")"; } } } add_filter('sf_input_object_pre', 'filter_input_object', 10, 2); ?>
Brookstone Creative in reply to:
using string to translate text in within filter(Private) June 18, 2019 at 5:08 pm #214393Hello can you help understand the Filter Input Object. Where do I place this and how do I use it to replace the text for example the selection ‘Brochures’
Brookstone Creative in reply to:
using string to translate text in within filter(Private) June 17, 2019 at 4:37 pm #214227Hello Sorry I was talking about frontend, as reference you can take a look at this link. I only need to translate the filter options now.
https://extensions.brookstonesites.co.uk/downloads_frenchBrookstone Creative in reply to:
using string to translate text in within filter(Private) June 17, 2019 at 4:12 pm #214211Hello, No I am not using any translation plugin. I am wanting to translate manually as so the translation is as accurate as possible. I was hoping to add a custom string to either the post type or the function.php so it will replace a specific word within the filter to the translated version.
Thanks
Brookstone Creative in reply to:
Pagination or Infinite Scroll(Private) May 30, 2019 at 2:50 pm #212879This is great news thank you for you quick fix.
Thanks
Brookstone Creative in reply to:
Pagination or Infinite Scroll(Private) May 28, 2019 at 9:58 am #212591Hello,
I am not 100% sure how to add this code to the template. I can see some of the structure is the same. If its easier could I just add regular pagination?Brookstone Creative in reply to:
Pagination or Infinite Scroll(Private) May 24, 2019 at 4:22 pm #212487No I don’t get any pagination at all when turned off.
Brookstone Creative in reply to:
Pagination or Infinite Scroll(Private) May 24, 2019 at 3:36 pm #212473This reply has been marked as private.Brookstone Creative in reply to:
Pagination or Infinite Scroll(Private) May 24, 2019 at 1:43 pm #212422This reply has been marked as private.Brookstone Creative in reply to:
Default search option(Private) May 23, 2019 at 8:57 am #212151Thanks for your help look forward to Version3 🙂
-
AuthorPosts