Re: extending options to admin interface (dbform)

florent Claude <[email protected]> Tue, 17 Nov 2009 16:52:31 +0100
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============1517557703==
Content-Type: multipart/alternative;
 boundary="------------080808060303090504050300"

This is a multi-part message in MIME format.
--------------080808060303090504050300
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

I am not a great at php but you should be able to get only part of the=20
fulltree by editing correctly the plugin.

By the way, I have updated this plugin (which I called maxtree now) :=20
http://dl.dropbox.com/u/1274719/maxtree.php
I added the root collection as first node and, following your remark on=20
the information been too big, I removed the fulltext properties.
It works fine for me ONLY IF I don't use the sitemap plugin.
Is this because I used the original sitemap php code in the maxtree plugi=
n?

florent/.


list.fluxcms a =C3=A9crit :
> This works. Thank you - but makes the Information bigger.
> Is there a possibility how to combine this with a xpath query=20
> to get e.g. only the current node and its neighbours and not the
> fulltree? (I know the name is fulltree and it works like this).
>
> Thanks for your reply in advance.
>
> Thomas.
>
> On Sun, 15 Nov 2009 13:26:30 +0100, florent Claude <[email protected]>
> wrote:
>  =20
>> I also wondered how to get any property value from anywhere on the sit=
e?
>> To do so, I created the fulltree2 plugin by tweaking the sitemap plugi=
n
>>    =20
> :
>  =20
>> Want to try? Download fulltree2.php at=20
>> http://dl.dropbox.com/u/1274719/fulltree2.php
>> and place it in in /localinc/bx/plugins/
>>
>> then edit your site configs :
>>  - http://yoursite.com/admin/edit/.configxml?editor=3Doneform
>>  - http://yoursite.com/admin/edit/.configxml.children?editor=3Doneform
>>
>> in each file, add this line  :
>>     <plugin type=3D"fulltree2"></plugin>
>>
>> Voil=C3=A0! That's it. You should be able to access all properties fro=
m the=20
>> public interface of your site. (http://yoursite.com/?XML=3D1 for examp=
le).
>>
>> florent/.
>>
>>
>> list.fluxcms a =C3=A9crit :
>>    =20
>>> Hmmm. Not so easy :-(
>>>
>>> My custom field for my resource is shown in the Admin Interface, and =
is
>>> shown in the database as well.=20
>>> But it is not shown when I perform the XML=3D1 view of my page.
>>> Is there sitll anything to extend?
>>> I thought the XML view shows all the database, and even the empty
>>> elements?
>>>
>>> How can I either check, if my custom-field is useable in my XSL?
>>>
>>> Thanks for your help in advance.
>>>
>>> Thomas.
>>>
>>>      =20

--------------080808060303090504050300
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"=
>
</head>
<body bgcolor=3D"#ffffff" text=3D"#000000">
<font face=3D"sans-serif">I am not a great at php but you should be able
to get only part of the fulltree by editing correctly the plugin. <br>
<br>
By the way, I have updated this plugin (which I called maxtree now) :
<a class=3D"moz-txt-link-freetext" href=3D"http://dl.dropbox.com/u/127471=
9/maxtree.php">http://dl.dropbox.com/u/1274719/maxtree.php</a><br>
I added the root collection as first node and, following your remark on
the information been too big, I removed the fulltext properties. <br>
It works fine for me ONLY IF I don't use the sitemap plugin. <br>
Is this because I used the original sitemap php code in the maxtree
plugin? <br>
<br>
florent/. <br>
<br>
</font><br>
list.fluxcms a =C3=A9crit=C2=A0:
<blockquote cite=3D"mid:852c6094a3f8a13ee12e778f9ae76bc8@localhost"
 type=3D"cite">
  <pre wrap=3D"">This works. Thank you - but makes the Information bigger=
.
Is there a possibility how to combine this with a xpath query=20
to get e.g. only the current node and its neighbours and not the
fulltree? (I know the name is fulltree and it works like this).

Thanks for your reply in advance.

Thomas.

On Sun, 15 Nov 2009 13:26:30 +0100, florent Claude <a class=3D"moz-txt-li=
nk-rfc2396E" href=3D"mailto:[email protected]">&lt;[email protected]&gt=
;</a>
wrote:
  </pre>
  <blockquote type=3D"cite">
    <pre wrap=3D"">I also wondered how to get any property value from any=
where on the site?
To do so, I created the fulltree2 plugin by tweaking the sitemap plugin
    </pre>
  </blockquote>
  <pre wrap=3D""><!---->:
  </pre>
  <blockquote type=3D"cite">
    <pre wrap=3D"">Want to try? Download fulltree2.php at=20
<a class=3D"moz-txt-link-freetext" href=3D"http://dl.dropbox.com/u/127471=
9/fulltree2.php">http://dl.dropbox.com/u/1274719/fulltree2.php</a>
and place it in in /localinc/bx/plugins/

then edit your site configs :
 - <a class=3D"moz-txt-link-freetext" href=3D"http://yoursite.com/admin/e=
dit/.configxml?editor=3Doneform">http://yoursite.com/admin/edit/.configxm=
l?editor=3Doneform</a>
 - <a class=3D"moz-txt-link-freetext" href=3D"http://yoursite.com/admin/e=
dit/.configxml.children?editor=3Doneform">http://yoursite.com/admin/edit/=
.configxml.children?editor=3Doneform</a>

in each file, add this line  :
    &lt;plugin type=3D"fulltree2"&gt;&lt;/plugin&gt;

Voil=C3=A0! That's it. You should be able to access all properties from t=
he=20
public interface of your site. (<a class=3D"moz-txt-link-freetext" href=3D=
"http://yoursite.com/?XML=3D1">http://yoursite.com/?XML=3D1</a> for examp=
le).

florent/.


list.fluxcms a =C3=A9crit :
    </pre>
    <blockquote type=3D"cite">
      <pre wrap=3D"">Hmmm. Not so easy :-(

My custom field for my resource is shown in the Admin Interface, and is
shown in the database as well.=20
But it is not shown when I perform the XML=3D1 view of my page.
Is there sitll anything to extend?
I thought the XML view shows all the database, and even the empty
elements?

How can I either check, if my custom-field is useable in my XSL?

Thanks for your help in advance.

Thomas.

      </pre>
    </blockquote>
  </blockquote>
</blockquote>
</body>
</html>

--------------080808060303090504050300--

--===============1517557703==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms

--===============1517557703==--