K2 Extra Fields data is parsed incorrectly?

News Show Pro GK5 - flexible, responsive and easily extendable free Joomla module support forum.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Oct 17, 2014 6:43 pm
So I have a weird problem...

I've created 2 K2 Extra Fields (aliases: "month" and "day") for a K2 category using the "dropdown" option so users can select a month (Jan, Feb, Mar, Apr, May, etc.) and a day (1, 2, 3, 4, 5, 6, etc.).

I then created a NSP GK5 module to display the items from that category. I created a custom article format to display my Extra Fields, and it's working fine, except that it's not pulling the correct data from the Extra Fields. Instead of pulling the month name (i.e. "Nov"), it's pulling the number of the option (i.e. "11"). At first, I thought that it was pulling the position of the option in the array, but since the array is zero-based, "Nov" would pull as "10" rather than "11", right?

You can view the issue here:

http://projects.discoverrg.com/kfn/ (example of the NSP bug)
http://projects.discoverrg.com/kfn/get- ... nt-title-3 (example of the Extra Fields actual data)
User avatar
Fresh Boarder

GK User
Fri Oct 17, 2014 11:08 pm
Hello,

The extra fields supports only the text values, so all radio/select types of the extra field are currently unsupported.
User avatar
Administrator

GK User
Sat Oct 18, 2014 1:33 am
Okay, I see.

Are there plans to add support for the other Extra Fields types in the future?
User avatar
Fresh Boarder

GK User
Sat Oct 18, 2014 3:59 pm
I will consider it, because there is more and more requests for it - but all will depends from the database operations efficiency.
User avatar
Administrator

GK User
Thu Oct 30, 2014 12:31 pm
Hi

I am interested how u got the info block to display the extra field?

TIA
User avatar
Gold Boarder

GK User
Thu Oct 30, 2014 12:47 pm
@PhoenixGB - it seems to be an article format usage not a standard layout with info block :)
User avatar
Administrator

GK User
Mon Nov 03, 2014 1:26 pm
Hi Teitbite

Is there any documentation for this?
User avatar
Gold Boarder

GK User
Mon Nov 03, 2014 1:44 pm
User avatar
Administrator

GK User
Mon Nov 03, 2014 1:57 pm
Hi Teitbite


I am not seeing the Article Format Text window??

The NSP version I have is v1.5.1

TIA

Kev
User avatar
Gold Boarder

GK User
Mon Nov 03, 2014 1:59 pm
So please upgrade the module to the newest version, btw I'm not a teitbite, I'm dziudek ;)
User avatar
Administrator

GK User
Mon Nov 03, 2014 2:00 pm
Lol, oops sorry about that :)
User avatar
Gold Boarder

GK User
Mon Nov 03, 2014 2:11 pm
Thanks dziudek

Will have a play with this :)
User avatar
Gold Boarder

GK User
Mon Nov 03, 2014 2:18 pm
It just seems to be displaying the extra field alias not the value, any ideas?

http://joomdev.me/ises2/events.html
User avatar
Gold Boarder

GK User
Mon Nov 03, 2014 4:24 pm
Please paste here your article format code.
User avatar
Administrator

GK User
Mon Nov 03, 2014 4:32 pm
Hi

I used the demo code and changed the alias to suit, planned on formatting once I knew it was all working how i wanted it to.

Code: Select all
<div class="gkEventInfo">
<a href="{URL}"><img src="{IMAGE_SRC}" alt="{TITLE}" /></a>
<div>
<h3><a href="{URL}">{TITLE}</a></h3>
<small><i class="gk-icon-clock-solid"></i>{{EventDate}}</small>
</div>
</div>
User avatar
Gold Boarder

GK User
Mon Nov 03, 2014 4:52 pm
EventDate is a name of your field or your field alias? You should use an alias of the extra field.
User avatar
Administrator

GK User
Mon Nov 03, 2014 5:33 pm
EventDate is the Alias, the title is Event Date

The field is a text field

Image
User avatar
Gold Boarder

GK User
Tue Nov 04, 2014 5:53 am
Hi

I created a new extra fields group and two additional extra text fields, aliases are {{doe}} (date of event) and {{location}} (location of event), I then added the new field aliases to the article format text and the doe appears as the alias (no curly brackets) but the location appears with the double curly brackets?

Any ideas?, this is more or less the last thing I need to sort before handover :(

TIA
Kev
User avatar
Gold Boarder

GK User
Tue Nov 04, 2014 10:40 am
Please send me a PM message with FTP and back-end access - I will analyze this issue.
User avatar
Administrator

GK User
Thu Nov 06, 2014 9:49 am
Your issue was caused by fact that you didn't enabled the "Get K2 Extra Fields" option under the "K2 Additional settings" tab.Please fill the extra fields in all displayed articles - then all items will be displayed correctly.
User avatar
Administrator

GK User
Thu Nov 06, 2014 10:15 am
Brilliant, thanks dziudek :)
User avatar
Gold Boarder

GK User
Fri Nov 14, 2014 1:24 pm
Hi,

I am having the same issue, but with these settings:

Get K2 extra fields - on
Use own article format - on
Article format - none selected
Article format text -
<div>
<a href="{URL}"><img src="{IMAGE_SRC}" alt="{TITLE}" /></a>
<div>
<h3><a href="{URL}">{TITLE}</a></h3>
<small>{{EventDate}}</small>
</div>
</div>

My additional field alias is EventDate

this is the result:
http://grandtourcycling.co.uk/login
the site template is edited Protostar, if that is relevant.

Any ideas?

Many thanks,
Wayne
User avatar
Fresh Boarder

GK User
Fri Nov 14, 2014 2:08 pm
dziudek wrote:Your issue was caused by fact that you didn't enabled the "Get K2 Extra Fields" option under the "K2 Additional settings" tab.Please fill the extra fields in all displayed articles - then all items will be displayed correctly.


Did u check this was turned on?
User avatar
Gold Boarder

GK User
Fri Nov 14, 2014 2:27 pm
Thanks, yeah, that is definitely on... that is the weird thing.
User avatar
Fresh Boarder

GK User
Fri Nov 14, 2014 5:00 pm
@wangolini - are you using the latest version of the module? Did you tried to set the lowercase alias for your item custom field?
User avatar
Administrator

GK User
Fri Nov 14, 2014 5:05 pm
Ahh, thanks dziudek.

Changing the alias to lower case sorted the problem!

Cheers,
Wayne
User avatar
Fresh Boarder

GK User
Sun Nov 16, 2014 5:17 am
Hi

Whats the correct alias for the introtext, tried [INTROTEXT}, {introtext{ and {Introtext}?

TIA
Kev
User avatar
Gold Boarder

GK User
Mon Nov 17, 2014 1:59 pm
The introtext uses just the {TEXT} tag.
User avatar
Administrator

GK User
Wed Feb 04, 2015 11:52 am
Hi! I would also like to add K2 Extra Fields to News Show Pro GK5, but I would like to do this in the module mode "Grid News". How do I do this?
User avatar
Gold Boarder

GK User
Wed Feb 04, 2015 1:48 pm
@hisslik - the portal modes doesn't contain an area for the K2 custom fields and adding it is a custom work beyond of our technical support.
User avatar
Administrator


cron