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

LG Social Bookmarks-Permalink Syntax?

Development and Programming

cemanson's avatar
cemanson
1 posts
16 years ago
cemanson's avatar cemanson

I acknowledge that I am an EE newbie. I just installed the Social Bookmarks 2.0 extension and am having a problem with the output.

Here are the pertinent lines in my template:

{assign_variable:template_group="blogs"}


{lg_social_bookmarks title="{title}" permalink="{path=template_group/post}"}

Note: I am not using a comment page. I want people to come back to the main post page. Other permalink calls on page correctly map to the URL. For example: www.everydaychristian.com/blogs/post/313

This is the output I get in the email form and on other social websites:

http://everydaychristian.com/template_group/post/\n\n{summary}

I think I have a syntax problem but cannot for the life of me figure it out. Any advice is greatly appreciated. Thanks.

       
adnankussair's avatar
adnankussair
25 posts
16 years ago
adnankussair's avatar adnankussair

UPDATE: Just noticed the assign variable tag you setup which means that the template_group variable should be replaced with the “blogs” content… just make sure you have the url title in there as well…

–

The following part of the LG Extension controls what URL is sent to the Social Bookmarking Service:

permalink="{path=template_group/post}"

Notice that “template_group” needs to be replaced by the template group of the page your are bookmarking. For example in the case of your weblog entry at www.everydaychristian.com/blogs/post/313 you will replace “template_group” with “blogs” and add either the entry_id or url_title to the path tag:

permalink="{path=blogs/post}{url_title}"

This should give you the following URL when you click on the facebook link (for example):

http://www.facebook.com/sharer.php?u=http://www.everydaychristian.com/blogs/post/where_will_the_president_worship&t=Where Will the President Worship

Hope that is clear… 😊

       
cemanson's avatar
cemanson
1 posts
16 years ago
cemanson's avatar cemanson

Thanks. I’ve got it working now. I had tried subbing “blogs” for “template_group” but was still encountering the same problem. The tip for including {entry_id} or {url_title} was the roadblock I needed to overcome. Thanks for providing that information!

       

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.