lars
committed
on 07 Jan 04
HTML-quoted an example <include> tag
openacs-4/.../www/doc/index.html (+1 -1)
208 208 <hr>
209 209 <p><b>Integration with other packages</b>
210 210 <p>Here are the changes needed to be made to integrate with other packages.
211 211 <p>
212 212
213 213 <b>index.adp</b>
214 214 <br>Provide an admin-link to
215 215 /categories/cadmin/one-object?object_id=@package_id@ to let admins
216 216 map trees to the package instance.
217 217 <p>
218 218
219 219 <b>form-page.tcl</b>
220 220 <br>Use this in ad_form to display all mapped category trees and
221 221 selected categories (if editing an object):
222 222 <pre>
223 223     {category_ids:integer(category),multiple,optional {label "Categories"}
224 224        {html {size 4}} {value {$object_id $package_id}}}
225 225 </pre>
226 226 Alternatively, you can include the following in your adp:
227 227 <pre>
228     <include src="/packages/categories/www/include/widget" object_id=@object_id@ package_id=@package_id@></pre>
  228   &lt;include src="/packages/categories/www/include/widget" object_id=@object_id@ package_id=@package_id@&gt;</pre>
229 229 In the processing part of ad_form use:
230 230 <pre>
231 231 category::map_object -remove_old -object_id $object_id $category_ids
232 232 </pre>
233 233 <p>
234 234 <hr>
235 235 <address><a href="mailto:timo@studio-k4.de">timo@studio-k4.de</a></address>
236 236 </body>
237 237 </html>