ListIt2 WYSIWYG [solved]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
gionda
Forum Members
Forum Members
Posts: 91
Joined: Mon Aug 17, 2009 11:45 am

ListIt2 WYSIWYG [solved]

Post by gionda »

Hello,
I created a field type "Text area" but does not work with WYSIWYG, in prewiev see the html code. What can it be?
Thanks
Last edited by gionda on Fri Jun 07, 2013 2:20 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: ListIt2 WYSIWYG

Post by Dr.CSS »

Did you set it to use wysiwyg..?
gionda
Forum Members
Forum Members
Posts: 91
Joined: Mon Aug 17, 2009 11:45 am

Re: ListIt2 WYSIWYG

Post by gionda »

yes, in the field definition...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: ListIt2 WYSIWYG

Post by Dr.CSS »

Do you have wysiwyg in page edit..?
gionda
Forum Members
Forum Members
Posts: 91
Joined: Mon Aug 17, 2009 11:45 am

Re: ListIt2 WYSIWYG

Post by gionda »

yes, the WYSIWYG is active, in fact in the page edit i can see the text in the right way (formatted), but when i go on the website it appear with html code.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: ListIt2 WYSIWYG

Post by Dr.CSS »

I didn't realize that it was in front end, must be something on the tag/call for the text box that strips the eval, what does it look like in the template..?
gionda
Forum Members
Forum Members
Posts: 91
Joined: Mon Aug 17, 2009 11:45 am

Re: ListIt2 WYSIWYG

Post by gionda »

this is the template

Code: Select all

<div id="books_menu">{ListIt2books action="search"}{ListIt2books action="category"}</div>
{if $pagecount > 1}
<p>
{if $pagenumber > 1}
{$firstpage}&nbsp;{$prevpage}
{/if}
{foreach from=$pagelinks item=page}
    {$page->link}
{/foreach}
{if $pagenumber < $pagecount}
&nbsp;{$nextpage}&nbsp;{$lastpage}
{/if}
</p>
{/if}

{foreach from=$items item=item}
<div class="item">
<h3 class="item-title">{$item->title|cms_escape}</h3>

{if !empty($item->fielddefs)}
    <div class="item-properties">
    {foreach from=$item->fielddefs item=fielddef}
        {if $fielddef.type == 'upload_file' || $fielddef.type == 'select_file'}
            {$fielddef.name|cms_escape}: <a href="{$uploads_url}/{$fielddef.value|cms_escape}">{$fielddef.value|cms_escape}</a><br 
        {else}

{$fielddef.value|cms_escape}<br />
        
{* capture image *}
{capture assign='thumb'}{$item->fielddefs.image.dir}/{$item->fielddefs.image.value}{/capture}

{/if}
    {/foreach}
    </div>
{/if}

</div><!-- item -->
{/foreach}
uniqu3

Re: ListIt2 WYSIWYG

Post by uniqu3 »

It is because of |cms_escape, remove that and if you are going to use some smarty (like cms_selflink or so) in WYSIWYG area then you should also use eval {eval var=$fielddef.value}
gionda
Forum Members
Forum Members
Posts: 91
Joined: Mon Aug 17, 2009 11:45 am

Re: [SOLVED]ListIt2 WYSIWYG

Post by gionda »

Thank you, now it works! :)
Post Reply

Return to “Modules/Add-Ons”