Page 11 of 12

Re: Bonus Fields

PostPosted: Mon Mar 25, 2013 8:27 pm
by Harm10
You mean you want to construct the address parm value? But that should be some address!
It would help if you gave a link or specified some real values (not necessarily your own values) so I can test.
If it is easier for you you can PM me.

Re: Bonus Fields

PostPosted: Tue Mar 26, 2013 8:19 am
by olli
You have a PM
Thank You.

Re: Bonus Fields

PostPosted: Tue Mar 26, 2013 10:37 pm
by hansfn
This worked (in my tests):

Code: Select all
[[ googlemaps_v3 address="`$entry.extrafields.latitude` `$entry.extrafields.longitude`" ]]

PS1! AFAIK Google maps wants a space instead of a semi-colon between the latitude and longitude.

PS2! If you give an address, there is no need to also give latitude and longitude too - they will be ignored anyway.

Re: Bonus Fields

PostPosted: Fri Mar 29, 2013 5:07 pm
by olli
Thank You Harm10 and Thank You hansfn.
Works fine.
I´m verry, verry, verry glad.
Thank You
:-)

How do you unescape a wysiwyg bonus field?

PostPosted: Thu Jun 20, 2013 3:48 pm
by streeff
I have a wysiwyg field that I try to show unescaped.

Tried [[ $page.extrafields.fieldname|nofilter ]] but apparently that's not the way.

Anyone?

Re: Bonus Fields

PostPosted: Thu Jun 20, 2013 5:06 pm
by Harm10
Try [[ $page.extrafields.fieldname|unescape ]]

Re: Bonus Fields

PostPosted: Thu Jun 20, 2013 9:31 pm
by streeff
Thanks, but that produced
Call to undefined function smarty_modifier_unescape() in /domains/somedomain.nl/test/pivotx/db/cache/%%BB^BB2^BB2163C2%%page_project.tpl.php on line 72

as well. Maybe unescape does not work for bonusfields or something?

Re: Bonus Fields

PostPosted: Thu Jun 20, 2013 9:38 pm
by streeff
I realize now that I was asking the wrong question: unescaping DOES work, by default already.
What is not working are smarty tags inside the wysiwyg bonus field, at least not the [[download file="(etc)" ... ]] tag.

So I'm not really stuck :) , although it would be nice to use the PivotX download button functionality :? .

Re: Bonus Fields

PostPosted: Fri Jun 21, 2013 4:28 am
by Harm10
Template tags within template tags are a problem. You could try an experiment with the [[ eval var=$yourvar ]] function. But I have limited experience with that. Possibly it needs to be put in an include member to result in the correct value ([[ include file="`$templatedir`/your_eval.tpl" ]]).

Re: Bonus Fields

PostPosted: Sat Nov 30, 2013 9:39 pm
by Harm10
Version 1.33 has been released correcting a problem with the uploader when more than 2 galleries were defined.
Also a lot of translation work is done!