Forum

Thread tagged as: Question, Problem, Field-Types

Region list display in composite field order?

I created a composite field to join field 'make' and 'model' together thinking I could then use the composite field to order the list by, however the composite field doesn't show as a field to select in the 'order by' list. Is this a bug?

I want the list to be ordered as follows (where Audi, BMW etc are the make fields and A1, A3, 1 Series are the model fields):

  • Audi A1
  • Audi A3 Sportback
  • BMW 1 Series
  • etc
Neil Duddridge

Neil Duddridge 1 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show me your function call?

This was in Perch Admin. I've just figured it out, I hadn't give the composite field a label! Doh!

Is it possible to create a composite field that includes a mix of fields from content and related content?

I want to be able to do away with the "makeref" field, here is my collection code:

<perch:related id="make" collection="Make" label="Make">
<perch:content id="make" type="text" />
</perch:related>
<perch:content id="makeref" type="text" label="Make (for ref only)" title="true" help="e.g. Audi" required="true" />
<perch:content id="model" type="text" label="Car Model" required="true" title="true" help="e.g. A1, A3 Sportback, 2 Series, 3 Series etc" />
<perch:content id="makemodel" type="composite" for="makeref model" label="Make/Model" />
<img src="<perch:content type="image" id="modelpic" label="Model Photo" width="512" height="384" crop="true" bucket="cars" />" alt="<perch:content type="text" id="modelpicalt" label="Photo Description" required="true" help="Enter SEO friendly description e.g. Audi A1 Hatchback Leasing" />" />
<perch:content id="slug" type="slug" for="model" editable="true" indelible="true" />
<perch:content id="modeldesc" type="textarea" label="Model Description" html="true" editor="ckeditor">

Drew McLellan

Drew McLellan 2638 points
Perch Support

No, composite fields can't come from related content.