-
- 36 Posts
I am using Revo version 2.2.6 and I have created a weblink with a link attribute of target="_blank". I have also this for my row chunk:
<li [[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]><span>[[+wf.linktext]]</span></a>[[+wf.wrapper]]</li>
But it only opens in the same window instead of a new browser. How can I fix this?
Thanks
Lisa
What does the source of the page with the link look like? Is the target attribute being inserted into the link at all?
-
- 36 Posts
No. The target attribute is not being inserted at all. Here is the source from the page. <a class="button" href="current-packages/book-travel.html">
Thanks for your assistance.
Lisa
Hm. I have a very basic default menu on my localhost test installation, so I just created a new resource with
in the Link Attributes field. Works perfectly with no modifications at all to the default tpls. The default rowTpl looks like this:
<li[[+wf.id]][[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
Hm again. Tried it with your tpl, and with a weblink. Worked as expected. Are you sure the link in question is using rowTpl, and not another tpl like innerRowTpl?
-
- 36 Posts
Since where I am putting this is not a menu. It is not using wayfinder template. It is attached to a button on the home page - fusiontravelgroup.com. I have a separate template for it.
<li id="[[+tv.galleryBanTV]]">
<div> <span class="box"><span>[[+tv.priceTV]]</span></span> <span class="text">[[+longtitle]]</span> <a href="[[~[[+id]]]]" [[+attributes]] class="button">details</a> </div>
</li>
Is it possible to attach the link attribute to the above link?
Thanks
Lisa
Try [[+link_attributes]] - that is the actual database field name. What add-on are you using to generate the list for the gallery? It may or may not provide a placeholder for the link_attributes field.
-
- 36 Posts
That worked!
Thank you so much.
I am not using a add-on for it. Each image is attached to a page and I have code that looks at whether it is the homepage to display this rotating gallery type. I did it this way because of the funky way the template was coded that my client chose.
I really appreciate your assistance.
Learning Modx every day.
Lisa