Can only use template properties once? %TITLE% %URL%

Permalink Browser Info Environment
I'm am trying to make adjustments to the default template. I would like to reuse template properties in the 'post' template. As soon as I try to use a property a second time, I get only a rendering of the property literal. So adding a second reference to the post URL using %URL%, actually outputs "%URL%" instead of the post's url.

My end goal is to add social sharing buttons to the bottom of posts (I've tried a bazillion WP social plugins all of which either do not render in the c5 blog or render only partially, or in preview only). To do this, I think I can use iframe versions of the social buttons, but they require the URL of the post in order to work.

Any help would be appreciated.

Type: Discussion
Status: New
brotherhutch
View Replies:
brotherhutch replied on at Permalink Reply
brotherhutch
I found the solution in ajax.php:

The JS replace() was only replacing a single instance of "%URL%" instead of a global replace using regex /%URL%/g. I changed these lines to make the fix (fixing %TITLE% while I'm at it):
480 innerHTML = innerHTML.replace (/%URL%/g, permalink);
481 innerHTML = innerHTML.replace (/%TITLE%/g, post['title']);

from the original:
480 innerHTML = innerHTML.replace ("%URL%", permalink);
481 innerHTML = innerHTML.replace ("%TITLE%", post['title']);

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.