Added preview button in page edit form
authorMarcel Werk <burntime@woltlab.com>
Mon, 18 Apr 2016 13:53:10 +0000 (15:53 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 18 Apr 2016 13:53:34 +0000 (15:53 +0200)
wcfsetup/install/files/acp/templates/pageAdd.tpl

index d10e09554b685414b3e8224df9133813ea0ffc7a..7aa92a18093868201c3ccf84bd59ac6586c923d4 100644 (file)
@@ -31,6 +31,9 @@
        
        <nav class="contentHeaderNavigation">
                <ul>
+                       {if !$page->requireObjectID}
+                               <li><a href="{$page->getLink()}" class="button"><span class="icon icon16 fa-search"></span> <span>{lang}wcf.acp.page.button.viewPage{/lang}</span></a></li>
+                       {/if}
                        <li><a href="{link controller='PageList'}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.menu.link.cms.page.list{/lang}</span></a></li>
                        
                        {event name='contentHeaderNavigation'}