Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image for menus to pages #10

Open
evest opened this issue May 12, 2015 · 0 comments
Open

Add image for menus to pages #10

evest opened this issue May 12, 2015 · 0 comments
Assignees

Comments

@evest
Copy link

evest commented May 12, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants