Try

<%!! Escape:Text(<%info_cmsKeywords%>).IndexOf(Feature) !!%>

Don't need quotes.

Also, try adding .ToString() to the end if needed
On Thursday, May 10, 2012 1:44:20 PM UTC-4, Joel Kinzel wrote:
>
> All,
>
> I'm attempting to detect if a page has a particular keyword so that I can 
> take some action on it. Unfortunately I can't seem to figure out how to do 
> this. Here is what I've attempted to do: 
>
> <%!! Escape:Text("<%info_cmsKeywords%>").IndexOf("Feature") !!%>
>
> They keywords for one of the pages does contain "Feature Article", however 
> when I run this, all pages on the list are returning -1 (didn't find the 
> string we searched for). Has anyone done something like this in the past? 
> Also, as a note, I'd like to avoid pre-execute and use of javascript if at 
> all possible. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/reddot-cms-users/-/Z4nLS0IRvnQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to