Href link change in Anchor tag in Module in sitefinity -
i have create module in sitefinity field title description(rich textbox). when adding detail in module description detail :
"(title) :- heading 12
(description) :- loren lumsumloren lumsumloren lumsumloren lumsumloren lumsumloren lumsumloren lumsumloren lumsumloren lumsumloren lumsumloren lumsumloren lumsum? read more "
in description adding link using dynamically text of anchor link :
<a href="/home" sfref="[f669d9a7-009d-4d83-ddaa-000000000002]a432d184-491d-6e5b-9e79-ff0000427a78">read more</a>
and when module use in user control
public dynamiccontent retrievehomepersonalisedtextitemthroughfiltering(string title) { var providername = string.empty; dynamicmodulemanager dynamicmodulemanager = dynamicmodulemanager.getmanager(providername); type homepersonalisedtextitemtype = typeresolutionservice.resolvetype("telerik.sitefinity.dynamictypes.model.home_personalisedtext.home_personalisedtextitem"); var myfilteredcollection = dynamicmodulemanager.getdataitems(homepersonalisedtextitemtype).where("title = \"" + title + "\""); var myfirstfiltereditem = myfilteredcollection.last(); return myfirstfiltereditem; }
and drag module on page anchor link text
<a href="[f669d9a7-009d-4d83-ddaa-000000000002]a432d184-491d-6e5b-9e79-ff0000427a78">read more</a>
it asign guid in href.how solve problem in usercontrol.
i believe blog post you:
Comments
Post a Comment