webapp {tag_description} won't render in JS


hi

 

i need show news in 2 column format. left title, image , 300 caracters coming {tag_description} and

he right column list of rest of news title , 100 caracters description field.

 

i have created webapps fields , creatred testpage contain this

 

<div id="content">

<div id="headline"">

    <div id="news1-header">

 

 

    </div>

<div id="news1-image">

   

</div>

<div id="news1-body">

 

</div>

</div>

 

 

<div id="news2">

    <div id="news2-header">

    </div>

<div id="news2-body">

    </div>

</div>

    <div id="news3">

    <div id="news3-header">

    </div>

<div id="news3-body">

    </div>

</div>

    <div id="news4">

    <div id="news4-header">

    </div>

<div id="news4-body">

    </div>

</div>

</div>

<p>{module_webapps,27951,a,,,,true,10,,1}</p>

 

in webapp presentation file, list-backup.html, have put script should replace innerhtml , output text correctly

 

<script>

        if ({tag_counter}==1){

            document.getelementbyid('news1-header').innerhtml = '{tag_name}';

            document.getelementbyid('news1-image').innerhtml = '{tag_image}';

            document.getelementbyid('news1-body').innerhtml = '{tag_description}';

        }

        if ({tag_counter}==2){

            document.getelementbyid('news2-header').innerhtml = '{tag_name}';   

        }

        if ({tag_counter}==3){

           document.getelementbyid('news3-header').innerhtml = '{tag_name}';

           

        }            

 

 

</script>

 

with code, page blank, when delete tag_description line, output ok!

if have tag_description in list_backup file, output ok!

 

any idea why doesn't work?

 

thank you

please post url of frontend page you're seeing issue on can have @ it.

 

-m



More discussions in Web Apps


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support