Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
Added support to core_urltitle in the generic edit form. Refs #9
Browse files Browse the repository at this point in the history
  • Loading branch information
matheo committed Mar 3, 2012
1 parent 13acfea commit 8e08145
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/Clip/lib/Clip/Util/Plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ public static function getCoreFieldData($name, $field = null)

switch ($name)
{
case 'core_urltitle':
$corefield['fieldplugin'] = 'String';
break;

case 'core_language':
$corefield['fieldplugin'] = 'Language';
break;
Expand Down
7 changes: 7 additions & 0 deletions src/modules/Clip/templates/generic_edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
<fieldset>
<legend>{gt text='Publication options'}</legend>

{clip_accessblock tid=$pubtype.tid context='editor'}
<div class="z-formrow">
{clip_form_label for='core_urltitle' __text='Permalink title'}
{clip_form_plugin field='core_urltitle' mandatory=false}
</div>
{/clip_accessblock}

<div class="z-formrow">
{clip_form_label for='core_language' __text='Language'}
{clip_form_plugin field='core_language' mandatory=false}
Expand Down

0 comments on commit 8e08145

Please sign in to comment.