Hi folks,
here is my solution to update the new content parts function at structure level for an existing site.
[EDIT] Please see the post above: http://www.phpwcms.de/forum/viewtopic.php?p=67158#67158[/EDIT]
SQL statement for an blank acat_cntpart:O.G. wrote: make a selection of content parts for each structure level, content parts can also be sorted and grouped
Code: Select all
UPDATE `phpwcms_articlecat` SET `acat_cntpart`='-1,0,1,14,-2,2,50,-3,13,19,23,18,12,16,22,89,-4,6,11,52,21,9,51,-5,24,15,4,8,7,3,5,100' WHERE `acat_cntpart`='' OR `acat_cntpart`='0' ;
Code: Select all
------------------------------------------------------------
-1 => [optgroup] text
0 => $BL['be_ctype_plaintext'] , // plain text
1 => $BL['be_ctype_textimage'], // text w/image
14 => $BL['be_ctype_wysywig'], // WYSIWYG HTML
------------------------------------------------------------
-2 => [optgroup] image
2 => $BL['be_ctype_images'], // images
50 => $BL['be_ctype_reference'], // rolover image
------------------------------------------------------------
-3 => [optgroup] form
13 => $BL['be_ctype_search'], // search
19 => $BL['be_ctype_sitemap'], // sitemap
23 => $BL['be_ctype_simpleform'], // e-mail contaktform
18 => $BL['be_ctype_guestbook'], // guestbook
12 => $BL['be_ctype_newsletter'], // newsletter
16 => $BL['be_ctype_ecard'], // e-card
22 => $BL['be_ctype_rssfeed'], // RSS-feed
89 => $BL['be_ctype_poll'], // poll
------------------------------------------------------------
-4 => [optgroup] admin
6 => $BL['be_ctype_html'], // HTML
11 => $BL['be_ctype_code'], // code
52 => $BL['be_ctype_phpvar'], // PHP variables
21 => $BL['be_ctype_pages'], // ext. content
9 => $BL['be_ctype_multimedia'], // multimedia
51 => $BL['be_ctype_map'], // map
------------------------------------------------------------
-5 => [optgroup] special
24 => $BL['be_ctype_alias'] // contentpart alias
15 => $BL['be_ctype_articlemenu'], // article menue
4 => $BL['be_ctype_bulletlist'], // list (table)
8 => $BL['be_ctype_linkarticle'], // article link
7 => $BL['be_ctype_filelist'], // filelist
3 => $BL['be_ctype_link'], // link & e-mail
5 => $BL['be_ctype_linklist'], // linkb list
100 => $BL['be_ctype_ullist'], // list
regards
Knut