Plugin Directory

Changeset 1174271


Ignore:
Timestamp:
06/04/2015 09:23:43 AM (11 years ago)
Author:
raeven
Message:

Updated the How to use

File:
1 edited

Legend:

Unmodified
Added
Removed
  • simple-contacts-manager/trunk/views/edit_group.php

    r1170677 r1174271  
    2424                        <div class="inside">
    2525                            <div class="clearfix">
    26                                 <p>There are 2 ways to get your desired specific contact data:</p>
    27 
    28                                 <p><strong>PHP:</strong> you can use the cm_contact function then just supply the key of the contact that you are trying to get:</p>
     26                                <p>To get the values of each field is actually pretty straight forward.  Either you will use the PHP method or the shortcode method.</p>
     27                            </div>
     28                        </div>
     29                    </div>
     30
     31                    <div class="postbox">
     32                        <h3 class="hndle ui-sortable-handle"><span>PHP</span></h3>
     33                        <div class="inside">
     34                            <div class="clearfix">
     35                                <p>You can use the cm_contact function then just supply the key of the contact that you are trying to get:</p>
    2936                                <p>E.g. <br />&lt;?php<br /> echo cm_contact('<?php echo $this->current_group; ?>-general-group_name'); <br />?&gt;</p>
    3037                                <p>Will have an output of:<br /><?php echo $this->current_group_name; ?></p>
    31                                
    32                                 <p><hr /></p>
    33                                
    34                                 <p><strong>SHORTCODE:</strong> you can use the shortcode [cm_contact key=""] then just supply the key or hit the "Get Shortcode" beside the contact</p>
     38                            </div>
     39                        </div>
     40                    </div>
     41
     42                    <div class="postbox">
     43                        <h3 class="hndle ui-sortable-handle"><span>SHORTCODE</span></h3>
     44                        <div class="inside">
     45                            <div class="clearfix">                             
     46                                <p>You can use the shortcode [cm_contact key=""] then just supply the key or hit the "Get Shortcode" beside the contact</p>
    3547                                <p>E.g. <br />[cm_contact key="<?php echo $this->current_group; ?>-general-group_name"]</p>
    3648                                <p>Will have an output of:<br /><?php echo $this->current_group_name; ?></p>
    37                                
    38                                 <p><hr /></p>
    39 
    40                                 <p><strong>SPECIAL KEYS:</strong></p>
     49                            </div>
     50                        </div>
     51                    </div>
     52
     53                    <div class="postbox">
     54                        <h3 class="hndle ui-sortable-handle"><span>SPECIAL KEYS</span></h3>
     55                        <div class="inside">
     56                            <div class="clearfix">
    4157                                <p>The keys below will return all contacts in the section in an array</p>
    4258                                <p>
Note: See TracChangeset for help on using the changeset viewer.