{"id":1284,"date":"2011-03-07T20:15:34","date_gmt":"2011-03-07T20:15:34","guid":{"rendered":"http:\/\/www.erbugkaya.com\/?p=1284"},"modified":"2014-01-16T22:52:27","modified_gmt":"2014-01-16T22:52:27","slug":"sharepoint-2010dan-arama-kutusu-tasarimi","status":"publish","type":"post","link":"http:\/\/erbugkaya.com\/?p=1284","title":{"rendered":"SharePoint 2010 Arama Kutusu Tasar\u0131m\u0131"},"content":{"rendered":"<p>Merhaba,<\/p>\n<p>Bu yaz\u0131mda SharePoint 2010 arama kutusunun ve butonunun tasar\u0131m\u0131n\u0131 de\u011fi\u015ftirmeyi<br \/>\nanlataca\u011f\u0131m.<\/p>\n<p>SP 2010 ilk kuruldu\u011funda arama kutusunun ve butonunun standart g\u00f6r\u00fcn\u00fcm\u00fc alttaki<br \/>\ngibidir.<\/p>\n<p><a href=\"http:\/\/www.erbugkaya.com\/wp-content\/uploads\/2011\/04\/012.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1285\" title=\"01\" alt=\"\" src=\"http:\/\/www.erbugkaya.com\/wp-content\/uploads\/2011\/04\/012.jpg\" width=\"221\" height=\"22\" \/><\/a><\/p>\n<p><!--more--><\/p>\n<p>Amac\u0131m\u0131z bu g\u00f6r\u00fcn\u00fcm\u00fc de\u011fi\u015ftirirken SP 2010 arama \u00f6zelliklerini korumakt\u0131r. Neden<br \/>\nbir arama kutusu tasar\u0131m\u0131 de\u011fi\u015ftirirken SP&#8217;nin bizim i\u00e7in sundu\u011fu \u00f6zelliklerden<br \/>\nvaz ge\u00e7elim. Arama kutusunu ve butonunu getiren kod sat\u0131r\u0131 alttaki gibidir.<\/p>\n<div style=\"padding: 10px; font-weight: bold; font-style: italic; color: #cc3300;\">\n<p class=\"MsoNormal\">&lt;SharePoint:DelegateControl runat=&#8221;server&#8221;<br \/>\nControlId=&#8221;SmallSearchInputBox&#8221; Version=&#8221;4&#8243;\/&gt;<\/p>\n<\/div>\n<p>Bu kodu masterpage&#8217;de (tabi masterpage olmas\u0131n\u0131 \u00f6ng\u00f6r\u00fcyorsan\u0131z) tasar\u0131mda<br \/>\nistedi\u011finiz yere koyabilirsiniz. Arama kutusu oradan \u00e7al\u0131\u015facakt\u0131r. Peki<br \/>\ntasar\u0131m\u0131? Yapman\u0131z gereken ilk ad\u0131m <strong><em>.s4-search input.ms-sbplain<\/em><\/strong><br \/>\nclass\u0131n\u0131 de\u011fi\u015ftirmektir. Benim \u00f6rne\u011fim altta. corev4.css&#8217;deki baz\u0131 \u00f6zellikleri<br \/>\nezmek i\u00e7in <span class=\"auto-style1\"><strong>!important<\/strong><\/span><br \/>\nkullanmak durumunda kalabilece\u011finizi unutmay\u0131n.<\/p>\n<div style=\"padding: 10px; font-weight: bold; font-style: italic; color: #cc3300;\">.s4-search input.ms-sbplain {<br \/>\nbackground-image: url(&#8216;..\/..\/SiteCollectionImages\/Genel\/SearchTextBox.png&#8217;) !important<br \/>\nbackground-repeat:no-repeat;<br \/>\nfont-family: &#8220;Trebuchet MS&#8221;, &#8220;Lucida Sans Unicode&#8221;, &#8220;Lucida Grande&#8221;, &#8220;Lucida Sans&#8221;, Arial, sans-serif;<br \/>\ncolor:#5e5e5e;<br \/>\nfont-size:11px;<br \/>\nborder:0px !important;<br \/>\nfloat:left;<br \/>\nwidth:141px !important;<br \/>\nheight:20px;<br \/>\nmargin-left:25px;<br \/>\npadding:3px 0 0 5px;<br \/>\nbackground:none;<br \/>\nborder:1px solid #E3E3E3<br \/>\n}<\/div>\n<p>Kutu de\u011fi\u015fti s\u0131ra butonda.<\/p>\n<p><a href=\"http:\/\/www.erbugkaya.com\/wp-content\/uploads\/2011\/04\/022.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1286\" title=\"02\" alt=\"\" src=\"http:\/\/www.erbugkaya.com\/wp-content\/uploads\/2011\/04\/022.jpg\" width=\"187\" height=\"37\" \/><\/a><\/p>\n<p>\u015eimdi <strong>.ms-sbgo<\/strong> class\u0131yla oynayal\u0131m. Benim \u00f6rne\u011fim altta.<\/p>\n<div style=\"padding: 10px; font-weight: bold; font-style: italic; color: #cc3300;\">.ms-sbgo {<br \/>\nbackground-image:<br \/>\nurl(&#8216;..\/..\/SiteCollectionImages\/Genel\/SearchButton.png&#8217;)!important;<br \/>\nbackground-repeat:no-repeat;<br \/>\ncursor:hand;<br \/>\nborder:0px;<br \/>\nwidth:36px;<br \/>\nheight:23px<br \/>\nfloat:left;<br \/>\nmargin-left:5px;<br \/>\nbackground:none;<br \/>\nborder-color:none !important;<br \/>\nborder-style:none !important;<br \/>\nborder-width:none !important;<br \/>\npadding:0 !important;<br \/>\n}<\/div>\n<p>\u0130\u015fte sonu\u00e7. Neredeyse<br \/>\nsonuca ula\u015fmak \u00fczereyiz ama ufak bir sorunumuz var. Buttonumuzun tasar\u0131m\u0131 altta<br \/>\ngeldi. Ama aramay\u0131 tetikleyen esas obje o de\u011fil. Onun \u00fcst\u00fcndeki, \u015fu anda<br \/>\ntasar\u0131m\u0131 bozan, imaj. O imaj\u0131 hem kaybetmemeliyiz hem de g\u00f6z\u00fcm\u00fcz\u00fcn \u00f6n\u00fcnden<br \/>\nkald\u0131rmal\u0131y\u0131z.<\/p>\n<p><a href=\"http:\/\/www.erbugkaya.com\/wp-content\/uploads\/2011\/04\/031.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1287\" title=\"03\" alt=\"\" src=\"http:\/\/www.erbugkaya.com\/wp-content\/uploads\/2011\/04\/031.jpg\" width=\"197\" height=\"31\" \/><\/a><\/p>\n<p>\u0130maj <strong>.s4-search .srch-gosearchimg<\/strong> class\u0131na ba\u011fl\u0131<br \/>\n<em>(background:url(&#8220;\/_layouts\/images\/bgximg.png&#8221;) repeat-x scroll 0 -511px<br \/>\n#FFFFFF;)<\/em> ama sistemin alt\u0131nda. K\u0131sacas\u0131 ona dokunamay\u0131z. Bunun yan\u0131nda bir CSS<br \/>\nhilesi yapamayaca\u011f\u0131z demek de\u011fil. Butonu g\u00f6r\u00fcnmez yap\u0131p kendi tasar\u0131m\u0131zdaki<br \/>\nyalanc\u0131 butonunun \u00fcst\u00fcn\u00fc kaplayacak \u015fekilde boyutlar\u0131n\u0131 ayarlayal\u0131m. B\u00f6ylece o<br \/>\nimaj gizli gizli \u00e7al\u0131\u015fs\u0131n \u00f6vg\u00fcleri bizim butonumuz als\u0131n. (Milli Vanilli buton:))<\/p>\n<div style=\"padding: 10px; font-weight: bold; font-style: italic; color: #cc3300;\">.s4-search .srch-gosearchimg {<br \/>\nbackground:url(&#8220;\/_layouts\/images\/bgximg.png&#8221;) repeat-x scroll 0 -511px #FFFFFF;<br \/>\nborder-color:#E3E3E3 #E3E3E3 #E3E3E3 -moz-use-text-color !important;<br \/>\nborder-style:solid solid solid none !important;<br \/>\nborder-width:1px 1px 1px medium !important;<br \/>\nwidth:33px;<br \/>\nheight:20px;<br \/>\npadding:0 !important;<br \/>\nvisibility:hidden;<br \/>\noutline:none;<br \/>\n}<\/div>\n<p>\u0130\u015fte sonu\u00e7.<\/p>\n<p><a href=\"http:\/\/www.erbugkaya.com\/wp-content\/uploads\/2011\/04\/041.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1288\" title=\"04\" alt=\"\" src=\"http:\/\/www.erbugkaya.com\/wp-content\/uploads\/2011\/04\/041.jpg\" width=\"197\" height=\"31\" \/><\/a><\/p>\n<p>Ve gayet g\u00fczel \u00e7al\u0131\u015f\u0131yor.<\/p>\n<p><a href=\"http:\/\/www.erbugkaya.com\/wp-content\/uploads\/2011\/04\/051.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1289\" title=\"05\" alt=\"\" src=\"http:\/\/www.erbugkaya.com\/wp-content\/uploads\/2011\/04\/051-300x224.jpg\" width=\"300\" height=\"224\" srcset=\"http:\/\/www.erbugkaya.com\/wp-content\/uploads\/2011\/04\/051-300x224.jpg 300w, http:\/\/www.erbugkaya.com\/wp-content\/uploads\/2011\/04\/051.jpg 746w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u0130yi \u00e7al\u0131\u015fmalar<\/p>\n<p>Te\u015fekk\u00fcrler.<\/p>\n<p><a href=\"mailto:erbug.kaya@cevizbilgi.com.tr\">Erbu\u011f Kaya<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Merhaba, Bu yaz\u0131mda SharePoint 2010 arama kutusunun ve butonunun tasar\u0131m\u0131n\u0131 de\u011fi\u015ftirmeyi anlataca\u011f\u0131m. SP 2010 ilk kuruldu\u011funda arama kutusunun ve butonunun standart g\u00f6r\u00fcn\u00fcm\u00fc alttaki gibidir.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[58],"class_list":["post-1284","post","type-post","status-publish","format-standard","hentry","category-teknik-yazi","tag-sharepoint-2010"],"_links":{"self":[{"href":"http:\/\/erbugkaya.com\/index.php?rest_route=\/wp\/v2\/posts\/1284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/erbugkaya.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/erbugkaya.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/erbugkaya.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/erbugkaya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1284"}],"version-history":[{"count":6,"href":"http:\/\/erbugkaya.com\/index.php?rest_route=\/wp\/v2\/posts\/1284\/revisions"}],"predecessor-version":[{"id":2335,"href":"http:\/\/erbugkaya.com\/index.php?rest_route=\/wp\/v2\/posts\/1284\/revisions\/2335"}],"wp:attachment":[{"href":"http:\/\/erbugkaya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/erbugkaya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1284"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/erbugkaya.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}