The sample above only have the <h1>DASHBOARD</h1> section in it. If I remove the h1 tags within the editor around DASHBOARD (so all standard text format) then the content displays fine.
Here is the sample from the Debugger view that does work. As you can see, the only difference is the removal of the second pair of h1 tags...
<script type="text/javascript">
document.getElementById('tab_content').innerHTML = '<div id=\"tabhome_title\"><h1>Dashboard</h1></div><div id=\"tabhome_description\">DASHBOARD<br />2020 BETTERBOND (realACHIEVERS) INCENTIVE TRIP (PHUKET)_BOOKING FORMS AND TRIP INFORMATION AVAILABLE HERE <br />(real)UPDATE 13 September 2019 <br />From the Desk of the MD – September 2019</div>';
</script>
Web Pages - Home Tab
Re: Web Pages - Home Tab
Please provide a NOT WORKING sample of what you put in the TinyMce editor.
Per supporto GRATUITO contattatemi in privato qui
Re: Web Pages - Home Tab
This is a not working sample:
<script type="text/javascript">
document.getElementById('tab_content').innerHTML = '<div id=\"tabhome_title\"><h1>Dashboard</h1></div><div id=\"tabhome_description\"><h1>DASHBOARD</h1>
<br />2020 BETTERBOND (realACHIEVERS) INCENTIVE TRIP (PHUKET)_BOOKING FORMS AND TRIP INFORMATION AVAILABLE HERE <br />(real)UPDATE 13 September 2019 <br />From the Desk of the MD – September 2019</div>';
</script>
tinyMCE source:
<h1>DASHBOARD</h1>
2020 BETTERBOND (realACHIEVERS) INCENTIVE TRIP (PHUKET)_BOOKING FORMS AND TRIP INFORMATION AVAILABLE HERE <br />(real)UPDATE 13 September 2019 <br />From the Desk of the MD – September 2019
and this is a working sample:
<script type="text/javascript">
document.getElementById('tab_content').innerHTML = '<div id=\"tabhome_title\"><h1>Dashboard</h1></div><div id=\"tabhome_description\">DASHBOARD<br />2020 BETTERBOND (realACHIEVERS) INCENTIVE TRIP (PHUKET)_BOOKING FORMS AND TRIP INFORMATION AVAILABLE HERE <br />(real)UPDATE 13 September 2019 <br />From the Desk of the MD – September 2019</div>';
</script>
tinyMCE source:
DASHBOARD<br />2020 BETTERBOND (realACHIEVERS) INCENTIVE TRIP (PHUKET)_BOOKING FORMS AND TRIP INFORMATION AVAILABLE HERE <br />(real)UPDATE 13 September 2019 <br />From the Desk of the MD – September 2019
<script type="text/javascript">
document.getElementById('tab_content').innerHTML = '<div id=\"tabhome_title\"><h1>Dashboard</h1></div><div id=\"tabhome_description\"><h1>DASHBOARD</h1>
<br />2020 BETTERBOND (realACHIEVERS) INCENTIVE TRIP (PHUKET)_BOOKING FORMS AND TRIP INFORMATION AVAILABLE HERE <br />(real)UPDATE 13 September 2019 <br />From the Desk of the MD – September 2019</div>';
</script>
tinyMCE source:
<h1>DASHBOARD</h1>
2020 BETTERBOND (realACHIEVERS) INCENTIVE TRIP (PHUKET)_BOOKING FORMS AND TRIP INFORMATION AVAILABLE HERE <br />(real)UPDATE 13 September 2019 <br />From the Desk of the MD – September 2019
and this is a working sample:
<script type="text/javascript">
document.getElementById('tab_content').innerHTML = '<div id=\"tabhome_title\"><h1>Dashboard</h1></div><div id=\"tabhome_description\">DASHBOARD<br />2020 BETTERBOND (realACHIEVERS) INCENTIVE TRIP (PHUKET)_BOOKING FORMS AND TRIP INFORMATION AVAILABLE HERE <br />(real)UPDATE 13 September 2019 <br />From the Desk of the MD – September 2019</div>';
</script>
tinyMCE source:
DASHBOARD<br />2020 BETTERBOND (realACHIEVERS) INCENTIVE TRIP (PHUKET)_BOOKING FORMS AND TRIP INFORMATION AVAILABLE HERE <br />(real)UPDATE 13 September 2019 <br />From the Desk of the MD – September 2019
Re: Web Pages - Home Tab
It's not related to the <h1> tag, but to the unescaped line break that TinyMCE adds everywhere.
To fix, change /appLms/view/home/_tabs_block.php from
to:
Do the same in /appLms/view/home/_tabs.php
To fix, change /appLms/view/home/_tabs_block.php from
Code: Select all
document.getElementById('tab_content').innerHTML = '<?php echo addslashes($_content); ?>';
Code: Select all
document.getElementById('tab_content').innerHTML = '<?php echo trim(json_encode($_content),'"'); ?>';
Per supporto GRATUITO contattatemi in privato qui
Re: Web Pages - Home Tab
Great - thank you very much... it is working.
Re: Web Pages - Home Tab
Hi Jasmines. Is there a way to display or browse to the other pages, not marked as default but published, in the Home Tab section? Same goes for news - the news section on the right is great, but an alternative way to display the content (or links to old news articles) would be great...
Re: Web Pages - Home Tab
Yes, but it would need custom development.
Per supporto GRATUITO contattatemi in privato qui
Re: Web Pages - Home Tab
so at the moment no way to pass a get string to display the second or third web page in the home page section...
who can I contact for custom development?
who can I contact for custom development?
Re: Web Pages - Home Tab
You have my contacts below.
Per supporto GRATUITO contattatemi in privato qui