Changeset 1174271
- Timestamp:
- 06/04/2015 09:23:43 AM (11 years ago)
- File:
-
- 1 edited
-
simple-contacts-manager/trunk/views/edit_group.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simple-contacts-manager/trunk/views/edit_group.php
r1170677 r1174271 24 24 <div class="inside"> 25 25 <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> 29 36 <p>E.g. <br /><?php<br /> echo cm_contact('<?php echo $this->current_group; ?>-general-group_name'); <br />?></p> 30 37 <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> 35 47 <p>E.g. <br />[cm_contact key="<?php echo $this->current_group; ?>-general-group_name"]</p> 36 48 <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"> 41 57 <p>The keys below will return all contacts in the section in an array</p> 42 58 <p>
Note: See TracChangeset
for help on using the changeset viewer.