Re: Code-Source as Inline-Element
kit blake <[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
> Trying to create some advanced linking feature using Code Sources I > eventually found out that Code Sources can only be used as block > elements and that they cannot be nested into paragraphs, lists, etc. As > I wanted these (specialized) links to be inside some text in a paragraph > or a list this is bad news to me. > > Is it true, that Code Sources can only be used as block elements? If > yes, does anybody know a workaround? Yes, it's (unfortunately) true. > As a feature request, I would suggest that Codes Sources should also be > usable as inline elements. This might greatly enhance the potential of > Silva for customized enhancements. For example I am thinking of a > literature reference Code Source in a Silva Document, that might work > together with a bibliography entry content type to produce > bibliographies automatically. As a workaround you could easily create a Code Source that renders a p element and includes the reference with any metadata (href, link title). If you wish I can send you an image captioning Code Source to serve as an example. > Or a similar idea is a glossary reference > Code Source, which automatically creates a link to a glossary entry (or > even creates some JavaScript code for a pop-up window to display the > glossary entry). Indeed the ideal solution would be inline Code Sources, but that is not a simple feature, as it requires changes to the xml schema, import/export, etc. If you do create your Code Sources, please let us know. kit -- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Infrae . . . kit blake . . . infrae.com . t +31 10 243 7051 Hoevestraat 10 . 3033 GC Rotterdam . NL . f +31 10 243 7052