Bonus Fields

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

Re: Bonus Fields

Postby marcelfw » Fri Mar 25, 2011 10:30 am

I don't want to spam the forum with all bonusfields updates, but this one grants an extra announcement.

Major bonusfields update. New version 1.14. New features:

* show fields only when certain categories/chapters are selected
* fill options lists (select/radio) with SQL statements or PHP-callbacks
* whilst not an ideal solution, adds hierarchical pages
* updated documentation, including examples
marcelfw
 
Posts: 44
Joined: Wed Nov 10, 2010 3:40 pm

Re: Bonus Fields

Postby Logfather » Fri Apr 01, 2011 2:20 pm

Thanks for the update Marcel! After about 5 years on Pivot and having it implemented on another website I have decided to use Bonusfields for my own site as well. :) Especially great for images I think, but there are some other uses as well. Should've started using it earlier.

To be nitpicking a bit: does anyone have experience with a Bonusfields image field and how it's possible to add an alt? Is this even possible?
Logfather
 
Posts: 163
Joined: Sun Jul 12, 2009 9:29 am
Location: Amsterdam

Re: Bonus Fields

Postby marcelfw » Fri Apr 29, 2011 9:56 am

If you didn't know already. An alt can only be added by adding another field and implementing it in the template. So the template would be like

<img src="[[$entry.extrafields.image]]" alt="[[$entry.extrafields.image_alt|escape]]" />
marcelfw
 
Posts: 44
Joined: Wed Nov 10, 2010 3:40 pm

Re: Bonus Fields

Postby marcelfw » Fri Apr 29, 2011 10:09 am

Just updated bonusfields. Besides some bugfixes it can also add a gallery imagefield now.

It's basically an improved gallery extension field. It can use the same data as the old extension (just name the field galleryimagelist), so it's backwards-compatible data-wise. You do need to implement the gallery using different tags (see the documentation) and you have to disable the old extension (otherwise you have 2 edits in the same entry/page editor).
You can however also choose a different name and choose if you want it to add to entries or pages only, etc, etc. All the regular bonusfields options are included.

To highlight some previous updates:
* you can add fields only when certain categories or chapters are selected
* hierarchal pages support
* programmers-only: you can fill select's or radio's with SQL statements or php-callbacks too
marcelfw
 
Posts: 44
Joined: Wed Nov 10, 2010 3:40 pm

Re: Bonus Fields

Postby marcelfw » Thu May 05, 2011 12:33 pm

And another update 1.16:

1.
[Smart add] can now add old-style 'galleries'. And now knows the difference between pages and entries.

2.
[Edit bonusfield] button is now called [Add bonusfield] when adding a field.

3.
Internal names cannot be empty anymore. You get a javascript alert and are focus()-ed to the field.
marcelfw
 
Posts: 44
Joined: Wed Nov 10, 2010 3:40 pm

Re: Bonus Fields

Postby verbaljam » Fri Jul 01, 2011 6:10 pm

It is still not perfect. To use a Bonusfield of the type 'image', I have to use the following syntax in my entry template:
Code: Select all
<img src="/images/[[$entry.extrafields.nameofmyimagefield]]"  />

I don't think this is the way it's supposed to be. It should work like [[$entry.extrafields.nameofmyimagefield]] and nothing more, I think.
But who am I to say, I'm not a programmer. ;-)
Anyway, for the 'normal' user this is way to complicated. Thanks to the comments of Logfather and Hans in this threat I was put on the right track.
For the rest it's a very nice plugin of course.
If you read Dutch, you read Verbal Jam.
Lack of documentation makes even the best program useless...
verbaljam
 
Posts: 143
Joined: Thu Apr 22, 2010 8:32 am
Location: Amsterdam

Re: Bonus Fields

Postby Marza » Thu Jul 21, 2011 12:45 am

Would it be possible to specify:

a) the height of a bonus field, in case of wysiwyg fields and especially Text area's? They take quite a lot of space, while sometimes only a small amount of text is inserted.

b) a maximum amount of characters that can be added to a Text area or Input text field? We use one field with with a maximum, it would be easier if this was physical restriction as well, so people don't have to count.

By the way, when we first used a input text field, that allowed users to paste the embed code of Youtube videos into the field, this worked well, but the content of the field seemed to have disappeared from the field on reopening. Switching to a text area field works well, but a input text field would look nicer in the interface because of the height thing.
Marza
 
Posts: 85
Joined: Sat Dec 12, 2009 8:49 pm

Re: Bonus Fields

Postby verbaljam » Fri Jul 22, 2011 11:25 am

I just installed the 1.17 version of this very useful plugin, but could you please list the changes in this thread, like you normally do?
Documentation is essential, you know. ;-)
Especially it's important to know if the following problems have been solved:
- bug with image field (see my posting above)
- large size of text field.
- text field does not align left properly on HD screens.
If you read Dutch, you read Verbal Jam.
Lack of documentation makes even the best program useless...
verbaljam
 
Posts: 143
Joined: Thu Apr 22, 2010 8:32 am
Location: Amsterdam

Re: Bonus Fields

Postby Schop » Tue Aug 02, 2011 4:56 am

I've noticed a problem with the bonusfields extension:

I have it setup so I it adds a textfield to an entry, where I can paste a link to a related item, like

Code: Select all
http://www.example.com/whatever/more/bla.html


It works fine, until I open the entry for editing. The text in the field then changes to

Code: Select all
/2011-08-02/
(or something similar)

I've tried several different types in the bonusfields configuration, but to no avail...what's wrong?

Edit:solved...apparently you should not call your bonusfield 'link'.
User avatar
Schop
Contributor
 
Posts: 485
Joined: Mon Apr 21, 2008 1:47 pm
Location: Hudson, Ohio

Re: Bonus Fields

Postby marcelfw » Tue Aug 02, 2011 7:54 am

It's a PivotX thing. 'link' is automatically filled with the link to the current entry/page.
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 1 guest

cron