Page 1 of 1

CMS Linker (cms_selflink) valid link checking?

Posted: Wed Nov 05, 2008 12:06 pm
by Sphinx
Hi,

I'm trying to figure out how to make cms_selflink check if the page it links to is active (published) - if its not, I want the linker to skip the href setup so the link doesn't take the user to a 404.

Maybe its already possible to configure this, but I haven't found any way to do it.

Any ideas on where I should start and how this is best achieved?

TIA,

Michael

Re: CMS Linker (cms_selflink) valid link checking?

Posted: Fri Aug 28, 2009 11:58 pm
by kendo451
Have you actually been sent to a 404?  Normally if the page is not there, the {cms_selflink} tag outputs nothing, so there will be no link at all.

Re: CMS Linker (cms_selflink) valid link checking?

Posted: Sat Aug 29, 2009 12:01 am
by calguy1000
{cms_selflink href='home' assign='foo'}{if $foo != ''}something{/if}

Re: CMS Linker (cms_selflink) valid link checking?

Posted: Sat Aug 29, 2009 12:02 am
by calguy1000
cms_selflink is an abomination, and should be nuked, re-written, abolished, burned at the stake...

Re: CMS Linker (cms_selflink) valid link checking?

Posted: Sat Aug 29, 2009 1:26 am
by kendo451
:D

Got a laugh from that.