• repeating regions macromedia contribute#

  • robwalsh Reply #1, 4 years, 6 months ago

    Reply
    Hi
    I have am working with a client who is used to using contribute to edit their previous websites.. I'm using modx for the new one and they have a couple of specific requirements.. They want to be able to add say a product to the products page.. On their previous website with contribute integrated all they had to do was click the + icon which would add a whole region. Inside this region was the editable h1, text description and an image. This would keep the style and formating of each of the products the identical and they couldn't really mess it up..

    They also want to be able to do the very same thing with a video file instead of the image?

    Is their a way of doing something similar to this in modx?

    Thanked in advance
    Rob




  • opengeek Reply #2, 4 years, 6 months ago

    Reply
    If you had them add a page for each product, you could create TV's to represent the details, then use Ditto to create combined views of them. Then, the TV's would provide the editing forms that would prevent them from destroying the layout.


  • 57str@t Reply #3, 2 years, 6 months ago

    Reply
      Hi there,

      I also need something like this, but i don't want the items to have their own page. I need to create a set that allows my client to add items to a list.

      Example:

      add new item. Have three or four fields
      [list]
      [list]
    • product
    • description
    • image ( clickable to enlarge in a jQuery lightbox )

    • image title and alt ( same for both so one field would suffice
    [/list]
    [/list]

    then "save". that item appears on the page, then the client can click "add" which allows them to add another item so on and so on....

    but NOT HAVE TO CREATE A NEW PAGE... all of these items would just appear on one single page itself... how can this be done? I can't seem to figure out to make it so they can add new multiple times ( repeating region )

    Thanks




  • opengeek Reply #4, 2 years, 6 months ago

    Reply
    Quote from: 57str@t at Nov 10, 2009, 09:48 AM
    but NOT HAVE TO CREATE A NEW PAGE... all of these items would just appear on one single page itself... how can this be done? I can't seem to figure out to make it so they can add new multiple times ( repeating region )
    If you don't want a page per item, then you'll need a custom database table representing the items, a page with a Snippet that responds to GET parameters which tell it which item to display, and a module UI (or additional controls/forms on the Snippet) for them to manage the items. This is not much different than creating a php file that would do the same thing. You'll also need a Snippet to iterate the items for rendering some kind of navigation.