Remove certain content parts from the list?

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Remove certain content parts from the list?

Post by Peekay »

For example, if I don't want clients to be able to add 'guestbook/comment' content part, is there a way I can remove this from the content-part menu?

I appreciate this will involve hacking the code. :?:

-- EDIT --

In PHPWCMS 1.25 to show only selected content parts in menus edit:

include/inc_lib/article.contenttype.inc.php

and comment out the CP entries as required. For example, to remove the guestbook:

Code: Select all

// 18 => $BL['be_ctype_guestbook'],
In 1.28 + you can select the CPs to be used per structure level (thx Oliver for pointing that out to me!). You can still however edit the PHP file as described above if you want to restrict admins from using those CPs.

Although they are cool, it's costing us a lot of time providing technical support for some of the CPs, so we want to offer a streamlined version. :)
Last edited by Peekay on Fri 4. May 2007, 00:35, edited 3 times in total.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Please tell us the version of your phpwcms.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post by Peekay »

thx flip-flop
solved it. :)
User avatar
Oliver Georgi
Site Admin
Posts: 9951
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

it's more easy - you can define which cp should be available for each structure level.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post by Peekay »

Oliver Georgi wrote:it's more easy - you can define which cp should be available for each structure level.

Oliver
I am SO stupid! Was trying to hack a site running 1.25. :oops:
Many thx Oliver. (original post edited)
User avatar
Oliver Georgi
Site Admin
Posts: 9951
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

:oops: sorry (I should read all lines more concentrated)...

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Post Reply