Created
April 24, 2015 08:26
-
-
Save atsu666/9ba9635fa8b096f6bda3 to your computer and use it in GitHub Desktop.
a-blog cms 軽い変換カスタマイズ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- blog custom field --> | |
| <h2>customGroup</h2> | |
| <table class="js-fieldgroup-sortable"> | |
| <tr> | |
| <td><input type="button" class="item-insert acms-admin-btn-admin" value="追加" /></td> | |
| <th>変換前</th> | |
| <th>変換後</th> | |
| <td>削除</td> | |
| </tr> | |
| <!-- BEGIN customGroup:loop --> | |
| <tr class="sortable-item"> | |
| <td class="item-handle"><i class="acms-admin-icon-sort"></i></td> | |
| <td> | |
| <input type="text" name="source[{i}]" value="{source}" /> | |
| </td> | |
| <td> | |
| <input type="text" name="dest[{i}]" value="{dest}" /> | |
| </td> | |
| <td><input type="button" class="item-delete acms-admin-btn-admin acms-admin-btn-admin-danger" value="削除" /></td> | |
| </tr> | |
| <!-- END customGroup:loop --> | |
| <tr class="sortable-item item-template"> | |
| <td class="item-handle"><i class="acms-admin-icon-sort"></i></td> | |
| <td> | |
| <input type="text" name="source[]" value="" /> | |
| </td> | |
| <td> | |
| <input type="text" name="dest[]" value="" /> | |
| </td> | |
| <td><input type="button" class="item-delete acms-admin-btn-admin acms-admin-btn-admin-danger" value="削除" /></td> | |
| </tr> | |
| </table> | |
| <input type="hidden" name="@customGroup[]" value="source" /> | |
| <input type="hidden" name="field[]" value="source" /> | |
| <input type="hidden" name="@customGroup[]" value="dest" /> | |
| <input type="hidden" name="field[]" value="dest" /> | |
| <input type="hidden" name="field[]" value="@customGroup" /> | |
| <!-- template --> | |
| <!-- BEGIN_MODULE Blog_Field --> | |
| <!-- BEGIN_MODULE Field_Search --> | |
| <!-- BEGIN_IF [dummy1/eq/dummy2] --> | |
| <!-- BEGIN\ customGroup:loop --> | |
| <!-- ELSE_IF [{station}/eq/\{source\}] --> | |
| \{dest\} | |
| <!-- END\ customGroup:loop --> | |
| <!-- END_IF --> | |
| <!-- END_MODULE Field_Search --> | |
| <!-- END_MODULE Blog_Field --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment