Keyword

Advanced Search

Search Results (Searched for: extra field order)

  • Andrea
  • Andrea's Avatar
14 Sep 2020 10:51
K2 item - page title extra field not working was created by Andrea

K2 item - page title extra field not working

Category: English K2 Community

Hi, as always thanks for the super reliable support.
This time i must be doing something wrong with the pagetitle extra field i tried to set for the new website i'm working on. I previously managaed to do this on other websites but time has passed and i no longer remember the steps.
Anyway i assigned the items of this category ( valpelliceoutdoor.it/attivita/trekking/bobbio-pellice ) the extra-field "PageTitle", in order to have it used as the browser page title instead of the default one.
I then proceeded to put this in item.php, just below the itemHeader opening tag:

Warning: Spoiler!


But this does not work. Any suggestions?
  • Fotis
  • Fotis's Avatar
31 Jul 2020 17:51
Replied by Fotis on topic extra fields

extra fields

Category: English K2 Community

Your site's template is obviously using a template override for K2's item.php. Can you share that file in the forum so I can propose the changes to be performed in order to get these values displayed in different lines?
  • Slartibartfast
  • Slartibartfast's Avatar
11 May 2020 17:37 - 11 May 2020 17:37
Exclude extra field but use the data in other component was created by Slartibartfast

Exclude extra field but use the data in other component

Category: English K2 Community

Hi all!
i have a website that uses plenty of extrafields for a catalogue of products.
Now i need to create a second gallery and a slideshow per product/item and even more custom showcases in the future.
So i though of adding for example 5 image extra fields at the extra fields group i have assigned already, pull these images from widgetkit (or any other gallery/slideshow component) and present it as gallery/slideshow etc via shortcode.
BUT in the above case the 5 images will show anyway as ... images.

i read this reply from Fotis ( www.joomlaworks.net/forum/k2-en/49619-extra-fields#169013 ), which is very helpful in order to separate each extra field.
Could in some way extend this and exclude the 5 image fields from displaying in the item page?
Or any other possible solution about the matter actually ... :)
  • Florin Mircea Rusu
  • Florin Mircea Rusu's Avatar
13 Feb 2020 12:40
Replied by Florin Mircea Rusu on topic How to display attachment in search result

How to display attachment in search result

Category: English K2 Community

Same question for me as well.
In search results, /public_html/components/com_k2/templates/generic.php file, if i add $item->attachments, nothing happens since $item->attachments is empty.
I see in K2 configuration, at Date & search listings there is not mentioned the attachments as an display option. Extra fields and Comments are :)

While i don't mind about missing in k2 configuration I'm wondering where should I look in order to instanciate $item->attachments.

Help please.
  • Fotis
  • Fotis's Avatar
30 Nov 2019 10:17
Replied by Fotis on topic Extra fields ordering without hacking core file [model file using extra_fields]

Extra fields ordering without hacking core file [model file using extra_fields]

Category: English K2 Community

Re-ordering by extra fields as you mention is not really practical because the data that is held in that field is basically an array of JSON objects.
  • agan E
  • agan E's Avatar
28 Nov 2019 16:49 - 28 Nov 2019 16:51
Extra fields ordering without hacking core file [model file using extra_fields] was created by agan E

Extra fields ordering without hacking core file [model file using extra_fields]

Category: English K2 Community

Hi Fotis,

Can we expect extra field ordering option in upcoming update. currently we can't done it without hacking core file like the following:
File path: model/itemlist.php

case 'alpha' :
$orderby = 'i.extra_fields DESC';
break;

you mentioned something like "I'll note it down to add a re-order option in the coming versions." in the following tread but last update(K2 v2.10.1) not having this feature. and also not in "What's next" (v2.10.2) .

www.joomlaworks.net/forum/search?query=extra%20field%20order&childforums=1

I'm eagerly waiting for this feature. looking forward to your reply with fingers crossed.

Thanks,
Agan
Displaying 1 - 6 out of 6 results.
Powered by Kunena Forum