How to Print Array CCK in PHP

The Content Creation Kity (CCK) provides Drupal CMS designers with support for rendering PHP content on a website. You must edit the PHP for your Drupal website to display and render a field that is not a part of the system's fields. To print an array for a CCK module, you must use the "print" and "render" function in your PHP code.

Instructions

    • 1

      Right-click the PHP page you want to edit. Click "Open With" and select your preferred PHP editor.

    • 2

      Locate the position on the page at which you want to display your array content. You can place CCK array content anywhere within the body tags.

    • 3

      Add the following code to the PHP location:

      <?php print render($content['array']); ?>

      Replace "array" with your own field array name.

Related Searches:

References

Comments

Related Ads

Featured