Deleted page brings "no target selected"-error
Author: rbitdd
Publication Date: 3/2/2012 13:18
Hello Community,
I wrote a link template for a linklist.
My template looks like this:
$CMS_IF(!lt_pageref.isEmpty && !lt_text.isEmpty)$<a href="$CMS_REF(lt_pageref)$">$CMS_VALUE(lt_text)$</a>$CMS_END_IF$
A co-worker deleted the referenced pages. So I get now the error message:
($CMS_REF(lt_pageref)$ at 1, 59): no target selected
I understand why this happens (the reference is not empty, but it can't be resolved...) but is there anything I can do, so that this error message does no longer appear.
Best wishes and have a nice weekend.
D.
Tags: linkcheck, linktemplate, refrenz, target
-
Author: Peter_Jodeleit - 3/2/2012 13:37
First of all you should talk to your co-worker (or remove him from the admin group) - deleting referenced items is nothing you should do... :smileywink:
I assume "lt_pageref" if of type FS_REFERENCE. Then " ! lt_pageref.isEmpty" means "editor has chosen a reference" and "lt_pageref.get != null" means "no choice or element deleted".
0
Please sign in to leave a comment.
Comments
1 comment