I'm trying to show a TV on all parent pages of id 30 and 31.
Other pages the TV needs to be hidden.
The below doesn't work. Whats wrong?
I think this part isn't correct:
|| $content['parent'] != 31)
because this works:
if($content['parent'] != 30) {
Doesn't work:
mm_createTab('Extra', 'extra', '', '', '', '100%');
mm_moveFieldsToTab('e-image', 'extra');
mm_moveFieldsToTab('youtube', 'extra');
if($content['parent'] != 30 || $content['parent'] != 31) {
mm_hidefields('e-image');
mm_hidefields('youtube');
}
This works??!!! but I need it other way arround (visible on the parent ids)
if($content['parent'] == 30 || $content['parent'] == 31) {
[ed. note: fourroses666 last edited this post 11 years, 6 months ago.]