Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to define alternate part shapes in Orchard
    primarykey
    data
    text
    <p>Here is my scenario...</p> <p>Using Orchard CMS 1.7.1 I have created a custom Content Type named 'VistaImage' using the Orchard UI. This Content Type defines one field based on a Media Library Picker Field, this field is also named 'VistaImage'.</p> <p>A Projection of groups of Vista Images are placed in the 'Featured' Zone as a Widget reference and works well.</p> <p>Using the Shape Tracer on the resulting page(s), the shape hierarchy looks as follows:</p> <pre><code>Zone [Featured] Widget List Content Alt: Content-VistaImage Fields_MediaLibraryPicker Alt: Fields.MediaLibraryPicker-VistaImage Media Parts_Image_Summary </code></pre> <p>What I want to do is to provide alternative shapes from the Content shape downwards. This is easy enough for Content itself and for Fields_MediaLibraryPicker (as the Shape Tracer automatically provides applicable alternatives (as indicated above)).</p> <p>My problem comes in providing alternatives for the Media and Parts_Image_Summary parts.</p> <p>Looking at the documentation for <a href="http://docs.orchardproject.net/Documentation/Alternates" rel="nofollow">Alternates</a> on the Orchard web site, I thought that if I created a new shape in my Theme at at /Views/Parts/Image.Summary-VistaImage.cshtml this would get referenced, but it does not (though if I remove the '-VistaImage' the shape does get used, but this would, I believe change this shape for every Content Type, which is not what I want to do).</p> <p>Any advice/direction on how I should approach this requirement would be apprciated.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload