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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -