0

I am trying to create an attribute which can be repeated any number of times for a page. I am wondering how I can implement something like this with Magento attributes.

For example on the page there would be a text box and an add another button and on the template I could get an array of the lines of text submitted.

5
  • For which entity (product, page, etc.)?
    – benmarks
    Jul 22, 2014 at 21:12
  • How would these values be used? Would they need to be filtered or sorted on?
    – benmarks
    Jul 22, 2014 at 21:15
  • no just displayed on screen as links. would be an icon, a link, and text determined by three associated fields for each link and on screen a list of links one after the other.
    – lathomas64
    Jul 22, 2014 at 21:33
  • Attributes in Magento are always associated with an entity. Which entity? Or are these just content blocks which will show in any context?
    – benmarks
    Jul 23, 2014 at 12:44
  • missed the first question about which entity. for a product. In this case products may have 0..* links associated with them and I wanted to use attributes to fill in values for the link(text, destination, css class etc.)
    – lathomas64
    Jul 23, 2014 at 13:29

1 Answer 1

1

You could do this with an attribute having a textarea for its frontend input and then a custom frontend model for rendering which would read the linebreaks as a value delimiter.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.