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:

http://www.sitefinity.com/blogs/stanislav-velikovs-blog/2013/02/15/dynamically-resolving-sitefinity-links-when-using-htmlfield


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -