Select DIV and duplicate it

Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default Select DIV and duplicate it

    Lets say I have a list of products, displayed in DIV containers underneath each
    other. Can a Contribute user select one of those DIVs and copy/paste it to add
    a new product.

    I guess you could just put the products in a table and add a new row - that's
    the kind of functionallity I want but would rather use DIVs.

    Whole DIVs just dont seem selectable in Contribute.

    naked_ollie Guest

  2. Similar Questions and Discussions

    1. MS Access SQL: duplicate record... ?SELECT INTO....?
      What syntax would you use to dupe a record? Thanks! -- Scotter
    2. select all the duplicate records
      Hi, My table in the database may contain duplicate records, which means except the primary key (auto_increment) field is unique, all or almost of...
    3. #25474 [Fbk->Opn]: posting arrays from a select box with multiple select is not working properly
      ID: 25474 User updated by: fmuller at cisco dot com Reported By: fmuller at cisco dot com -Status: Feedback...
    4. #25474 [Opn->Fbk]: posting arrays from a select box with multiple select is not working properly
      ID: 25474 Updated by: sniper@php.net Reported By: fmuller at cisco dot com -Status: Open +Status: ...
    5. SELECT DISTINCT + ORDER BY gives ERROR 145: ORDER BY items mustappear in the select list if SELECT DISTINCT is specified.
      Dan, You should be able to do this: SELECT Id, FaxID, ReceivedTime, Pages FROM ( SELECT DISTINCT .Id AS Id,
  3. #2

    Default Re: Select DIV and duplicate it

    OK, looks like somebody else has raised this too,
    [url]http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=290&thre[/url]
    adid=913128&highlight_key=y&keyword1=div

    But no solution it would seem...

    naked_ollie Guest

  4. #3

    Default Re: Select DIV and duplicate it

    This seems to be rather simple - all you need is a template for the product
    page including a repeatable area. A simple template could look like this:



    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>template</title>
    <!-- TemplateEndEditable -->
    <title>Demo</title>
    </head>
    <body>

    <div id="header">
    </div>

    <div id="navigation">
    </div>

    <div id="main">

    <h1>Products</h1>

    <div class="product">
    <!-- TemplateBeginRepeat name="Products" -->
    <h2><!-- TemplateBeginEditable name="ProductName" -->Product Name<!--
    TemplateEndEditable --></h2>
    <!-- TemplateBeginEditable name="ProductText" -->
    <p>
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
    nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi
    enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis
    nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in
    hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu
    feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui
    blandit praesent luptatum zzril delenit augue duis dolore
    </p>
    <!-- TemplateEndEditable -->
    <!-- TemplateEndRepeat -->
    </div>

    </div>

    <div id="footer">
    </div>

    </body>

    </html>

    Michael Eichelsd?rfer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139