Bonus Fields

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

Re: Bonus Fields

Postby Gryts » Mon Sep 03, 2012 8:56 am

I have a bonusfields-related question as well as I don't get the select-option to work the way I want it to...

The user should be able to select the venue where a band is playing: nine options, which I entered in 'Extra type information'. The internal name is 'zaal'.

In my template it looks like so:

Code: Select all
      
[[ if $entry.extrafields.zaal|escape]]
<div class="speeltijd">
<p>[[ $entry.extrafields.zaal]][[*// [[ $entry.extrafields.tijd|date:'H.i']] uur *]]
</p>
</div>
[[ /if ]]


So far everything works. But I also have the option 'unknown', when the editor does not know yet where a band is playing. When 'unknown' is selected, nothing should be shown on the page. How do I do that? The documentation doesn't tell!

Also: when the editor selects a field, saves the entry and opens the entry again in PivotX, the option is no longer selected. This way the editor cannot see which option has been selected - this is confusing... Is this a bug or can I do something about it?
Gryts
 
Posts: 19
Joined: Sat Feb 27, 2010 1:14 pm

Re: Bonus Fields

Postby Gryts » Mon Sep 03, 2012 9:28 am

Ah, the not-being-able-to-see-what-had-been-selected problem has been solved: apparently this happens when the selection-options are edited.

But is it still possible to make the field not show up on the page when the editor selects the option 'unknown'?
Gryts
 
Posts: 19
Joined: Sat Feb 27, 2010 1:14 pm

Re: Bonus Fields

Postby Gryts » Tue Sep 11, 2012 1:05 pm

Question answered, there is an option 'Empty text (if applicable)', which does exactly that.
Gryts
 
Posts: 19
Joined: Sat Feb 27, 2010 1:14 pm

Re: Bonus Fields

Postby winters » Tue Feb 26, 2013 10:38 pm

marcelfw wrote:Update from 1.17 to 1.19.
1.18 contained an annoying bug that needed to be fixed soon.

CHANGES:

1.18 - 2011/10/07 - 18th update

- In PivotX 3.x and up, fields can be selected to included in a special search field, support is included
- Added/fixed checkbox
- Added a fixed html somewhere in the form
- Fixed problem with quotes/html tags in inputs/textareas


Hi Marcel,

Can you give an example how to specifically search in a bonusfield?

thanks as always!
willem
winters
 
Posts: 86
Joined: Thu Jan 13, 2011 9:09 pm

Re: Bonus Fields

Postby Harm10 » Tue Feb 26, 2013 10:49 pm

winters wrote:- In PivotX 3.x and up, fields can be selected to included in a special search field, support is included
Can you give an example how to specifically search in a bonusfield?
He mentions Piv 3 which was a working version used by Marcel and Bob to create their own sites. Piv 3 was never released. As Piv 4 will be totally new I guess you will not have this function in Piv 2.
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 winters » Tue Feb 26, 2013 11:01 pm

Hi Harm

Thanks for the info!
willem
winters
 
Posts: 86
Joined: Thu Jan 13, 2011 9:09 pm

Re: Bonus Fields

Postby winters » Thu Feb 28, 2013 8:55 pm

Hi Harm/Marcel

Thinking about this, would there be a way to search only in specific bonus fields?
or is it perhaps better to wait for version 4 (if that's part of version 4)?

Have a nice evening,
willem
winters
 
Posts: 86
Joined: Thu Jan 13, 2011 9:09 pm

Re: Bonus Fields

Postby Harm10 » Mon Mar 04, 2013 8:11 pm

I'll ask Marcel to give a reply to your question.
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 winters » Mon Mar 04, 2013 8:44 pm

Thanks!

I would like for example do a search for "gold" on the bonusfield color.

Can you give me some direction how to do this (if possible)

thanks again!
willem
winters
 
Posts: 86
Joined: Thu Jan 13, 2011 9:09 pm

Re: Bonus Fields

Postby marcelfw » Tue Mar 05, 2013 7:53 am

winters wrote:Thanks!

I would like for example do a search for "gold" on the bonusfield color.

Can you give me some direction how to do this (if possible)

thanks again!
willem


In standard PivotX this is not directly possible. Only calling [weblog]/[subweblog] and searching every entry would this be possible.

If you have the OOPs extension it's simple (once you installed the extension), you just run: [[oops_entry_loadall assign='entries' by_colorfield='blue']]
But mind you, OOPs tags have different syntax from [weblog]/[subweblog], read the documentation carefully.
marcelfw
 
Posts: 44
Joined: Wed Nov 10, 2010 3:40 pm

PreviousNext

Return to 2.x Extensions

Who is online

Users browsing this forum: No registered users and 2 guests