Problem with printing content inside the {if $page_lang == "en_US"}{/if} blocks
Posted: Sun Apr 25, 2010 8:46 pm
EDIT: I'm chenging the subject to match real problem look at replay 3 {evel var } is not the real problem here,
I'm having a wierd problem, the printing module dosn't output anything that should be displayed by {eval var=''} smarty tag. This is a major problem as most of my content is being displayed by core news module and calgusy blog module. Every articule in there is blank after presing print. I have title and date but nothing else.
This was working when I was working on templates. Since then I did an update to php-5.3.1 and CMS Made Simple from 1.6.7 to 1.7. Today I noticed this problem and I'm bit lost, don't know what to do as printing is very important for me.
My configuration:
CMS Made Simple 1.7 with:News 2.10.4, Printing 1.0.4.
One of my template is looking like this:
And this is working perfectly on my site when I'm desplaing the details of the articule but when I press print i have:
As you can see all {eval var=''} from template are not being displayed.
I will be greatful for any help, suggestion. I can provide more detailed info if needed.
I'm having a wierd problem, the printing module dosn't output anything that should be displayed by {eval var=''} smarty tag. This is a major problem as most of my content is being displayed by core news module and calgusy blog module. Every articule in there is blank after presing print. I have title and date but nothing else.
This was working when I was working on templates. Since then I did an update to php-5.3.1 and CMS Made Simple from 1.6.7 to 1.7. Today I noticed this problem and I'm bit lost, don't know what to do as printing is very important for me.
My configuration:
CMS Made Simple 1.7 with:News 2.10.4, Printing 1.0.4.
One of my template is looking like this:
Code: Select all
{* set a canonical variable that can be used in the head section if process_whole_template is false in the config.php *}
{if isset($entry->canonical)}
{assign var='canonical' value=$entry->canonical}
{/if}
<div id="printing" class="noprint">
{cms_module module='printing' showbutton="true" script="true" popup="true" lang="en_US"} {cms_module module='printing' pdf="true" showbutton="true" lang="en_US"}
</div>
<h3 id="NewsPostDetailTitle" style=text-transform:none;>
{$entry->title|cms_escape:htmlall}</h3>
<p>
<div id="NewsPostDetailDate">
Published:
{$entry->postdate|date_format:"%d.%m.%Y"}
</div>
</p>
<hr id="NewsPostDetailHorizRule" />
{if $entry->summary}
<div id="NewsPostDetailSummary">
<p><strong>
{eva; var=$entry->summary}
</strong></p>
</div>
{/if}
<div id="NewsPostDetailContent">
{eval var=$entry->content}
</div>
<br />
{if $return_url != ""}
<div id="NewsPostDetailReturnLink">
{$return_url}
</div>
Code: Select all
</__body>
<div class="noprint" id="printing">
</div>
<h3 style="text-transform: none;" id="NewsPostDetailTitle">package-1.1.43-r1</h3>
<p>
</p><div id="NewsPostDetailDate">
Published:
21.04.2010
</div>
<hr id="NewsPostDetailHorizRule">
<div id="NewsPostDetailSummary">
<p><strong>
</strong></p>
</div>
<div id="NewsPostDetailContent">
</div>
<br>
<div id="NewsPostDetailReturnLink"></div>
I will be greatful for any help, suggestion. I can provide more detailed info if needed.