We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Referencing Disqus discussion from EE

How Do I?

phunmoiblackpeony's avatar
phunmoiblackpeony
1 posts
6 years ago
phunmoiblackpeony's avatar phunmoiblackpeony

Hi,

I’m in the process of (finally) dragging my EE2 site up to date. At present I’m close to a clean EE3 migration, but I’ve hit a hopefully minor roadblock in that I use Disqus for comments (I find casual visitors don’t want to create a login for my site so I stopped using EE comments module). I was using the cx_disqus add-on to sync EE comments with Disqus, but that is deprecated so I’ll have to use Disqus direct.

My question is this: to reference any particular discussion at Disqus, I need to provide the following:

this.page.url = PAGE_URL; // Replace PAGE_URL with your page’s canonical URL variable this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page’s unique identifier variable

for “this.page.identifier” I can use channel:entries:entry_id, but … I know I’m being stupid … I can’t find any variable in channel:entries which holds the URL (I assume Disqus wants the permalink path without the entry id)

Can anybody give me a clue ?

Thanks!

       
Rob Allen's avatar
Rob Allen
2,950 posts
6 years ago
Rob Allen's avatar Rob Allen

You can replace PAGE_URL with {current_url} to get the complete URL for the current page.

For PAGE_IDENTIFIER from memory this can be any unique string, {entry_id} should work.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.