| Michael | |
|
I want some menu options to open in the same tab and other menu items to open in a new tab. I found the Target command but it seems to affect ALL menu items. I want to control the target for each menu option.
Posted Mar 28, 2018
Kool
|
|
| David | |
|
Hi Mike,
I think there is a Target property for each menu item, too: https://doc.koolphp.net/Controls/KoolMenu/PHP/KoolMenuItem_Class/index.php#Target It should override the general menu's Target. Please try it and let us know if it solves your problem. Thanks!
Posted Mar 29, 2018
Kool
|
|
| Michael | |
|
The code example was a bit confusing because you can't use that code exactly. After I changed it to match my item it worked.
An example showing all 3 lines would have helped me figure it out faster. $km->Add("root","latlon","LAT/LON Lookup","http://www.qrz.com/atlas"); $item_latlon = $km->GetItem("latlon"); $item_latlon->Target="_blank"; // Open new window when click. $km->Add("root","dxnews","DX News","https://plus.google.com/communities/106942764330406560133"); $item_dxnews = $km->GetItem("dxnews"); $item_dxnews->Target="_blank"; // Open new window when click.
Posted Mar 29, 2018 , edited Mar 29, 2018
Kool
|
|
| Daniel | |
|
গতকাল আমি একটি পোস্ট পড়ছিলাম যেখানে ওয়েব মেনু ডিজাইন নিয়ে সমস্যা আলোচনা করা হচ্ছিল, বিশেষ করে কিছু মেনু আইটেম একই ট্যাবে খোলা দরকার আর কিছু নতুন ট্যাবে—কিন্তু টার্গেট সেটিং সব আইটেমে একসাথে প্রভাব ফেলছিল, যা কাস্টম ন্যাভিগেশন বানানোর সময় সমস্যা তৈরি করে। এই বিষয়টা পড়তে পড়তে আমি Sports পেজে গিয়ে দেখি সেখানে শুধু খেলাধুলা নয়, ওয়েব ডেভেলপমেন্ট সম্পর্কিত প্রশ্নও শেয়ার করা হচ্ছে। এরপর আমার মনে হলো, আধুনিক ওয়েবসাইটে ইউজার এক্সপেরিয়েন্স কাস্টমাইজ করার জন্য মেনু বিহেভিয়ার নিয়ন্ত্রণ করা খুব গুরুত্বপূর্ণ, আর এজন্য সাধারণ target সেটিংয়ের বদলে প্রতিটি আইটেমে আলাদা লিংক অ্যাট্রিবিউট বা জাভাস্ক্রিপ্ট লজিক ব্যবহার করাই বেশি কার্যকর।
Posted Apr 13
Kool
|
|