Re: View without edit
Christian Stocker <[email protected]> Fri, 17 Dec 2004 15:51:43 +0100
| Newsgroups | gmane.editors.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
On 17.12.2004 14:17 Uhr, Nicholas Protogeros wrote: > > ----- Original Message ----- From: "Nicholas Protogeros" <[email protected]> > To: <[email protected]> > Sent: Friday, December 17, 2004 1:32 PM > Subject: Re: [bx-editor-users] View without edit > > >> Hi >> >> >> On 17.12.2004 12:20 Uhr, Nicholas Protogeros wrote: >> >>> Hi, >>> I am trying to use bitflux in an application where one can enter >>> information into predefined structured documents. I succeded to use >>> Bitflux editor with PHP and XHTML. >> >> >> Great >> >>> My question is how to permit view only to some persons and restrict >>> edidting? In my undestanding Bitflux renders the XML content into the >>> XHTML template only after you bxe_start it. Then the menu and toolbar >>> become visible and one can edit the content. Of course I can disable >>> the save but is there any better way? >> >> >> There's no built in user management in BXE. Why do you want people not >> allowed to edit a page, be able to see the page in BXE at all? I fail >> to see that ;) >> >> Usermanagement is basically the task of the serverside. So what you >> could do, is to check on the server side, if people are allowed to >> save. If they're not, you can report back an error message. > > > Misunderstanding. I am sorry. > Of course user management is done by the PHP application. But when a > user has only view rights is there a way to render the content without > showing him the menu and the toolbar? Can I disable them programatically? No. not really. You could register another function for the save event (configureable via config.xml), this would at least prevent saving. But apart from that, no, there's no mode to just view the page. >>> Also I found that in order to use multiple paragraphs in a text box >>> you have to use css stylesheets. Where can I find information on how >>> to combine stylesheets with bitflux? >> >> >> http://wiki.bitfluxeditor.org/CSS > > > I have looked at the standards that you propose but I didn't understand > how they are used by bitflux. For example how does it happens when I use > the inline.css from your example I can enter new lines and have > paragraphs and when not, the enter key does nothing. Your Elements, which should recognize the "enter" key, have to be block elements (like "para" in the demo). you have to declare that in the css. for example, if you have an element called "para" write in the css file: .para { display: block; } Then, if you hit enter and the RelaxNG allows a second "para", it should just do that. HTH chregu > >> >> chregu >> >>> warm regards >>> Nick >>> >> >> -- >> christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich >> phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 >> http://www.bitflux.ch | [email protected] | gnupg-keyid 0x5CE1DECB >> > > Thank you for your time and support > > Nick > -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | [email protected] | gnupg-keyid 0x5CE1DECB -- bx-editor-users mailing list [email protected] http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users