CMS Development

ProGrahamer
投稿者

Design Tools > Modules > HUBL "Link" & "URL" Fields

解決

I have created the following code with the href pointing to the variable. The below works with both a "URL" Hubl form and a "LINK " Hubl form. However, when applied to a page and published, they both will open a new tab in the browser. I have the target set to "_blank"

Any and all help is greatly appreciated! Thanks ロボットとてもハッピー

{% set href = module.url_field.url.href %}


<div class="btn_btr_blue">
<a href="{{ href }}" target="_blank">

<p> {{ module.simpletext_label }} </p>
</a>
</div>
0 いいね!
1件の承認済みベストアンサー
解決策
Anonymous
適用対象外

Design Tools > Modules > HUBL "Link" & "URL" Fields

解決

Assuming you want it to open in the same window, have you tried this?

target="_self"

 rather than 

target="_blank"

--
Bryan Schneidewind
Manager of Web Development
Weidert Group 

元の投稿で解決策を見る

2件の返信
ProGrahamer
投稿者

Design Tools > Modules > HUBL "Link" & "URL" Fields

解決

Well that's embarrasing. Forrest-for-the-trees is the only excuse I can give myself for this dumb question. Thank you Bryan!

解決策
Anonymous
適用対象外

Design Tools > Modules > HUBL "Link" & "URL" Fields

解決

Assuming you want it to open in the same window, have you tried this?

target="_self"

 rather than 

target="_blank"

--
Bryan Schneidewind
Manager of Web Development
Weidert Group