Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > URL Selector target View modes: 
User avatar
Member
Member
egomoll-liquidprint - 10/16/2013 3:28:32 PM
   
URL Selector target
I am using the URL Selector form control on a document type. It does not appear that the URL selector allows for selecting a target window the way using the "insert link" function in the WYSIWYG editor. Is this possible using the URL Selector control?

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 10/17/2013 2:10:40 AM
   
RE:URL Selector target
Hi,

Thank you for your message.

What if you would change the tab in the URL Selector to Web? This way you can enter whatever link you need.

Let me know if this works or if you have something different in mind.

Kind regards,
Richard Sustek

User avatar
Member
Member
egomoll-liquidprint - 10/17/2013 9:13:59 AM
   
RE:URL Selector target
If I use the "Insert Link" option in the CMS and go to the Web tab I am presented with target window options ("_blank", "_self", etc.) . I am not presented this option from the web tab in the URL Selector form control. What are my options?

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 10/18/2013 4:13:07 AM
   
RE:URL Selector target
Hi,

I tried to figure out a way of how you could use it, but there are some issues. When you use URL Selector form control the relative URL is being stored in the Database (not the html link itself)

This way whenever you want to use the value out of it, say in the Transformation you can build the link yourself such as:
<a href="<%# Eval(fieldname)%>" target="_blank">My Link</a>

However this will not work right now because there seems to be a bug in the current version and when using Eval on URL Selector form control the value is not recovered. I have submited the bug to our developers and Im expecting their feedback on this next week. I will keep you updated.

Kind regards,
Richard Sustek

User avatar
Member
Member
egomoll-liquidprint - 10/18/2013 11:23:07 AM
   
RE:URL Selector target
Thank you for looking into this. I have been able to pull the URL (at least for outside links on the Web tab) using Eval, so for now I've implemented the solution you suggested with the hard coded target field. (FYI, you have a slight typo in your example: "targer" instead of "target". Thank you for your feedback.

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 10/22/2013 5:02:04 AM
   
RE:URL Selector target
Hi,

It seems that there is no bug afterall. You just need to omit the column name in the column property of the repeater so the suggestion I posted before should work fine.

Are you having any issues or do you have any further questions?

Kind regards,
Richard Sustek