Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi:
I am importing entries from external data source and need to filter entries imported by ID number.
During import process, system will check if current entry ID is contained in an array of skippable numbers and, in that case, entry will be ignored.
Is there anyaway i can do that in pure XSLT? I could use a C# function but i prefer not to.
If you could send me an example explaining how to do array check you will make my day ;-)
Thanks,Ivan
You can use the contains function, I have used it to hide defined nodeTypes from the menu:
<xsl:param name="nodeTypes">dtFeriCareer;dtFeriStiftungsCommunityStiftung;</xsl:param><xsl:for-each select="... and contains($nodeTypes, concat(@nodeTypeAlias, ';'))">
hth, Thomas
You are the best Thomas ;-)
Thanks a lot!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Help for filtering import from external data source
Hi:
I am importing entries from external data source and need to filter entries imported by ID number.
During import process, system will check if current entry ID is contained in an array of skippable numbers and, in that case, entry will be ignored.
Is there anyaway i can do that in pure XSLT? I could use a C# function but i prefer not to.
If you could send me an example explaining how to do array check you will make my day ;-)
Thanks,
Ivan
You can use the contains function, I have used it to hide defined nodeTypes from the menu:
hth, Thomas
You are the best Thomas ;-)
Thanks a lot!
is working on a reply...