How do you use the fieldinfo tag, with type="input", when you want to
create a node but you just want to fill one or two fields of that new
node?

For example when you want to create a node of type 'news' and you
only want to set 'title' and 'body'. When you use:

   <mm:fieldlist nodetype="news" type="edit">
     <mm:fieldinfo type="guiname" /> <mm:fieldinfo type="input" />
   </mm:fieldlist>

You'll end up with all the editable fields.


I could only think of using an empty node. For example: i created an
empty node with the alias empty_news which i used like this:

   <mm:node number="empty_news">
     <mm:field name="title">
       <mm:fieldinfo type="guiname" /> <mm:fieldinfo type="input" />
     </mm:field>
     <mm:field name="body">
       <mm:fieldinfo type="guiname" /> <mm:fieldinfo type="input" />
     </mm:field>
   </mm:node>

But isn't there a nicer solution?

Andr�
--

------------------------------------------------------------------>><<--
Andr� van Toly
http://www.toly.nl
06-27233562

Reply via email to