Bonus Fields

Discuss PivotX 2.0.x extensions here, and view extensions that are available for download.

Re: Bonus Fields

Postby Harm10 » Mon Mar 25, 2013 8:27 pm

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.
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: Bonus Fields

Postby olli » Tue Mar 26, 2013 8:19 am

You have a PM
Thank You.
olli
 
Posts: 6
Joined: Mon Mar 25, 2013 3:44 pm
Location: Germany, Berlin

Re: Bonus Fields

Postby hansfn » Tue Mar 26, 2013 10:37 pm

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.
hansfn
Developer
 
Posts: 3282
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Bonus Fields

Postby olli » Fri Mar 29, 2013 5:07 pm

Thank You Harm10 and Thank You hansfn.
Works fine.
I´m verry, verry, verry glad.
Thank You
:-)
olli
 
Posts: 6
Joined: Mon Mar 25, 2013 3:44 pm
Location: Germany, Berlin

How do you unescape a wysiwyg bonus field?

Postby streeff » Thu Jun 20, 2013 3:48 pm

I have a wysiwyg field that I try to show unescaped.

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

Anyone?
Evert Albers, Streeff - web // branding // information design - Amersfoort & Amsterdam, NL
Site: http://www.streeff.nl
User avatar
streeff
 
Posts: 146
Joined: Sat Jul 25, 2009 9:28 pm
Location: Amersfoort, NL

Re: Bonus Fields

Postby Harm10 » Thu Jun 20, 2013 5:06 pm

Try [[ $page.extrafields.fieldname|unescape ]]
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: Bonus Fields

Postby streeff » Thu Jun 20, 2013 9:31 pm

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?
Evert Albers, Streeff - web // branding // information design - Amersfoort & Amsterdam, NL
Site: http://www.streeff.nl
User avatar
streeff
 
Posts: 146
Joined: Sat Jul 25, 2009 9:28 pm
Location: Amersfoort, NL

Re: Bonus Fields

Postby streeff » Thu Jun 20, 2013 9:38 pm

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 :? .
Evert Albers, Streeff - web // branding // information design - Amersfoort & Amsterdam, NL
Site: http://www.streeff.nl
User avatar
streeff
 
Posts: 146
Joined: Sat Jul 25, 2009 9:28 pm
Location: Amersfoort, NL

Re: Bonus Fields

Postby Harm10 » Fri Jun 21, 2013 4:28 am

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" ]]).
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: Bonus Fields

Postby Harm10 » Sat Nov 30, 2013 9:39 pm

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!
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)

PreviousNext

Return to 2.x Extensions

Who is online

Users browsing this forum: No registered users and 11 guests

cron