Page 1 of 1

2.1.4/2.1.5 cms_selflink error in CGBlog

Posted: Mon Aug 22, 2016 10:24 am
by howey
Hi

Ive got an odd error with cms_selflink.

I am using both CMSMS 2.1.4 and 2.1.5 and I am getting link failures if I use the linking tool within CGBlog.

If I add a link into the template manually ie
<p><a href="{cms_selflink href='test-page'}">Test link</a></p>
The link works.

If I add the link using the wysiwyg on a content page the link works.

However, if I add the link from within a CGBlog, through the wysiwyg editor I get an error
The requested URL /test-site/{cms_selflink href='test-page'} was not found on this server.

Is this an error produced by the way CGBlog processes the article?

Is there any way of making this work?

My system is a basic installation of CMSMS with the only additional modules being CGBlog and the required additional modules to this. PHP5.5.26 on MAMP.

Regards

Re: 2.1.4/2.1.5 cms_selflink error in CGBlog

Posted: Mon Aug 22, 2016 7:28 pm
by rotezecke
do you use {eval} in your CGBlog templates? e.g.

Code: Select all

{eval var=$entry->summary}

Re: 2.1.4/2.1.5 cms_selflink error in CGBlog [solved]

Posted: Tue Aug 23, 2016 8:48 am
by howey
Hi

Thanks, that seems to have done the trick. I was using

Code: Select all

{$entry->summary}
adding the content/summary as

Code: Select all

{eval var=$entry->summary}
now enables the links to work

Thanks very much, I would never have thought to go that route.

Regards

PS I don't seem to be able to edit my original post to denote it as solved