Skip to content

Add image for menus to pages #10

@evest

Description

@evest

The drop down menus has possibilities to have product information on them:
image
The text disappears when showing sub menus like here:
image

We have this now:
image
The product listing page should have a property (pointing to a product/variation) that will be the featured product in the menu. It should also have a text field for the textual content on the left of the image. We also need an action text for the button, so:

  • MenuFeatureLink (ContentReference) - the target of the link button, and where we'll grab the image from. The image will be cropped in width (and height?)
  • MenuFeatureImage (ContentReference, Image hint) - if we specify this, it should be used instead of an image from the property above.
  • MenuFeatureText (XHtmlString) - the text to the left of the image
  • MenuFeatureActionText (string) - this is the text in the button. We can run the text through a string.format(text, price) so we can add the price of the product to the text dynamically. Example "Now only {0}!" (this allows us to link to other things than products here).

If the sub menu we're showing in the list does not have this information, it should fall back to the parent item. This means we can have the same featured content on all sub menus for cameras.

If we make the properties above into a separate block, it will be easy to add it to more content types.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions