Re: extending options to admin interface (dbform)
florent Claude <[email protected]> Tue, 17 Nov 2009 20:36:46 +0100
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============1570612108==
Content-Type: multipart/alternative;
boundary="------------010003070001090208050304"
This is a multi-part message in MIME format.
--------------010003070001090208050304
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Hi Thomas,
[by the way, my name is florent , not Claude :-) ]
I made an update on 'my' plugin : =20
http://dl.dropbox.com/u/1274719/maxtree.php
With this, you can specify the starting point of the returned tree :
Use the plugin like that :
<plugin type=3D"maxtree">
<parameter name=3D"rootpath" value=3D"/path/to/folder/" /> =20
</plugin>
If no rootpath is mentionned, it will build the whole tree.
Hope it suits your needs,
florent/.
list.fluxcms a =C3=A9crit :
> Great work. Thanks Claude.
> Is it possible (and how) to extend the plugin to use
> a parameter (xpath query for example) to get with a
> plugin like this all information and only the information=20
> really needed?
>
> Thanks for your reply.
>
> Thomas.
>
> On Tue, 17 Nov 2009 16:52:31 +0100, florent Claude <[email protected]>
> wrote:
> =20
>> 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 o=
n=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
>> =20
> plugin?
> =20
>> florent/.
>>
>>
>> list.fluxcms a =C3=A9crit :
>> =20
>>> 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]=
e>
>>> wrote:
>>> =20
>>> =20
>>>> I also wondered how to get any property value from anywhere on the
>>>> =20
> site?
> =20
>>>> To do so, I created the fulltree2 plugin by tweaking the sitemap
>>>> =20
> plugin
> =20
>>>> =20
>>>> =20
>>> :
>>> =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=3Donefo=
rm
>>>>
>>>> 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 f=
rom the
>>>> =20
>
> =20
>>>> public interface of your site. (http://yoursite.com/?XML=3D1 for
>>>> =20
> example).
> =20
>>>> florent/.
>>>>
>>>>
>>>> list.fluxcms a =C3=A9crit :
>>>> =20
>>>> =20
>>>>> Hmmm. Not so easy :-(
>>>>>
>>>>> My custom field for my resource is shown in the Admin Interface, an=
d
>>>>> =20
> is
> =20
>>>>> 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
--------------010003070001090208050304
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">Hi Thomas, <br>
<br>
[</font><font face=3D"sans-serif">by the way, </font><font
face=3D"sans-serif">my name is florent , not Claude :-) ]<br>
<br>
I made an update on 'my' plugin :=C2=A0
<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>
<br>
</font><font face=3D"sans-serif">With this, you can specify the starting
point of the returned tree : </font><br>
<font face=3D"sans-serif"><br>
Use the plugin like that : <br>
<plugin type=3D"maxtree"><br>
=C2=A0=C2=A0=C2=A0 <parameter name=3D"rootpath" value=3D"/path/to/fold=
er/" />=C2=A0=C2=A0=C2=A0 <br>
</plugin><br>
<br>
If no rootpath is mentionned, it will build the whole tree. <br>
<br>
Hope it suits your needs, <br>
florent/. <br>
<br>
</font><br>
list.fluxcms a =C3=A9crit=C2=A0:
<blockquote cite=3D"mid:0bf3a672a1d48cb4e0d00df8643778a7@localhost"
type=3D"cite">
<pre wrap=3D"">Great work. Thanks Claude.
Is it possible (and how) to extend the plugin to use
a parameter (xpath query for example) to get with a
plugin like this all information and only the information=20
really needed?
Thanks for your reply.
Thomas.
On Tue, 17 Nov 2009 16:52:31 +0100, florent Claude <a class=3D"moz-txt-li=
nk-rfc2396E" href=3D"mailto:[email protected]"><[email protected]>=
;</a>
wrote:
</pre>
<blockquote type=3D"cite">
<pre wrap=3D"">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
<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>
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
</pre>
</blockquote>
<pre wrap=3D""><!---->plugin?
</pre>
<blockquote type=3D"cite">
<pre wrap=3D"">florent/.
list.fluxcms a =C3=A9crit :
</pre>
<blockquote type=3D"cite">
<pre wrap=3D"">This works. Thank you - but makes the Information bi=
gger.
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]"><[email protected]>=
;</a>
wrote:
=20
</pre>
<blockquote type=3D"cite">
<pre wrap=3D"">I also wondered how to get any property value from=
anywhere on the
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=3D""><!---->site?
</pre>
<blockquote type=3D"cite">
<blockquote type=3D"cite">
<blockquote type=3D"cite">
<pre wrap=3D"">To do so, I created the fulltree2 plugin by tweaki=
ng the sitemap
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=3D""><!---->plugin
</pre>
<blockquote type=3D"cite">
<blockquote type=3D"cite">
<blockquote type=3D"cite">
<pre wrap=3D""> =20
</pre>
</blockquote>
<pre wrap=3D"">:
=20
</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 :
<plugin type=3D"fulltree2"></plugin>
Voil=C3=A0! That's it. You should be able to access all properties from t=
he
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=3D""><!---->
</pre>
<blockquote type=3D"cite">
<blockquote type=3D"cite">
<blockquote type=3D"cite">
<pre wrap=3D"">public interface of your site. (<a class=3D"moz-tx=
t-link-freetext" href=3D"http://yoursite.com/?XML=3D1">http://yoursite.co=
m/?XML=3D1</a> for
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=3D""><!---->example).
</pre>
<blockquote type=3D"cite">
<blockquote type=3D"cite">
<blockquote type=3D"cite">
<pre wrap=3D"">florent/.
list.fluxcms a =C3=A9crit :
=20
</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
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=3D""><!---->is
</pre>
<blockquote type=3D"cite">
<blockquote type=3D"cite">
<blockquote type=3D"cite">
<blockquote type=3D"cite">
<pre wrap=3D"">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>
</blockquote>
</blockquote>
</body>
</html>
--------------010003070001090208050304--
--===============1570612108==
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
--===============1570612108==--