{"id":87324,"date":"2018-08-15T21:30:51","date_gmt":"2018-08-15T21:30:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/dealers-and-branches\/"},"modified":"2019-04-01T08:13:02","modified_gmt":"2019-04-01T08:13:02","slug":"dealers-and-branches","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/dealers-and-branches\/","author":16217337,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2018.1.0","stable_tag":"trunk","tested":"5.1.22","requires":"4.6","requires_php":"5.2.4","requires_plugins":"","header_name":"dealers-and-branches","header_author":"Caglar ORHAN","header_description":"Dealing with dealers and branches list. CRUD etc.","assets_banners_color":"","last_updated":"2019-04-01 08:13:02","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.co-scripts.com","header_plugin_uri":"https:\/\/developer.wordpress.org\/plugins\/dealers-and-brunches\/","header_author_uri":"https:\/\/www.co-scripts.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1686,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["installation","faq","changelog","description"],"tags":[],"upgrade_notice":{"":"<ul>\n<li>WP v5.1.1 compatibility tested<\/li>\n<\/ul>"},"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2","0.3"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"screenshot-1.png"}},"plugin_section":[],"plugin_tags":[160632,160630,160631,160633],"plugin_category":[],"plugin_contributors":[160634],"plugin_business_model":[],"class_list":["post-87324","plugin","type-plugin","status-publish","hentry","plugin_tags-braches-list","plugin_tags-dealers-and-branches","plugin_tags-dealers-list","plugin_tags-list-of-dealers","plugin_contributors-caglaror","plugin_committers-caglaror"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/dealers-and-branches.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=installation-->\n<p>How to install Dealers and Branches Plugin and make it work.<\/p>\n\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/dealers-and-branches<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Find \"DnB\" menu option in the main WP Admin menu at left side on the screen.<\/li>\n<li>Fill the form to add a dealer or a branch to the database. Or you can use the plugin for any purpose about any list which includes hierarchical realtions between its items.<\/li>\n<li>Every new list item will be shown on the users screen (client side) as a table row on the top of the list.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Who needs such a plugin like this?<\/dt>\n<dd><p>You may need if you ...\n* If you have a business which needs to list your branches on your WP web page.\n* If you are a wholesaler, and you want to list retailers at the country on your web WP web pages.\n* Or if you want to list any items which has hierarchical relations between them (parent-child like hierarchy).<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n\n<ul>\n<li>A very first version.<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Minor debuggings.<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>WP v5.1.1 compatibility tested<\/li>\n<\/ul>\n\n<!--section=description-->\n<p>Dealers and Branches (DnB) coded for whom may need a list of own dealers or branches of any kind of bussiness.<\/p>\n\n<h3>How to create shortcode?<\/h3>\n\n<p>Parts of ShortCode\nName: dnb_list (static name, not changable)\ntitle: any title you want\ntableCaptions: table captions (columns) and other properties of columns<\/p>\n\n<h3>Sample ShortCode<\/h3>\n\n<pre><code>[\n    dnb_list title=\"Title of Table\"\n    tableCaptions=\"\n                {'thWidthPercentage':20,'arrayNumbersOfFields':'1','columnCaption':'Caption of Column','isSortable':true,'sortTypeDefaultIs_Asc':true},\n                {'thWidthPercentage':20,'arrayNumbersOfFields':'1','columnCaption':'Caption of Column','isSortable':true,'sortTypeDefaultIs_Asc':false},\n                {'thWidthPercentage':10,'arrayNumbersOfFields':'2','columnCaption':'Caption of Column','isSortable':true,'sortTypeDefaultIs_Asc':true},\n                {'thWidthPercentage':50,'arrayNumbersOfFields':'9,1,3','columnCaption':'Caption of Column','isSortable':true,'sortTypeDefaultIs_Asc':true}\n                  \"\n    jsVars=\"{'recordsPerpage':5, 'pagingPosition':'A'}\" searchTitle=\"Search\" searchOnlyIn=\"1,2,3,9\" filteringTitle=\"Filtered By:\" filteringArrayNumberOfField=10\n]&lt;h3&gt;Elements of a ShortCode&lt;\/h3&gt;dnb_list: name of short code and you can not change it\n<\/code><\/pre>\n\n<p>tableCaptions : every parameters and arguments setting in this element. Every object in tableCaptions are represents a column.\nInside the column object you can adjust\n* <code>thWidthPercentage<\/code> (width of solumn),\n* <code>arrayNumbersOfFields<\/code> (choose the related database tables column from the list of <code>$arrayOfFields<\/code> section below,\n* <code>columnCaption<\/code> (caption of the column of table,\n* <code>isSortable<\/code> (if column captions click sorts fields ascendens or descendens),\n* <code>sortTypeDefaultIs_Asc<\/code> (if first click sorting asc or desc, true and default is ASC)<\/p>\n\n<p>jsVars: At this object properties are adjusting some javascript variables by default.\n* <code>recordsPerpage<\/code> (count of records per page)\n* <code>pagingPosition<\/code> (adjusting the position of paging navigation buttons)<\/p>\n\n<p>searchOnlyIn: Choosing searchable fields numbers from the list of <code>$arrayOfFields<\/code> section below, this is comma separated list.<\/p>\n\n<p>filteringTitle: Tell user to use filter on which field of data.<\/p>\n\n<p>filteringArrayNumberOfField: Choose a field to make a select filter from the list of <code>$arrayOfFields<\/code> section below.<\/p>\n\n<h3>Array Numbers of Fields Array<\/h3>\n\n<p>List of fields from database table. Read only list can be use in every corner of shortcode.\n$arrayOfFields=array(\n    0=&gt;'dnb.id',\n    1=&gt;'dnb.dnb_name',\n    2=&gt;'dnb.dnb_parent_id',\n    3=&gt;'dnb.dnb_type',\n    4=&gt;'dnb.dnb_phone',\n    5=&gt;'dnb.dnb_fax',\n    7=&gt;'dnb.dnb_email',\n    8=&gt;'dnb.dnb_webpage_url',\n    9=&gt;'dnb.dnb_street_name',\n    10=&gt;'dnb.dnb_city_name',\n    11=&gt;'dnb.dnb_county_name',\n    12=&gt;'dnb.dnb_district_name',\n    13=&gt;'dnb.dnb_province_name',\n    14=&gt;'dnb.dnb_state_name',\n    15=&gt;'dnb.dnb_apartment_name',\n    16=&gt;'dnb.dnb_country_name',\n    17=&gt;'dnb.dnb_postal_code',\n    18=&gt;'dnb.dnb_door_no',\n    19=&gt;'dnb.dnb_note',\n    20=&gt;'dnb2.dnb_name'\n);<\/p>","raw_excerpt":"Dealers and Branches (DnB) coded for whom may need a list of own dealers or branches of any kind of bussiness.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/87324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=87324"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/caglaror"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=87324"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=87324"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=87324"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=87324"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=87324"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=87324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}