Using Dreamweaver (CS5) to Edit Pods

0

Other than Copy/Paste, is there a way to use Dreamweaver CS5 to edit Pods CMS Pages/Templates using the native FTP?

asked Jul 20 '10 at 2:13

jbrickman

13

add comment
enter at least 15 characters

1 Answer

0

Just create a new page as normal in wordpress, assign it a page template using something like this:

<?php /* template name: Pod Page */ ?>

and then go nuts with your pods code. This is my basic code:

<?php   $bit = new Pod('podname');   $bit->findRecords();       $total_bits = $bit->getTotalRows();   ?>
<?php if( $total_bits>0 ) : ?> <?php while ( $bit->fetchRecord() ) : ?>
    <?php
    // set our variables
    $bit_name        = $point->get_field('name');
    $bit_link        = $point->get_field('slug');
    // echo out the data?>

        <?php echo $bit_name; ?> 

<?php endwhile; endif; ?>

If you read the Monday by Noon Tutorials, you'll see that he does all his pods work in a code editor.

If you look at my past posts, you'll see how I even was able to code helpers within a code editor.

answered Jul 21 '10 at 4:21

wesbos

56

Good idea. Thanks! – jbrickman Aug 2 '10 at 8:22
add comment
enter at least 15 characters