Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Adding a Web link
System
Can anyone give me vb.net or c# sample code for adding a Web link to an IManLinkListFolder? This data seems to be stored in straight XML, and I'm having trouble determining how to add a new link to the list and save it back to the object. I'd appreciate any help you could provide.
Find more posts tagged with
Comments
Migrateduser
For example if you need to add a link which points to Interwoven web site you can add something like this to the body property of linklist folder
<links xmlns=\"x-schema:../includes/iwpl.xml\" populated=\"1\" expand=\"1\"><link title=\"Interwoven Web Site\" img=\"../icons/htm.gif\" href=\"
http://www.interwoven.com\"
target=\"_blank\" selected=\"1\"/></links>
Where "<links>" is a group element and can contain many "<link>" tags. In above example there is one "<link>" element for "
www.interwoven.com"
and the title of that link is "Interwoven Web Site"
you should assign this to
linklistfolder.body ="<links xmlns=\"x-schema:../includes/iwpl.xml\" populated=\"1\" expand=\"1\"><link title=\"Interwoven Web Site\" img=\"../icons/htm.gif\" href=\"
http://www.interwoven.com\"
target=\"_blank\" selected=\"1\"/></links>"