Ronald Wildenberg <[EMAIL PROTECTED]> wrote:
> > Ronald Wildenberg <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > 
> > > Does anyone have any clues on how to resolve the issue below
> > > or should I file a bug for it? In my opinion, in MMBase 1.7rc2
> > > (I haven't had a chance to test this in 1.7rc3) it is impossible
> > > to remove the 'new' button from related items in a list.
> > > 
> > 
> > Did our suggestions now work. Perhaps the hidecommand option can do
> > something?
> > 
> 
> 
> Also hidecommand has the effect of hiding not only the 'new' button,
> but also the search functionality. I cannot add any items to the list
> now. I think it's a bug.

Probably. But the trouble is that I'm quite certain that I do this reguraly,
so I can hardly imagine that it doesn't work.

E.g. this:

<list role="related" destination="templates" maxoccurs="1">
  <title xml:lang="nl">Sjabloon</title>
  <item>
    <fieldset>
      <field ftype="data" name="name" />
      <field ftype="data" name="url" />
      <field ftype="data" name="mimetype" />
    </fieldset>
  </item>
  
  <command name="search" startnodes="nob_intranet"
nodepath="categories,author,templates" fields="templates.name"
orderby="templates.name" age="-1">
    <prompt xml:lang="nl">Zoek een sjabloon</prompt>
    <search-filter>
      <name xml:lang="nl">Bevat</name>
      <search-fields>templates.name|templates.url</search-fields>
    </search-filter>
  </command>
  
  
  <action type="create">
    <relation role="related" destinationtype="templates">
    </relation>
  </action>
  
</list>

Lets me add one existing template, and I don't have a 'new' button, only a
'search' button. That's what you want isn't it.

Michiel





-- 
Michiel Meeuwissen       |
Mediapark C101 Hilversum | 
+31 (0)35 6772979        |  I hate Internet
nl_NL eo_XX en_US        |
mihxil'                  |
 [] ()                   |

Reply via email to