cancel
Showing results for 
Search instead for 
Did you mean: 

Limiting content types in a specific folder

ganm
Champ in-the-making
Champ in-the-making
Hi,

I have a custom content type containing only metadata that inherits from base (as shown in Jeff Potts tutorial). Now I need a folder, that only can contain this custom content type. Further, there has to be no 'Add content' button, but only the 'Create Content' button. How can I implement this?

Regards
ganm
12 REPLIES 12

gandra
Champ in-the-making
Champ in-the-making
thank you Wesse!!!

As soon as I try this I will post fedback here to share it

borja
Champ in-the-making
Champ in-the-making
Hello,
i´ve trying,. as i see i image that we overload this method. isn´t it?

wesse
Champ in-the-making
Champ in-the-making
Yes Overload it but use the parent for the big work and then just do some extra filtering/adds before the list is returned.

so in the faces-config-custom.xml you have to do

<managed-bean>
      <managed-bean-name>CreateContentWizard</managed-bean-name>
      <managed-bean-class><You new CreateContentWizard class name></managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      <managed-property>
         <property-name>nodeService</property-name>
         <value>#{NodeService}</value>
      </managed-property> ….