html output bonusfield

This is the place to discuss bugs that have been found in the most recent version of PivotX. Posting bugs will ensure that the Development Team is aware of them and that they will be addressed when resources are available.

html output bonusfield

Postby camarados » Mon Feb 06, 2012 11:09 am

Got a bug / problem with extension bonusfields

I made a bonus field "rechts" with a extra wysiwyg editor.
I want to show " rechts" in de sidebar.

The output at the website is:
<ul> <li><strong>In de wigwam is plaats voor 8 personen om te overnachten.<br /></strong>De <strong>wigwam</strong> is uitgerust met:<br /><em>- geitenkrukjes</em><br /><em>- veldbedden</em><br /><em>- indianenkleden</em><br /><em>- houten vloer met vloerkleden</em><br /><em>- stroompunten</em><br /><em>- lantaarns</em><br />


Source code look like this:
Code: Select all
<div class="sidebar-block">

    &lt;ul&gt;

&lt;li&gt;&lt;strong&gt;In de wigwam is plaats voor 8 personen om te overnachten.&lt;br /&gt;&lt;/strong&gt;De &lt;strong&gt;wigwam&lt;/strong&gt; is uitgerust met:&lt;br /&gt;&lt;em&gt;- geitenkrukjes&lt;/em&gt;&lt;br /&gt;&lt;em&gt;- veldbedden&lt;/em&gt;&lt;br /&gt;&lt;em&gt;- indianenkleden&lt;/em&gt;&lt;br /&gt;&lt;em&gt;- houten vloer met vloerkleden&lt;/em&gt;&lt;br /&gt;&lt;em&gt;- stroompunten&lt;/em&gt;&lt;br /&gt;&lt;em&gt;- lantaarns&lt;/em&gt;&lt;br /&gt;&lt;em&gt;- pannenset, eetgerei, serviesgoed in Indianen en Cowboystyle. &lt;br /&gt;&lt;/em&gt;&lt;/li&gt;
            </div>


It seems it cant read the html code.

Anyone an idea what can be wrong?
(using latest pivotx 2.3.1 and database)
camarados
 
Posts: 42
Joined: Tue Sep 13, 2011 8:56 am

Re: html output bonusfield

Postby ruthenoid » Thu Feb 09, 2012 5:04 pm

Could it be that you use something like this in your template:

[[$entry.extrafields.somefield|escape]]

in that case, remove the "escape"-tag:

[[$entry.extrafields.somefield]]
ruthenoid
 
Posts: 12
Joined: Mon Jul 12, 2010 8:00 pm

Re: html output bonusfield

Postby camarados » Tue Apr 03, 2012 12:59 pm

thx, gonna try that!
camarados
 
Posts: 42
Joined: Tue Sep 13, 2011 8:56 am

Re: html output bonusfield

Postby deblouw » Fri Aug 03, 2012 12:32 pm

I'm having the same problem with the WYSIWIG field of extrafield. Removing |escape does not help me. I've added an image but it shows the tag instead of the image. Anyone has a solution?
deblouw
 
Posts: 16
Joined: Mon Jun 27, 2011 2:36 pm

Re: html output bonusfield

Postby Harm10 » Fri Aug 03, 2012 1:58 pm

deblouw wrote:I'm having the same problem with the WYSIWIG field of extrafield.
What field do you mean? Do you have a link for us and on what version are you?
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: html output bonusfield

Postby deblouw » Fri Aug 03, 2012 2:21 pm

I'm on 2.3.2. I'm using the Bonus Fields extension, and would like to use the type wysiwyg editor, a textarea with the default pivotx-wysiwyg editor on top. But when I add an image in this field, it does nog show the image but it shows the pivot tag code. I do not have a link because the info on the site is under an embargo.

I'm using this tag: [[$entry.extrafields.nominatie]]

it does function with other types , like image.
deblouw
 
Posts: 16
Joined: Mon Jun 27, 2011 2:36 pm

Re: html output bonusfield

Postby Harm10 » Fri Aug 03, 2012 2:31 pm

You mean you use [[ image ]] and then it shows like that? Or <img>?
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: html output bonusfield

Postby deblouw » Fri Aug 03, 2012 2:53 pm

Yes, I add an image with the wysiwig bonus field, just I would normally do. so it shows like [[image]] in pivot but it also shows like [[image]] on the website.
deblouw
 
Posts: 16
Joined: Mon Jun 27, 2011 2:36 pm

Re: html output bonusfield

Postby Harm10 » Sat Aug 04, 2012 10:01 am

I guess the author has to have a look at it. I send him a mail.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: html output bonusfield

Postby marcelfw » Mon Aug 06, 2012 7:10 am

deblouw wrote:Yes, I add an image with the wysiwig bonus field, just I would normally do. so it shows like [[image]] in pivot but it also shows like [[image]] on the website.


When using an extrafield for an image, you have to add it like a proper img-tag yourself. So basically put this in your template:

<img src="[[$entry.extrafields.image]]" alt="[[$entry.title|escape]]" width="..." height="..." />

There is no special tag for it.
marcelfw
 
Posts: 44
Joined: Wed Nov 10, 2010 3:40 pm


Return to 2.x Bugs

Who is online

Users browsing this forum: No registered users and 4 guests

cron