Keyword

Advanced Search

Search Results (Searched for: extra field order)

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
06 Sep 2016 19:00
Replied by Krikor Boghossian on topic Background Image changing for every Product detailed page

Background Image changing for every Product detailed page

Category: English K2 Community

K2 is free, has been and will be free.
What did you pay exactly?

The plugin unfortunately has to be a custom K2 plugin.
You can find an example here getk2.org/extend/extensions/90-example-k2-plugin-for-developers

Alternatively you can use jQuery's data() function api.jquery.com/data/ in order to populate the data of an extrafield - github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L104-L109 in order to grab the image's URL and use it to create an inline CSS rule.
  • Jerzy Z Gierzy
  • Jerzy Z Gierzy's Avatar
06 Sep 2016 11:48
K2 items database call was created by Jerzy Z Gierzy

K2 items database call

Category: English K2 Community

Hi!
Im building a custom RSS feed containing K2 items.
-At what point in the code does com_K2 make a database call? I want to be able to order results by a `extra_field` containing end or start date of an event.
-Same goes for items showing in user `add event` panel: i want to query events based on date.
-At what point does com_K2 construct it's feed items? in components/com_k2/views/itemlist/view.feed.php the feed object has already a 'description' property - which is inconvinent for me and i want to split it back into 'K2IntroText' and 'K2FeedImage'
- I noticed there are issues with utf8 encoding if you don't use proper database methods. Which methods should I use?

Thanks in advance, Jerzy
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
02 Sep 2016 12:47
Replied by Krikor Boghossian on topic Background Image changing for every Product detailed page

Background Image changing for every Product detailed page

Category: English K2 Community

In order to use dynamic backgrounds you can either use a JS solution which populates the data from the value of an extrafields, or you need a custom K2 plugin.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
31 Aug 2016 12:29
Replied by Krikor Boghossian on topic want to use original image in item image

want to use original image in item image

Category: English K2 Community

Hello,

There is a solution which requires hacking K2 (I would not recommend this)
www.gavick.com/forums/general-discussion/seo-k2-image-18208

You can use an extension called econa www.firecoders.com/extensions/econa

Or you can use an extrafield in order to preserve the original image.
Some template tweaks are needed but you get a starting point here:
github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L77-L82
  • Thomas Hultgren
  • Thomas Hultgren's Avatar
23 Aug 2016 17:07
[SOLVED] Hyphen in my i-frame was created by Thomas Hultgren

[SOLVED] Hyphen in my i-frame

Category: English K2 Community

Hi,

I got a recent problem. I use iframes in K2 extrafields and it have worked perfect until now. I'll have tried to delete the hyphen in the iframe tag but after saving it comes back again? below is the iframe tag as it shows in the extrafields.

<i-frame src="player.vimeo.com/video/164408327" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen>
<p><a href="vimeo.com/164408327">Efter vågen from vimeo.com/teaterpero">Teater Pero on vimeo.com">Vimeo.


<i-frame src="player.vimeo.com/video/152949349" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen>

vimeo.com/152949349">Efter vågen - intervju under repetetitionsarbetet from vimeo.com/teaterpero">Teater Pero on vimeo.com">Vimeo.



Regards Thomas
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
16 Aug 2016 13:38
Replied by Krikor Boghossian on topic K2 Items view detail page some Fields are not coming

K2 Items view detail page some Fields are not coming

Category: English K2 Community

You can use extra fields in order to populate other data you might need in your template.
You can render a specific extrafields like this: github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L104-L109
  • John-Eilif Eliassen
  • John-Eilif Eliassen's Avatar
29 Jun 2016 15:39 - 29 Jun 2016 15:40
Replied by John-Eilif Eliassen on topic if else on extrafield

if else on extrafield

Category: English K2 Community

Here is the table from "db__k2_extra_fields".
IDNameValueTypeGroupPublishedOrdering
2KS{"name":null,"value":"","target":null,"alias":"KS","required":0,"showNull":0}textfield112
  • Massimo Zanotto
  • Massimo Zanotto's Avatar
28 Jun 2016 16:54 - 30 Jun 2016 16:56
Replied by Massimo Zanotto on topic Retrieve a single extra_field value

Retrieve a single extra_field value

Category: English K2 Community

For everyone else who will need this in the future, this is what i did:

Insert the following code directly inside the dropdown field in RSFormPro
//<code> JLoader::register('Services_JSON', JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'lib'.DS.'JSON.php'); $jinput = JFactory::getApplication()->input; $nl = "\n"; $output = "|-- Select a product --".$nl; $db = JFactory::getDBO(); $query = $db->getQuery(true); $query = "SELECT p.id,p.title, p.extra_fields, p.alias, c.name AS category FROM `#__k2_items` AS p INNER JOIN (`#__k2_categories` AS c) ON (p.catid = c.id) WHERE p.published = 1 AND p.trash = 0 AND c.parent = 1 ORDER BY c.name ASC, TRIM(p.title) ASC"; $db->setQuery($query); $products_list = $db->loadObjectList(); $p_cat = ""; $tot_prod = count($products_list); $x = 1; $json = new Services_JSON; foreach($products_list AS $p){ $jsonObjects = $json->decode($p->extra_fields); // $code is the the name of the only extra_fields that i need, but even the other extra_fields are inside the $jsonObject // so if you need another extra_field you can write: list($xf1,$xf2,$xf3,etc...,etc...,etc...) = $jsonObjects; list($code) = $jsonObjects; if($p->category != $p_cat) { $output .= $p->category."[g]".$nl; } $current_jinput_id = $p->id.$p->alias; $checked = $jinput->get('id') == $current_jinput_id ? "[c]" : ""; $output .= $p->id."|".$code->value." - ".$p->title."".$checked; if($x != $tot_prod) { $output .= $nl; } $p_cat = $p->category; $x++; } return $output; //</code>

Hope this help
Max
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
24 Jun 2016 14:47
Replied by Krikor Boghossian on topic K2 Extra fields

K2 Extra fields

Category: English K2 Community

Hello,

1, Yes but you need to manually develop the presentation (select element).
You can render a specific extrafield like this ->
github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L104-L109

In order to create a <select> element you might need to manipulate the value using PHP's explode() method.

2. Price Range is not available by default. You need an extension for creating custom extra field types.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
23 Jun 2016 17:47
Replied by Krikor Boghossian on topic Retrieve a single extra_field value

Retrieve a single extra_field value

Category: English K2 Community

Ok, I have the code halfway ready,
Look at this post -> www.joomlaworks.net/forum/k2-en/46055-programmatically-grabbing-a-list-of-item-titles#155820

With this code you can load items which match certain criteria.
Once you get the object you can access all of its properties.

In order to display only a specific extrafield based on its alias you need this code -> github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L105-L109
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
17 Jun 2016 14:14
Replied by Krikor Boghossian on topic Add Image From External Link via Image Tab

Add Image From External Link via Image Tab

Category: English K2 Community

Hello,

Only images stored locally are supported as K2 images.
You need an extrafield in order to have remotely stored images.

However this will require changes in your template and I am not sure that BM Slider supports it.
  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
16 Jun 2016 16:05
Replied by JoomlaWorks Support Team on topic [SOLVED] Extrafields - Greek Words

[SOLVED] Extrafields - Greek Words

Category: English K2 Community

Hello John.

It is normal, nothing wrong with your installation.
The extrafield data is encoded in json format so all the unicode characters are converted to \uxxxx sequences. In order to to "translate" them back to Greek you need to decode the data json_decode().

php.net/manual/en/function.json-decode.php
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
14 Jun 2016 12:27
Replied by Krikor Boghossian on topic enhanced weblink component with K2

enhanced weblink component with K2

Category: English K2 Community

Hello Bernd,

All these elements are available in K2 by default.
Furthermore you can use extra fields, in order to display specific fields like the source or the actual link.

These videos will help you set up K2.
getk2.org/documentation/k2class2012
  • natanja
  • natanja's Avatar
14 Jun 2016 11:21
Replied by natanja on topic fixed order in backend messes frontend

fixed order in backend messes frontend

Category: English K2 Community

I have tried a new version of the k2 dev and the extra fields are working great now!! YEEEEY :-)

(warning message: "The image was not uploaded. Please ensure that you used a valid image file and that file uploads are properly configured on your server." is still there. Whether I save a article with an image, without an image or with a new image which uploads fine, I get this message when saving an item)
  • natanja
  • natanja's Avatar
13 Jun 2016 16:52
Replied by natanja on topic fixed order in backend messes frontend

fixed order in backend messes frontend

Category: English K2 Community

what should I do? Go back to 2.7.0. and not removing values of extra fields? or will there be soon a fix for these bugs?
  • natanja
  • natanja's Avatar
10 Jun 2016 13:04
Replied by natanja on topic fixed order in backend messes frontend

fixed order in backend messes frontend

Category: English K2 Community

I have installed 2.7.1 (dev)
but that did not fix the issue.
I noticed that 10,20,30 and 40 are now working as seperate values. But newly added values after installing 2.7.1. are still combined.
I did another test by clicking on the save button after adding one value. And after the save I added one value again and saved it, and then the values are not combined but seperate.... but that is not ideal when adding multiple values to a extra field.
I also noticed that every item has the latest added value 120, even when I did not set any value (so it should have the null value) but als when I had set a value (for example 40), it is changed to 120 because of the newly added values :-(

oh I also get a blue warning message after saving my item that has images but I did not upload any images upon saving: "The image was not uploaded. Please ensure that you used a valid image file and that file uploads are properly configured on your server."
  • natanja
  • natanja's Avatar
10 Jun 2016 01:42
Replied by natanja on topic fixed order in backend messes frontend

fixed order in backend messes frontend

Category: English K2 Community

Hi Teo,

screenshot: imgur.com/LHwQ4rl
you see after the word test: 10203040, while 10, 20, 30 and 40 are four different values of the extrafield test.

I had multiple extrafields with multiple values before changing the code in order to fix the backend issue.
After I added the fix, I added some more values in one of my extrafields.. In the backend I can select just one value, but in the frontend al new added values after the fix are combined together as one value. Not only in my item template but also in my extrafield search dropdownbox I only see last added value.
  • Alaabouch
  • Alaabouch's Avatar
09 Jun 2016 15:02
problem with some extrafield was created by Alaabouch

problem with some extrafield

Category: English K2 Community

Hi,

I install the plugin "performance boost k2" following an advice from a friend in order to improve the speed of search in the search module. and sincerely the plugin worked well but he creates a problem with some additional fields.

after installing two other extra fields does not appear in the results of research (there are empty since the administration page) but I'm looking these fields from the database I find the values ????

Any ideas ?
  • natanja
  • natanja's Avatar
07 Jun 2016 21:08

fixed order in backend messes frontend

Category: English K2 Community

Hello,
I was really happy when I read about the fix in order to delete values without messing the order. See topic: www.joomlaworks.net/forum/k2-en/45526-solved-order-of-values-of-extra_fields#154107

But today I noticed that it goes horrible wrong in the frontend with newly added values for a extrafield. All newly added values are combined together as one value in the frontend. Can this also be fixed? I hope so!

Kind regards
  • Joe Campbell
  • Joe Campbell's Avatar
17 May 2016 14:37
Replied by Joe Campbell on topic Search item by ID in admin panel?

Search item by ID in admin panel?

Category: English K2 Community

Would it be possible to create a plugin that offers item ID and extra field search capabilities.

It could be executed with a dropdown positioned next to the search field, offering the folowing selections:
- title & body
- item ID
- extra field 1
- extra field 2
- extra field 3

Note: the extra fields to be included in the search dropdown (as well as the field order) would need to be specified via the plugin parameters.

If this is all possible, I would call the plugin "K2 Admin Search"
Displaying 81 - 100 out of 530 results.

Powered by Kunena Forum