orchardcms - Display Facebook comments plugin in Orchard view -
i've created alternate view detail page of contentitem.
in view try add facebook commentsplugin view. necessary javascript includes plugin work added.
this works
<div class="fb-comments" data-href="http://*************/@(model.header.parent.contentitem.autoroutepart.path)" data-numposts="1" data-colorscheme="light"></div>
this not
<div class="fb-comments" data-href="@(model.header.parent.contentitem.autoroutepart.path)" data-numposts="1" data-colorscheme="light"></div>
is there way full url in orchard alternate view request.url.tostring()?
this can read viewcontext
<div class="fb-comments" data-href="@(viewcontext.httpcontext.request.url.tostring())" data-numposts="1" data-colorscheme="light"></div>
Comments
Post a Comment