Added customized search input
authorMarcel Werk <burntime@woltlab.com>
Sun, 10 Feb 2013 02:57:14 +0000 (03:57 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sun, 10 Feb 2013 02:57:14 +0000 (03:57 +0100)
language/de.xml
templateListener.xml
templates/__searchAreaConversationSettings.tpl [new file with mode: 0644]

index 8093d788e6325f923001092117ec29478ffad652..588f10b0afa3790eac693c5b0b3b1ea40f881caa 100644 (file)
@@ -58,6 +58,7 @@
                <item name="wcf.conversation.ownPosts"><![CDATA[Diese Konversation enthält Nachrichten von Ihnen.]]></item>
                <item name="wcf.conversation.gotoFirstNewPost"><![CDATA[Zur ersten neuen Nachricht springen]]></item>
                <item name="wcf.conversation.gotoLastPost"><![CDATA[Zur letzten Nachricht springen]]></item>
+               <item name="wcf.conversation.searchConversations"><![CDATA[Konversationen durchsuchen]]></item>
        </category>
        
        <category name="wcf.conversation.edit">
index 257041a3a41050cf560c081fe280ebe0d4584c9e..4764803f9f03d753bd1723a866e9b6e3e8406c3d 100644 (file)
                        <eventname>buttons</eventname>
                        <templatecode><![CDATA[{include file='__userStartConversation'}]]></templatecode>
                </templatelistener>
+               
+               <templatelistener name="searchAreaConversationSettings">
+                       <environment>user</environment>
+                       <templatename>searchArea</templatename>
+                       <eventname>settings</eventname>
+                       <templatecode><![CDATA[{include file='__searchAreaConversationSettings'}]]></templatecode>
+               </templatelistener>
        </import>
 </data>
\ No newline at end of file
diff --git a/templates/__searchAreaConversationSettings.tpl b/templates/__searchAreaConversationSettings.tpl
new file mode 100644 (file)
index 0000000..32433a7
--- /dev/null
@@ -0,0 +1,4 @@
+{if $__searchAreaInitialized|empty && $templateName|substr:0:12 == 'conversation'}
+       {capture assign='__searchInputPlaceholder'}{lang}wcf.conversation.searchConversations{/lang}{/capture}
+       {capture assign='__searchHiddenInputFields'}<input type="hidden" name="types[]" value="com.woltlab.wcf.conversation.message" />{/capture}
+{/if}
\ No newline at end of file