Working with fields options

Post

Posted
Rating:
#3502 (In Topic #693)

What is the proper way if using field options in this case?

Am trying to use field options with catalogues  on a site. Am confused about what should be the combination of the type of field and the actual field options. I want to create a "list with the list_multi option.
I was unable to create a list. P tried things like 
[this|that}other

and a=this|b=that|c=other

while keeping the Type of field as "A brief line of translatable/Comcode text".
No list shows up when adding a new catalogue entry  What is the proper way of ud=sing the field option here.
 

Post

Posted
Rating:
#3503
Hi,

Field options are defined only for a particular field type. If you want a list, the field type has to be that of a list. Only then can you decide what list field options you may want to specify, and what you want the list contents to be.

Post

Posted
Rating:
#3504
Thanks for the clarification.

Post

Posted
Rating:
#3505
I have chosen
Multiple values From a list
as the field type and inputed
"Shared Hosting|VPN|Cloud Hosting|Dedicated Servers"
in as the field options, but am not getting what I want when adding an entry (see the attached picture).
I had used
Shared Hosting|VPN|Cloud Hosting|Dedicated Servers (this time without quotes), but am having the sane problem.
104 views (8 KB)

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Adam Edington)
#3506
This needs to go in the Default field, not the Field Options field. For a list the Default value field is what defines the list contents, and the first term is used as the default list setting.

Post

Posted
Rating:
#3514
Am able to get things working, thanks.
How do I exempt a particular field from the 'Sort by" feature?
I have a field of type - A paragraph of translatable/coccode text. I don't want this to appear among the Sort by drop down.

Post

Posted
Rating:
#3516
Hi,

Currently you have to do that by making the field non-searchable.
I realise that may not be ideal, there's a tracker issue - 0000302: Field sortable option / Choosing which fields are included in search - Composr CMS feature tracker

Post

Posted
Rating:
#3535
Hi,
Does this imply that the contents of this field cannot be searched against with compo.sr's search feature?

Post

Posted
Rating:
#3536
That's correct.

Post

Posted
Rating:
#3537

Chris Graham said

That's correct.

I wouldn't want that. I think I'll just remove the sort feature from the template.

Post

Posted
Rating:
#3546
It might be we can find some better solution in a live chat if you want to attend one.
0 guests and 0 members have recently viewed this.