Skip to main content

No target selected

Comments

3 comments

  • Zendesk API User
    Author: StefanSchulz - 6/15/2011 8:10

    Die ref-Funktion versucht offensichtlich, die gegebene Referenz auszuwerten. Da diese nicht gesetzt ist, wird ein Fehler angezeigt. Hier sollte vorab die Referenz getestet werden, dazu sollte ein Test auf empty reichen:

    $CMS_IF(pageref.page.data.get("st_startseite_image").editor.get(#global.language).empty)$...

    (Code natürlich ungetestet :smileywink:)

    Gruß

    Stefan

    0
  • Zendesk API User
    Author: j_mueller - 1/18/2022 22:09

    Seems like there's nothing selected in your reference editor. Usually the no target selected error is thrown inside $CMS_REF()$ function.

    Have you tried checking with $CMS_IF(!entry.st_gallery.empty)$ instead?

    Then if the editor is not empty, you can proceed retrieving the selected object.

    Kind regards

    0
  • Zendesk API User
    Author: sivaprasad9394 - 1/21/2022 10:00

    HI Sranjan,

    You have not selected any image in FS_REFERENCE component.

    <FS_REFERENCE
    name="st_picture"

    ------

    ----------

    </FS_REFERENCE>

    $CMS_IF(!st_picture.isEmpty)$ <div class="bottom"> <img src="$CMS_REF(st_picture,resolution:"rsImage")$"> </div> $CMS_END_IF$

    In the above code if required use resolution else omit it.

    one more point check for Image is a language dependent or not.If yes then check for page language all the pages image is selected properly. If not also we get the error.

    I hope this will help you.

     

     

    0

Please sign in to leave a comment.