こんにちは。
データベースコンテンツを表示させるためにリピーターを使用するかと思いますが、データセットと連携したリピーター内に設置したテキストにデータセット内のURLを紐付ける機能は今の所用意されていません。
このような、HTMLで言えばaタグを使用した使い方は一般的になっているにもかかわらず、Wixではデータセットと紐付けてこれをGUI上で設定できないのは勿体無いなと実装のたびに思っていました。
最近はVeloを使って、リピーターに置いたテキストがクリックされたときにデータベース(コレクション)の同じ行に保存しているURLへ飛ぶというのをよく使うようになったので共有します。
import wixLocation from 'wix-location';
$w.onReady(function () {
//リピーターに設置したテキストがクリックされたとき、
$w('#textTitle').onClick( (event) => {
//リピーター内の要素にアクセス
let $item = $w.at(event.context);
//データセットのURLを取得
let url = $item('#dataset1').getCurrentItem().url
//URLへ移動
wixLocation.to(url);
});
*3/28コードの一部に誤りが有りましたので修正しました。
🙅♂️ $w('#dataset1').getCurrentItem().url → 🙆♂️ $item('#dataset1').getCurrentItem().url
上記の方法では、リピーター内のクリックしたら実行したいテキストのIDを "textTitle"、データセットのIDを "dataset1" 、データベース(コレクション)内に保存しているURLのフィールドキーは " url "としています。
この実行文一通りを何回も使う場合、フロントエンドにjsファイルを作って関数として定義して使用しています。
これを動的ページのアイテムページに飛ばすことによく使っていますが、動的ページ側でも設定が必要でちょっと長くなってしまうので、需要があればまた書きたいなと思います!🍵
Thank you for sharing this practical solution! If you're as intrigued as I am about solutions blog, I highly recommend checking out my latest blog post. In today’s digital landscape, where every click could be a potential security breach, choosing the right antivirus protection isn’t just about software—it’s about peace of mind and ensuring your data, devices, and personal information are shielded from evolving cyber threats. Whether you're looking for an Avast antivirus subscription, considering your Kaspersky renewal, or comparing the Norton antivirus software price, it’s essential to understand not just what you're buying, but why it matters in the bigger picture of digital safety. Cybersecurity is no longer reserved for tech professionals—it’s now a daily concern for every remote worker, online shopper, small business owner, and student attending virtual classes. Imagine logging into your online banking only to realize your credentials have been compromised or losing years of photos and files to ransomware. These aren’t hypothetical scenarios; they’re everyday realities for millions, and they underscore why antivirus software isn’t optional—it’s foundational. What makes Avast particularly attractive is its lightweight performance coupled with smart threat-detection tools that adapt in real-time, giving users a set-it-and-forget-it solution that doesn’t slow down devices. On the other hand, users loyal to Kaspersky often highlight its superior malware detection engine and minimal false positives—critical for professionals who can't afford system interruptions. Kaspersky’s renewal process is smooth, especially for users who prefer continuity without manually reinstalling or configuring their protection. Then there’s Norton, a powerhouse brand in the cybersecurity space with decades of trust built on consistent performance, parental controls, VPN features, and identity theft protection—making it more than just antivirus software; it’s a digital lifestyle manager. When weighing the Norton antivirus software price, you're not just evaluating cost—you’re weighing protection for your financial data, your children’s online activity, your webcam access, and more. As more people transition into hybrid work models and students spend hours online, the customer journey around antivirus decisions has evolved. It’s not just about the brand anymore—it’s about who offers intuitive dashboards, easy installations, multi-device support, and responsive customer service. Users want to feel empowered, not overwhelmed. That’s why storytelling becomes so crucial. A 42-year-old entrepreneur once shared how Avast blocked a phishing attack targeting his PayPal account just minutes after he opened a suspicious email—proving that real-time protection isn’t just a marketing phrase; it’s a lifeline. Another user, a mother of two using Kaspersky, explained how the software’s parental controls helped her monitor screen time and web content effortlessly, freeing her to focus on parenting instead of constantly checking devices. Similarly, a digital nomad who travels extensively said the decision to invest in Norton was influenced by its global server coverage through built-in VPN, giving him safe internet access from Bali to Berlin. But beyond anecdotal stories, the data backs it all up. According to AV-Comparatives, a leading independent antivirus testing lab, all three software solutions—Avast, Kaspersky, and Norton—score consistently high in detection rates, usability, and performance. Still, what separates them are their ecosystem benefits: Avast offers strong free tools and privacy features; Kaspersky remains unbeatable for budget-conscious users who still demand top-tier protection; and Norton delivers a feature-packed suite that caters to families, remote workers, and high-risk users alike. And let's not forget the importance of keeping software up to date. Outdated antivirus programs can miss emerging threats, leaving users vulnerable to zero-day attacks, spyware, and sophisticated phishing schemes. That’s why ensuring timely renewals, like your Kaspersky renewal, or seamless subscription upgrades, such as moving to a full Avast antivirus subscription, isn’t just a best practice—it’s essential. It's also vital to mention that pricing models vary, and while some users chase the cheapest solution, savvy digital consumers look beyond price to consider long-term ROI: what kind of customer support is included? Does the plan cover multiple devices? Are mobile apps intuitive and effective? This brings us back to Norton, where understanding the Norton antivirus software price involves recognizing bundled value—from 24/7 support to dark web monitoring. Today’s users want content that doesn’t just inform—they want content that helps them decide, reduces confusion, and builds confidence. That’s why EEAT—Expertise, Experience, Authoritativeness, and Trustworthiness—isn’t just a buzzword in content marketing; it’s the backbone of consumer trust. An informed user is an empowered user, and part of that trust comes from honest comparisons, transparent pricing, and clear links like those provided above, which allow users to act quickly and securely. Whether you're a small business trying to protect sensitive client data or an individual tired of pop-ups and vulnerabilities, the choice you make today shapes your online experience tomorrow. Always verify the authenticity of download sources, double-check auto-renewal policies, and regularly run full-system scans regardless of which product you choose. And as AI-driven threats, phishing scams, and data leaks become more sophisticated, the question isn’t “Should I get antivirus protection?” but rather “Which solution aligns best with my digital life?” Because at the end of the day, cybersecurity isn’t just software—it’s self-care for your digital world.