Skip Navigation

[Resolved] cant type

This support ticket is created 5 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 20 replies, has 2 voices.

Last updated by Beda 5 years, 9 months ago.

Assisted by: Beda.

Author
Posts
#1190997

refering to this by chritian

The output='raw' attribute tells the dog-sire field to return the sire's ID instead of the name. Then we pass that ID into the wpv-post-link shortcode. You can see that some of the information shown now for Sires is incorrect. I assume this is because the sire information has not been entered yet? If that's the case, and you need to hide this information when Sire is blank, you need a conditional. We can work on that in a separate ticket if necessary.
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

basically if no sire is set for a dog you see a title of numbers example
hidden link look at fizzy sire(i set the dog fizzy to no sire)
also
if i go here to set the sire of fizzy here hidden link

and go to add sire , the list of sires is there , how ever when i in put the data there will be 1000-2000 sires , finding the sire i want will be horific , is there a way to begin typing the sire name and the list updated (think like ajax) ?

thanks again
martin

#1191033

Christian is off today, I would be able to help either now or tomorrow if you could give me a brother explanation of the whereabouts and details, as I am not as familiar as Christian with the issue.

This is why I did not yet assign myself to the ticket, I will await whether you prefer to wait for Christian on Sunday or if you can provide more details, I can try to help you

To check if a field is empty in a conditional you can as the Document outlines use:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/checking-fields-and-other-elements-for-emptynon-empty-values/

[wpv-conditional if="( empty($(wpcf-test-field)) )"]
This field is empty or does not exist[/wpv-conditional]

But I am not familiar with your setup, hence I would need more information about it to tailor a more concise example.

#1191075

thankyou ,
i have a custom post type "dogs" i have 2 custom fields in there , "dogs dam" and "dog sire"
if i create a new dog , and assign a sire or dam here hidden link .
problem 1 ) i cant begin to type the name to choose the sire or dam ,that list will soon be 1000-2000 entries.
problem 2) if you go here and look at "fizzy"who has no sire stored it returns "Sire : Events Dogs: 11434 – 11468" it would be more practical not to display that field if empty or just the Sire : with no dog.
the same issue is here on a dog post hidden link but this one takes the post title rather than leave blank or Sire ; .........
i have 2 filter at the bottom of my functions file here /public_html/wp-content/themes/simply-responsive-cp/functions.php
that waqar kindly provided,im guessing those need a little tweak. filter for dam and sire

thank you
all login details on previous tickets . thanks!!

#1191168

can any one assign this to them selves? many thanks

#1191397

Sure, I took this ticket.

I used your private details submitted here to access the backend you link.
https://toolset.com/forums/topic/need-a-result-displayed-as-a-link/#post-1190948

Let me reply to your questions:

1. i cant begin to type the name to choose the sire or dam ,that list will soon be 1000-2000 entries.

You are using a Select Field, that Select Field is populated in Toolset > Custom Fields > Field Group for Dogs > Dog Sire/Dogs Dam
When editing a post you will not be able to add values to it, only to choose values, and there will not be a Select2 instance that lets you type and search thru thousands of options but only a simple select field that will react to the first keystroke (Press F to get first letter of F, for example)

To achieve a field where you type and search you cannot use one of Toolset's Custom Fields as there is no such field.
I suggest to submit a request for a Select2 instance Field in Types here:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Meanwhile, though you could use a post Relationship (this is the only way to have such a Select2 Field).
Hence you would rather connect Posts that determine the Dog Sire and Dam values.

Or, you would have to choose other plugins that allow such fields (I believe ACF has).

2. Yes, to do so you need to apply the exact HTML conditional as I outlined, adapted to your case.

However I cannot see where you style that post as there is no Content Template for it and it has no content in the post body either.

In the template where you add the HTML and ShortCodes to display the data, there wrap the Sire (and any other fields you want to check for empty/not empty) in the Conditional.
There is a button for that in the TinyMCE Editors, called conditional, as the documentation outlines.
When you use this you can insert such conditions manually with ease.

If you indicate me the place where you style those posts I can insert an example code.

3. Waqar's code is unrelated to the front end, it is a code that populate a custom select field with wpt_field_options.
Do you know that fields, registered with wpt_field_options, are not usable in Toolset View's Custom Searches without lots of add-on Custom Code?
If this is within the planned amount of time and work you intend to invest this is fine, however I have to warn you ahead that such fields cannot be used easily in Custom View Searches. This is a known issue, which we intend to solve in future, but I have no ETA for this at all, unfortunately.
Now, this code does manage the field in the backend, it populates it with posts.

I also wanted to inform you about post reference fields, as it seems to me you could profit from this:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/using-post-reference-fields-to-display-information-from-a-related-post/
It seems to me this is exactly what you need to populate the dog sire and dam fields, but I might be totally wrong as I am not yet 100% familiar with the setup and initial goal.

In any case, the field you have now, can be hidden in the front end if empty, with the suggested HTML condition, but I cannot find the template to do an example code.

#1191398

Please split further single questions in single threads, so we can fully focus on one issue each time.

#1191469

thanks beda, i sense a major issue here , all my post types ,custum fields etc need to be searchable , without this function my site is redundant. aslo with 250 sire begining with m the select box is a major annoyance!!

so aside from above let me start again and see if you can reccomend a solution or a work around!!

maybe create post types for dam and sire and create a relationship between them and dogs . Then adjust my work flow to create a dam/sire 1st / create a dog and attach dam sire while doing so, as i can now type to find dam/sire? ,lastly atttach dog to my event. ? bit more work but now all are searchable?

thanks beda

#1191690

My issue ..............

#1192591

Hello Martin, I apologise that my weekend came in between us.

Is this issue still actual?

I assume yes, as I see the need for searchable fields in your website, however with the native Toolset Types fields this is not possible (unless the post reference field, which features such type and finds ability).

Or, custom post relationships, hence, connecting the posts to other posts instead of using fields, also can allow such type and find features.

I see you have a ticket open with Waqar, please let me know if you are already pursuing solutions there, or if you require help here.

#1195999

thankyou beda, i will have to adress this soon as i will want each page to have a filter and or search , if i can get the whole of the types complete and then re adress any such issues ill be hapy, thanks again , i hope you enjoyed your weekend!

#1196034

Hello Martin

I understand. Please let me know anytime if I can help.

Thanks!

PS, in case you need a Supporter closer to your timezone, we are all listed here, where you can see the working hours as well:
https://toolset.com/support/supporters/
I personally work the later shift of Asian times so you'll find me online usually from the asian midday until 8 pm (Asia).

#1197595

thanks beda , i now have all my views as want, now i want to start to sort the searches and the filters,
is there anything here that would stop me filtering every bit of info that i have added?
hidden link
ie.archives ,custom fields.
i dont want to start n this path until i have all in order.
thank again

#1197673

Can you explain where you would like to filter which content by what?
I see in the dashboard you have several Post Types with each many views displaying those contents.

If you want to add searches and filters to those, you can head to any of those Views you want a filter in, and activate ""Full Custom Display Mode" in the "Screen Options" of the View (Top of the UI Screen).
Then a section for filters and queries will appear in the View where you can start inserting Filters and searches.

This would, however, require another ticket if it needs more examples or explanation as it would not be related anymore to the task of populating a field that is later searchable in the backend.

#1197740

thanks beda i will do that !!

#1197743

Great, then we can close here.

Please let me know if I can help on the other tickets (you may link them here if you need input.)