Creating Custom TVs

Because I think that the documentation regarding the custom template variables is very poor, I have here once created an example of how such a tv can be created.

In this tutorial, i show, how you can easy combine multible form elements in one single TV.
Based on an EVOLUTION CMS (killer feature) custom template variable :) and jquery.serializeJSON.

1 комментарий

Thank you.
Hint: You can create custom TV type if make file in assets/tvs/yourtvname/yourtvname.customtv.php


    die('<h1>ERROR:</h1><p>Please use the EVO Content Manager instead of accessing this file directly.</p>');

/* document content*/
global $content;
/* TV params there */
global $row;

echo '<textarea id="tv' . $docData['tv_id'] . '" name="tv' . $docData['tv_id'] . '" type="text" onblur="documentDirty=true;">' . $docData['tv_value'] . "</textarea>";

  • 1px
  • +1
Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.