Keyword

Advanced Search

Search Results (Searched for: extra field order)

  • piotr
  • piotr's Avatar
25 Sep 2012 13:54
Replied by piotr on topic Sort by Extra-Field-Content?

Sort by Extra-Field-Content?

Category: English K2 Community

Hi

I am using this module
joomcar.net/car-catalog

for sorting the content according to the extra fields.
You have to use one of the Multi-select list, Dropdown selection etc. extra fields (that the options have been added previously to the database) in order to make it work correctly and it does it's job very well.

Worth the money !
  • ontwerps
  • ontwerps's Avatar
17 Sep 2012 19:31

extra column items table with extra field

Category: English K2 Community

(admin template override)
/Joomla folder/administrator/templates/your admin template/html/com_k2/items/default.php

How can i add extra column(s) to the admin template for items.

I want extra column with the values of the extra fields.

ex:
# Title Featured Published Order Category extra_field Author ect.....
  • Lefteris
  • Lefteris's Avatar
06 Sep 2012 15:59
Replied by Lefteris on topic Extra fields - unwanted borders on tables

Extra fields - unwanted borders on tables

Category: English K2 Community

In order to remove the border do not provide any border at all in your HTML and then set border to none using CSS. Regarding the message, maybe it's coming from your editor.
  • jo
  • jo's Avatar
06 Sep 2012 01:20

Extra fields - unwanted borders on tables

Category: English K2 Community

Thanks for the response Lefteris

I have tried in the CSS file, to no avail. Also, this has never happened before, I have built about a dozen sites using Joomla/K2.. any othr thoughts?

For the message, this is not unique to this site, but is unique to Extra Fields, doesn't occur when not editing extra fields. Can you think of any extension that might cause this response? TO be honest I don't know where to begin looking!

Many thanks

Jo
  • Tarasiadis Miltos
  • Tarasiadis Miltos's Avatar
05 Sep 2012 16:40
Replied by Tarasiadis Miltos on topic Extra fields problem

Extra fields problem

Category: English K2 Community

I have a problem with the json too for the extra_fields constraction.

All my fields decoded as
"extra_fields": [ { "id": "1", "name": "Ημερομηνία Event", "value": "Τετάρτη, 05 Σεπτεμβρίου 2012", "type": "date", "group": "1", "published": "1", "ordering": "1" }, { "id": "5", "name": "Facebook Event Page", "value": "dfgdfgdfgd", "type": "textfield", "group": "1", "published": "1", "ordering": "2" } ],

but on some items I have problem and the produced json code is
extra_fields": { "0": { "id": "1", "name": "Ημερομηνία Event", "value": "Τρίτη, 04 Σεπτεμβρίου 2012", "type": "date", "group": "1", "published": "1", "ordering": "1" }, "2": { "id": "6", "name": "Facebook Event Album URL", "value": "dfgdgdfgd", "type": "textfield", "group": "1", "published": "1", "ordering": "3" } },

So in some cases the extra_fields produced as array [] and on some items the extra_fields produced as objects {}.

But the items is on the same category and I fill the same style data on extra fields.
What is happened?
  • Lefteris
  • Lefteris's Avatar
05 Sep 2012 14:01
Replied by Lefteris on topic Extra fields - unwanted borders on tables

Extra fields - unwanted borders on tables

Category: English K2 Community

Hi. You can modify the table borders as you wish using CSS. Regarding the message it is not coming from K2. Check any other extensions that maybe are causing this.
  • jo
  • jo's Avatar
05 Sep 2012 06:18

Extra fields - unwanted borders on tables

Category: English K2 Community

Oops, should clarify.....

The message popping up on save was also present on K2 2.5.4 on the old server

The problem with the borders has only presented since changing server. And appears on both 2.5.4 and 2.5.7

thanks

jo
  • jo
  • jo's Avatar
05 Sep 2012 06:13 - 05 Sep 2012 06:14

Extra fields - unwanted borders on tables

Category: English K2 Community

Hello

Joomla 2.5.6, K2 2.5.7 (problem also presented in K2 2.5.4)

I have moved my site from one server to another and now a couple of problems have arisen. I don't know where it is originating from, or whether it is something to do with the server or K2.

I place a table for my extra fields if the contents are going to spread out over more then 1 line. The reason for this is that I want the contents to line up to the left, not overflow below the field title.

Now, however, each of these tables has an unwanted border. I have tried specifying in the HTML for the field that there should be no border, or spacing, or padding. But as soon as I save the changes it deletes the "0" in the HTML for the table and presents a border.

<table border="" cellspacing="" cellpadding="" style="width: 100%;">

</table>

Please view here: www.studertrust.org/index.php/studer-trust-projects/schoolss/schools-in-myanmar/itemlist/category/311-0034-shweku-school

As you see, all tables have borders.

Also,everytime I go to save the page I am presented with the message shown on the JPEG attached.

Can anyone please advise?

Many thanks

Attachment not found

  • piotr
  • piotr's Avatar
04 Sep 2012 22:14 - 04 Sep 2012 22:23
Select Extra fields to display. was created by piotr

Select Extra fields to display.

Category: English K2 Community

Hi

I use K2 content module to display articles list on position-1 (a panel that slides down with jquery on main page) and it has everything desactivated but /Extra field/ on the /Item view options (common for either source)/ in order to show extra field on the listing such as: Author, Date, Location, Type etc.

I would like to display only Author and Location on the K2 content module AND keep all the extra fields on the article view (there are like 8 of them, but too many to show in a list)

I hope this isn't another unsolvable question of mine :)

Any help greatly appreciated.

[edit]
Joomla! 2.5.6 and K2 v2.5.7
  • Keith Dick
  • Keith Dick's Avatar
21 Aug 2012 17:59
Replied by Keith Dick on topic Placing Paypal button in extra field

Placing Paypal button in extra field

Category: English K2 Community

Having set up the extra field as a text field paste the code:

<form action="www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="GV49BAUW4EJAQ">
<input type="image" src="www.paypalobjects.com/en_GB/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>

All that displays in the front end is "form method="

Using the text area it shows the "Buy Now" button as it shoul but when clicked it refreshes the page instead of going to the PayPal site.

When looking at the code in the text field it has been altered to:

<form method="post"> <input type="hidden" name="cmd" value="_s-xclick" /> <input type="hidden" name="hosted_button_id" value="GV49BAUW4EJAQ" /> <input type="image" src="www.paypalobjects.com/en_GB/i/btn/btn_buynow_SM.gif" border="" name="submit" alt="PayPal — The safer, easier way to pay online." /> www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1" />

I have tried pasting this into the basic editor and using the HTML button and still get the same results.
  • abcd1234
  • abcd1234's Avatar
13 Aug 2012 14:33
How to order items by Extra Field Date was created by abcd1234

How to order items by Extra Field Date

Category: English K2 Community

Me and a colleague are developing a website using joomla, we have ditched the joomla article component and replaced it with K2.

A part of the site's content , is posting (using K2 items) upcoming Live Events, such as an upcoming music concert, containing info about that event, images etc.

We want to find out if its possible to order these items, by the Date of the Event, or in other words how to order these items by the Extra Field : Date, of the item. K2 core only let's us order these items by Date Published or Date Created which is not what we need.

If anyone knows an easy way to overcome this obstacle it will be deeply appreciated!
  • Andrew
  • Andrew's Avatar
05 Aug 2012 09:43
Replied by Andrew on topic Extra field values - ordering

Extra field values - ordering

Category: English K2 Community

+1 to that, ordering default values would be a huge improvement.

Like a Drupal taxomony list of terms.

An automatic alphabetical/numerical resort would be an improvement, so you don't have to delete every item to get back to the A's.

Easy enough to re-sort in phpmyadmin but don't think too many clients would be happy with that!

A
  • william white
  • william white's Avatar
21 Jul 2012 19:05
Replied by william white on topic How to style every single extra field?

How to style every single extra field?

Category: English K2 Community

The extra fields are designed to display in a two column format.
You can find this in either item.php or category_item.php of your override directory if you are using an override. (see docs above for k2 templating)
In order to style each extra field differently you will have to address the extra fields one at a time and apply the style you want in the item.php and the css files
Try creating a variable and address it like this $custom = $this->item->extra_fields; and then addressing extra fields for the item like echo $custom[1]->value; with your own divs around them
  • Carl Smith
  • Carl Smith's Avatar
21 Jul 2012 13:23

Frontpage Slideshow - Joomfish slide image translation problem

Category: Frontpage Slideshow

Hi, I'm hoping someone can help here as I've had a good search in effort to resolve a problem with changing the slide image per language.

I have a Joomla 1.5 site running FPSS 3.2.0, with the latest Joomfish release V2.2.3.

I can translate some of the slide content but, most importantly for me, I'm not able to change the slide image being referenced for other languages: it's not an option in the Joomfish translation page.


I can see how I can add more to the fpss_slides.xml in the Joomfish 'administrator/components/com_joomfish/contentelements' file BUT the extra lines I would add to reference changing the slide image can't be found in the database. So I've opened up the table 'jos_fpss_slides' in the database but can't find a field to reference the image path.

So here's an example of the extra lines to add to the XML file:
<field type="text" name="path" translate="1">Image</field>
<field type="text" name="path_type" translate="0" >Path_type</field>
<field type="text" name="thumb" translate="1">Thumb</field>


However, this is obviously creating the following error in Joomfish because the fields don't exist in the 'jos_fpss_slides' table:
No valid database connection: DB function failed with error number 1054
Unknown column 'c.path' in 'field list' SQL=SELECT c.id, c.title, c.custom, c.text, c.tagline, c.path, c.path_type, c.thumb, jfc.id as jfc_id, jfc.value as titleTranslation, jfc.modified as lastchanged, jfc.published as published, jfc.language_id, jfl.title as language, jfc.reference_id as jfc_refid FROM jos_fpss_slides as c LEFT JOIN jos_jf_content as jfc ON c.id=jfc.reference_id AND jfc.reference_field='title' AND jfc.reference_table='fpss_slides' AND jfc.language_id=3 LEFT JOIN jos_languages as jfl ON jfc.language_id=jfl.lang_id ORDER BY c.title LIMIT 0, 20



So, the question in short :) is please can someone help me translate images for slides in Joomfish?

Thanks in advance.
  • Jerry
  • Jerry's Avatar
17 Jul 2012 17:50

item -> extra_fields empty in onBeforeK2Save

Category: English K2 Community

I need to read the extra fields in onBeforeK2Save because I have to set the $item->title. The $item->extra_fields is NULL. So far, I can only read the extra fields from the $_POST and there the names are K2ExtraField_1, K2ExtraField_2, etc., which is not useful in trying to identify them.

What I basically want to do is something like this:
function onBeforeK2Save(&$item,$isNew) { // ... $item->title = $item->extra_fields[ "EventDate" ] . ", " . $item->extra_fields[ "EventTime" ]; // ... }

That's it.

I just found out the X in K2ExtraFields_X is the ID. For some reason the extra fields, though entered in a completely different order, were now ordered in ID order, so I thought they were order numbers and not IDs. Although a key would still be better than an ID (DATE, HOUR, and MINUTE instead of 3, 1, and 2), I can now identify the extra fields.

Still, I don't know why it's called $item->extraFields in the template and ->extra_fields in the onBeforeK2Save, and why the latter is NULL.
  • Jerry
  • Jerry's Avatar
17 Jul 2012 04:22

item -> extra_fields empty in onBeforeK2Save

Category: English K2 Community

Hello,

I've been trying and trying but cannot get it to work. I hope someone can give some useful clues here.

I want people to enter calendar events: date, hour, minute, description. Nothing more. So I hide title, alias, publish up, publish down, category.

I have a template override (/templates/MYTEMPLATE/html/com_k2/MYSUBTEMPLATE/itemform.php) to hide all but the few extra fields. As far as I can tell, I have to use this:
$efs = array(); foreach ( $this->extraFields as $ef ) { switch ( $ef->id ) { case 1: $efs[ "datum" ] = $ef; break; // for all extra fields, I check for the ID to know which field it is // the name/label might change afterwards so I cannot use that // pity that when I reinstall this website to production environment, // the IDs will change }

And when I have all fields in the $efs array, I do stuff like this:
<tr> <td align="right" class="key">Datum:</td> <td class="inputbox"> <span id="datum"><?php print $efs[ "datum" ]->element; ?></span> </td> </tr>

Then, in /plugins/k2/MYPLUGIN/myplugin.php, function onBeforeK2Save, I only get &$item and $isNew. The $_POST has K2ExtraField_1 etc. How do I get my definition of extra fields here? Or is the order the only way? How can I use something like K2ExtraField_Datum?

If I do that myself, I have to generate the inputs myself completely, making the extra field type useless. And I bet the extra fields will not be filled correctly.

Thanks!
Jerry
  • Rick Gonzalez
  • Rick Gonzalez's Avatar
14 Jul 2012 06:57
erro al crear categoria was created by Rick Gonzalez

erro al crear categoria

Category: Comunidad hispana oficial de K2

me aparece un error de que no tengo instalado el plugin

Al tratar de crear una categoria me aparecer este error


TableK2Category: :no almacenar
Table 'santiago_.pn15o_k2_categories' doesn't exist SQL=INSERT INTO `pn15o_k2_categories` (`id`,`name`,`alias`,`description`,`parent`,`published`,`access`,`ordering`,`params`,`language`) VALUES ('','dfjglkhuiytrew','qewadtkiul','
rtegrqwqw

','0','1','1','','{\"inheritFrom\":\"0\",\"theme\":\"orisite\",\"num_leading_items\":\"2\",\"num_leading_columns\":\"1\",\"leadingImgSize\":\"Large\",\"num_primary_items\":\"4\",\"num_primary_columns\":\"2\",\"primaryImgSize\":\"Medium\",\"num_secondary_items\":\"4\",\"num_secondary_columns\":\"1\",\"secondaryImgSize\":\"Small\",\"num_links\":\"4\",\"num_links_columns\":\"1\",\"linksImgSize\":\"XSmall\",\"catCatalogMode\":\"0\",\"catFeaturedItems\":\"1\",\"catOrdering\":\"\",\"catPagination\":\"2\",\"catPaginationResults\":\"1\",\"catTitle\":\"1\",\"catTitleItemCounter\":\"1\",\"catDescription\":\"1\",\"catImage\":\"1\",\"catFeedLink\":\"1\",\"catFeedIcon\":\"1\",\"subCategories\":\"1\",\"subCatColumns\":\"2\",\"subCatOrdering\":\"\",\"subCatTitle\":\"1\",\"subCatTitleItemCounter\":\"1\",\"subCatDescription\":\"1\",\"subCatImage\":\"1\",\"itemImageXS\":\"\",\"itemImageS\":\"\",\"itemImageM\":\"\",\"itemImageL\":\"\",\"itemImageXL\":\"\",\"catItemTitle\":\"1\",\"catItemTitleLinked\":\"1\",\"catItemFeaturedNotice\":\"0\",\"catItemAuthor\":\"1\",\"catItemDateCreated\":\"1\",\"catItemRating\":\"0\",\"catItemImage\":\"1\",\"catItemIntroText\":\"1\",\"catItemIntroTextWordLimit\":\"\",\"catItemExtraFields\":\"0\",\"catItemHits\":\"0\",\"catItemCategory\":\"1\",\"catItemTags\":\"1\",\"catItemAttachments\":\"0\",\"catItemAttachmentsCounter\":\"0\",\"catItemVideo\":\"0\",\"catItemVideoWidth\":\"\",\"catItemVideoHeight\":\"\",\"catItemAudioWidth\":\"\",\"catItemAudioHeight\":\"\",\"catItemVideoAutoPlay\":\"0\",\"catItemImageGallery\":\"0\",\"catItemDateModified\":\"0\",\"catItemReadMore\":\"1\",\"catItemCommentsAnchor\":\"1\",\"catItemK2Plugins\":\"1\",\"itemDateCreated\":\"1\",\"itemTitle\":\"1\",\"itemFeaturedNotice\":\"1\",\"itemAuthor\":\"1\",\"itemFontResizer\":\"1\",\"itemPrintButton\":\"1\",\"itemEmailButton\":\"1\",\"itemSocialButton\":\"1\",\"itemVideoAnchor\":\"1\",\"itemImageGalleryAnchor\":\"1\",\"itemCommentsAnchor\":\"1\",\"itemRating\":\"1\",\"itemImage\":\"1\",\"itemImgSize\":\"Large\",\"itemImageMainCaption\":\"1\",\"itemImageMainCredits\":\"1\",\"itemIntroText\":\"1\",\"itemFullText\":\"1\",\"itemExtraFields\":\"1\",\"itemDateModified\":\"1\",\"itemHits\":\"1\",\"itemCategory\":\"1\",\"itemTags\":\"1\",\"itemAttachments\":\"1\",\"itemAttachmentsCounter\":\"1\",\"itemVideo\":\"1\",\"itemVideoWidth\":\"\",\"itemVideoHeight\":\"\",\"itemAudioWidth\":\"\",\"itemAudioHeight\":\"\",\"itemVideoAutoPlay\":\"0\",\"itemVideoCaption\":\"1\",\"itemVideoCredits\":\"1\",\"itemImageGallery\":\"1\",\"itemNavigation\":\"1\",\"itemComments\":\"1\",\"itemTwitterButton\":\"1\",\"itemFacebookButton\":\"1\",\"itemGooglePlusOneButton\":\"1\",\"itemAuthorBlock\":\"1\",\"itemAuthorImage\":\"1\",\"itemAuthorDescription\":\"1\",\"itemAuthorURL\":\"1\",\"itemAuthorEmail\":\"0\",\"itemAuthorLatest\":\"1\",\"itemAuthorLatestLimit\":\"5\",\"itemRelated\":\"1\",\"itemRelatedLimit\":\"5\",\"itemRelatedTitle\":\"1\",\"itemRelatedCategory\":\"0\",\"itemRelatedImageSize\":\"0\",\"itemRelatedIntrotext\":\"0\",\"itemRelatedFulltext\":\"0\",\"itemRelatedAuthor\":\"0\",\"itemRelatedMedia\":\"0\",\"itemRelatedImageGallery\":\"0\",\"itemK2Plugins\":\"1\",\"catMetaDesc\":\"\",\"catMetaKey\":\"\",\"catMetaRobots\":\"\",\"catMetaAuthor\":\"\"}','*')
  • McYoda
  • McYoda's Avatar
11 Jul 2012 15:40
Replied by McYoda on topic Extra field ordering disabled

Extra field ordering disabled

Category: English K2 Community

Hi
Oh my gosh. So easy. Thanks for this tip.

Greetings
  • Lefteris
  • Lefteris's Avatar
11 Jul 2012 15:31
Replied by Lefteris on topic Extra field ordering disabled

Extra field ordering disabled

Category: English K2 Community

Hi. Click on order to sort by this column. Then you can reorder.
  • McYoda
  • McYoda's Avatar
11 Jul 2012 12:55
Extra field ordering disabled was created by McYoda

Extra field ordering disabled

Category: English K2 Community

Hi everybody
I'm an absolute K2 newbie and trying my first steps.
Created some extra fields. But now I'd like to reorder them in the admin panel. which does not seem possible. The sorting arrows as well as the number fields are disabled.

Attachment not found



Why is that? How to change this behaviour?

Thanks for any hints.
McYoda
Displaying 321 - 340 out of 529 results.

Powered by Kunena Forum