Re: two editable areas
Christian Stocker <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Organization | Bitflux GmbH |
| Message-ID | <[email protected]> |
On 14.12.2005 22:42 Uhr, Adrian Nussbaum wrote: > hi > > >> it was just an example :) > > that fact i understood of course > >> Without knowing how your content looks like, I can't tell you how the >> xpath has to be. > > I just used the out-of-the-box default.xhtml... > >> You need to have 2 divs (or other elements) in your >> xhtml file, which then can be referenced via xpath to be displayed and >> edited independently in BXE. > > I now changed my default.xhtml to something like this: > > ----- > <html ...><head><title>...</title></head><body> > > <div id="right"><p>right box</p></div> > > <div id="content"> > <h1>Title</h1> > <p>text</p> > </div> > > </body></html> > ----- > > > the bxe-xpaths look like this: > > ----- > <div id="right" bxe_xpath="/xhtml:html/xhtml:body/xhtml:div > [@id='right']"> ... </div> > <div id="content" bxe_xpath="/xhtml:html/xhtml:body/xhtml:div > [@id='content']"> ... </div> > ----- > > > the content-box appears correctly in the bxe. but instead of the right > box theres just an ugly error-message: > "Node /xhtml:html/xhtml:body/xhtml:div[@id='right'] was not found in > the XML document" > > > did i do or understand something wrong? did you create a new xhtml from that template? If you change the template it doesn't magically change all your existing xhtml pages. Other from that, I see nothing wrong chregu > > > > adrian > > > >> chregu >> >>> >>> ... >>> >>> >>>> >>>> On 14.12.2005 8:39 Uhr, Adrian Nussbaum wrote: >>>> >>>>> >>>>>> Look for <div id="content" bxe_xpath="/xhtml:html/ xhtml:body"> >>>>>> >>>>>> and just add another bxe_xpath to where you want your second >>>>>> editble >>>>>> area >>>>> >>>>> >>>>> >>>>> >>>>> great. >>>>> but what/which vaule could i enter as the bxe_xpath? there must be >>>>> something different to "..../xhtml:body"... right? >>>> >>>> >>>> >>>> the xpath to that element you want to edit. >>>> >>>> for example for box1 >>>> >>>> /xhtml:html/xhtml:body/xhtml:div[@id="content"] >>>> >>>> for box2 >>>> >>>> /xhtml:html/xhtml:body/xhtml:div[@id="box2"] >>>> >>>> chregu >>>> >>>>> >>>>> >>>>> adrian >>>> >>>> >>>> >>>> -- >>>> christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich >>>> phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 >>>> http://www.bitflux.ch | [email protected] | GPG 0x5CE1DECB >>>> >>>> >> >> -- >> christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich >> phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 >> http://www.bitflux.ch | [email protected] | GPG 0x5CE1DECB >> >> -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | [email protected] | GPG 0x5CE1DECB -- bitflux-cms mailing list [email protected] http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms