Re: [Hypercontent-users] Editable areas
Brought to you by:
alexvigdor
From: Alex V. <av...@co...> - 2005-01-20 16:27:03
|
Well, you could limit it to 3 by explicitly declaring each as a separate element: <!ELEMENT page (html,right-box1*,right-box2*,right-box3*)> It makes for a less appealing DTD, but allows you to keep users from trying to add a hundred boxes to a page . . . Alex On Jan 20, 2005, at 11:13 AM, Adam Carl wrote: > Carl, > > There is no way using the current interface to do the following: > > " So for example, for the right hand orange boxes the user might be > presented with an option to add 0-3 boxes, then on selection have the > editable text appear for each box." > > The standard interface is not that flexible. > > You could give them the option to add one or more right hand boxes by > setting up a dtd. Alex had a good example. > >>> <!ELEMENT page (html,right-box*)> >>> <!ELEMENT right-box(html)> >>> <!ATTLIST right-box title CDATA #REQUIRED> > > You could also set it up like this: >>> <!ELEMENT page (html,right-boxes)> >>> <!ELEMENT right-boxes(html*)> >>> <!ATTLIST right-box title CDATA #REQUIRED> > > This way every html area in the right-boxes element was its own > Information html section. Ahh but the problem here would be having a > title for each. > > > Adam > > > > On Jan 20, 2005, at 4:05 AM, Carl Barrow wrote: > >> Hi Adam >> >> If you have any further pointers on this that would be great. It >> would really finish of what I've been getting setup here. >> >> Thanks >> Carl >> >> Alex Vigdor wrote: >> >>> Hi Carl, >>> We do something almost identical to what you are describing on >>> one of our latest sites >>> >>> http://www.columbia.edu/hr/index.html >>> >>> If you navigate across the top-level pages you'll notice that each >>> of them has a slightly different box arrangement. Adam should be >>> able to describe the implementation in more detail, but I believe in >>> XML you could just have a repeating element "right-box" with a >>> single child "html" and an attribute for its title, and in XSL >>> and/or CSS you could set up the actual on-screen positioning. E.g. >>> >>> <!ELEMENT page (html,right-box*)> >>> <!ELEMENT right-box(html)> >>> <!ATTLIST right-box title CDATA #REQUIRED> >>> >>> and call different templates with "/page/html" vs. >>> "/page/right-box/html". >>> >>> Alex >>> >>> On Jan 19, 2005, at 9:51 AM, Carl Barrow wrote: >>> >>>> Hi Alex >>>> >>>> Thanks for the info on downloads. I'll leave things as they are >>>> and have a look at getting updated to v2 when it's released. >>>> >>>> I have a question which might not be possible. If you take a look >>>> at the sample page >>>> http://www.learndev.hull.ac.uk/CB/REOTESTPAGE.html you will notice >>>> that I have info boxes down the right hand side of the page and >>>> under the menu items on the left. At the moment I am dropping >>>> these boxes into editable areas in html form which works great for >>>> me but might not for some of the users on campus. Is there any way >>>> ether now or in future releases of HyperContent that a user could >>>> add as many boxes as the wanted but not have to worry about any >>>> html? So for example, for the right hand orange boxes the user >>>> might be presented with an option to add 0-3 boxes, then on >>>> selection have the editable text appear for each box. >>>> >>>> Just something that I thought about..... >>>> >>>> Many thanks >>>> Carl >>>> >>>> -- >>>> ************************************ >>>> >>>> Carl Barrow >>>> Web Developer >>>> e-Services >>>> The University of Hull >>>> Cottingham Road >>>> Hull >>>> HU6 7RX >>>> Ext. 6838 >>>> ************************************ >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> The SF.Net email is sponsored by: Beat the post-holiday blues >>>> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. >>>> It's fun and FREE -- well, >>>> almost....http://www.thinkgeek.com/sfshirt >>>> _______________________________________________ >>>> Hypercontent-users mailing list >>>> Hyp...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>> >>> >>> >>> >>> ------------------------------------------------------- >>> The SF.Net email is sponsored by: Beat the post-holiday blues >>> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. >>> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> >> -- >> ************************************ >> >> Carl Barrow >> Web Developer >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IntelliVIEW -- Interactive >> Reporting >> Tool for open source databases. Create drag-&-drop reports. Save time >> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >> Download a FREE copy at http://www.intelliview.com/go/osdn_nl >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> > Adam Carl > AIS Web Services > (212) 854-0131 > ac...@co... > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |