Keyword

Advanced Search

Search Results (Searched for: extra field order)

  • Denis
  • Denis's Avatar
26 Oct 2015 19:10
Replied by Denis on topic costum field text area

costum field text area

Category: English K2 Community

Hi, thanks for your help....

unfortunately it doesn't work

www.phi.it/bb/index.php?option=com_k2&view=item&layout=item&id=1&Itemid=182

i don't know if i added it wrong:
div.itemExtraFields {margin:16px 0 0 0;padding:8px 0 0 0;border-top:1px dotted #ddd;}
div.itemExtraFields h3 {margin:0;padding:0 0 8px 0;line-height:normal !important;}
div.itemExtraFields ul {margin:0;padding:0;list-style:none;}
div.itemExtraFields ul li {display:block;}
div.itemExtraFields ul li span.itemExtraFieldsLabel {display:block;float:left;font-weight:normal;color:#008AE6;margin:0 4px 0 0;width:30%;}
div.itemExtraFields ul li span.itemExtraFieldsValue {overflow: hidden;}

by the way thanks a lot
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
02 Oct 2015 16:45
Replied by Krikor Boghossian on topic insert additional fields in the header of the material

insert additional fields in the header of the material

Category: English K2 Community

Hello,

Unfortunately extrafields are only available for items at the moment.
In order to add data to different elements, you need a K2 plugin.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
30 Sep 2015 20:08
Replied by Krikor Boghossian on topic clickable author link in article view

clickable author link in article view

Category: English K2 Community

There is actually a manual way.
You can create a new extrafield, text type, and store the link in that field.

Then in your overrides (getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates) in the category-item or item (or both ) items, you can render that field inside an tag.

Locate this block of code:
 <?php else: ?> <?php echo $this->item->author->name; ?> <?php endif; ?>

In order to render a specific extrafield in your template you can use this as a starting point
github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L103-L107

Just make sure to replace the alias and be careful where $this->item and $item are being used.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
01 Sep 2015 13:31
Replied by Krikor Boghossian on topic "Latest From ...." does not update

"Latest From ...." does not update

Category: English K2 Community

@pathfinder, The alias is used in sites in order to accommodate content from guest authors. It is not really meant as a nickname. You can use extrafields and template overrides in order to introduce a nickname to your authors.

@Donald Make sure that the field is indeed deleted, no blank characters etc..
  • iatriko
  • iatriko's Avatar
31 Aug 2015 21:03
1064 error in extra fields was created by iatriko

1064 error in extra fields

Category: English K2 Community

This error came up when i create extra fields.


1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY exf.group, exf.ordering' at line 11 SQL=SELECT exf.*, exfg.name as groupname FROM j25_k2_extra_fields AS exf LEFT JOIN j25_k2_extra_fields_groups exfg ON exf.group=exfg.id WHERE exf.id > 0 AND published = 1 AND (exf.type = 'select' OR exf.type = 'multipleSelect' OR exf.type = 'textfield' OR exf.type = 'radio') AND exf.group = ORDER BY exf.group, exf.ordering


I have v.2.6.9 and joomla 3.4.2
  • Kumar Sara
  • Kumar Sara's Avatar
27 Aug 2015 17:33
Replied by Kumar Sara on topic My Feature Requests (Wish List) for K2 v3

My Feature Requests (Wish List) for K2 v3

Category: English K2 Community

Joe I setup a demo showing K2 as a banner manager. See reggae.websitedons.net/events

The 728x90 banner at the top are in rotation and randomly displayed by the K2 content module, more precisely, a revamped version of the module.

The Method
Create a text extra field for the banner URL - alias name exactly as topbanner
Create a radio extra field for new window or parent with options yes and no - alias exactly as newwin

Create a category and name it 728x90 banners
Set Item Image Options medium (or any other) to width 728
Set all options in all parameter tabs to hide (the module is handling display)

Add new items to the category with only the title and the Intro Image

The Module
As stated, we revamped the original K2 content module to do all kinds of stuff and just now added the banner display method so you can test. Get it at cmsenergizer.com/joomla-extensions/88-k2-content-module-revised Download the one with less download count. Its filename is mod_cmse_k2content-12-beta.zip I realized the title isn't showing because the display was modified.

Choose the category
Set Item Count to 1
Set Item Order to Random
Set Link Title to no
Set Image Size to Medium
Set Link Image to Ad Banner (this is the new addition for this demo)
Set Format to vertical-elements and clear the field below to just [image]
Assign to the position you want

----

All the content at the demo site is displayed only with K2
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
14 Aug 2015 13:47
Replied by Krikor Boghossian on topic Use com_weblink in Extra-Field

Use com_weblink in Extra-Field

Category: English K2 Community

This is easier Franz in other CMS' because they are not node-based CMS'. Take WP or Drupal for example everything is a post.

Joomla! on the other hand it is app based. Everything belongs to a different application.

This way plugins are required in order for applications to sync with other apps.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
11 Aug 2015 22:18
Replied by Krikor Boghossian on topic ID Extrafield

ID Extrafield

Category: English K2 Community

Unfortunately by default this is not possible, you will need a custom plugin in order to do this.
  • Joe Campbell
  • Joe Campbell's Avatar
17 Jun 2015 09:44 - 18 Jun 2015 02:02

K2 Power Tip: Customize Your K2 Back-End Experience

Category: English K2 Community

Use CM K2 Inline to customize your K2 back-end item list page:

- Show/Hide columns you want to see (title, published, ID, featured, etc.)
- Edit extra fields inline
- Batch edit extra fields
- Order columns as desired

What does this all mean:

- You can have a simple & clean item list page
- Simplify the item list page (workflow, pefect for low-tech clients)
- batch process (filter items then modify multiple items at once)

Best of all they offer clear & detailed instructions:
cm-k2-inline.readthedocs.org/en/latest/

One more best of all, I posted a few questions and suggestions on the developers forum and received a response in less than 24 hours.

Lean more about CM K2 Inline here:
www.extensions.joomla.org/extensions/extension/extension-specific/k2-extensions/cmk2inline

Make sure to check out the DEMO to experience it
  • Joe Campbell
  • Joe Campbell's Avatar
05 Jun 2015 16:17
Replied by Joe Campbell on topic [SOLVED] h3 header for extra field CSS

[SOLVED] h3 header for extra field CSS

Category: English K2 Community

Hello,

Modify your CSS to the following:

.itemExtraFields h3 {
padding: 5px 0;
font-size: 14px;
color: #fff;
background-color: #1dbaf4;
text-align: center;
border-radius: 3px;
}

I hope this helps,

Joe Campbell
  • quebecguitare
  • quebecguitare's Avatar
05 Jun 2015 13:54
[SOLVED] h3 header for extra field CSS was created by quebecguitare

[SOLVED] h3 header for extra field CSS

Category: English K2 Community

Hello, I am trying to aligh center this header but I can't do it.

This is what I got:

.itemExtraFields h3 {
padding: 5px 41px 5px;
font-size: 14px;
color: #fff;
background-color: #1dbaf4;
align-self: center;
border-radius: 3px;
}

Link: www.quebecguitare.ca/professeurs/montreal/emilie
(See "Informations Supplémentaires")

I think it's a mistake to use both padding and aligh-self. Any better solutions?
Thank you

Regards
  • Cz Vlask
  • Cz Vlask's Avatar
13 May 2015 15:42 - 13 May 2015 15:57
K2 vs flashChart was created by Cz Vlask

K2 vs flashChart

Category: English K2 Community

Hi, id like to use flashChart - www.jschmidt-systemberatung.de/index.php?option=com_content&view=article&id=176&Itemid=240&lang=en#overview
with K2 to show graphs generated from data saved in extrafields. But know next to nothing about databases and proper coding, so don't know how to call data from certain extra field in database.

Created simple sample page at vgamuseum.info/index.php/test-area where it works with standard data like number of hits, code looks like this.

{flashchart height="10000" width="90%" data="database" sql="Select title, hits From umhtg_k2_items Order By hits Asc" tooltip="#val# MPixel/s" title="Pixel Fillrate"}test007{/flashchart}

Now i need replace this part - sql="Select title, hits From umhtg_k2_items Order By hits Asc" - but cant simply replace "hits" for extra_fields, because data are stored there in this format:

[{"id":"1","value":"1"},{"id":"2","value":"Avenger"},{"id":"3","value":["6","8"]},{"id":"4","value":["16"]},{"id":"5","value":"16MB"},{"id":"6","value":["6","11"]},

So i need to call only one value from one id (in mine testing page for example i need value from id 29).

Is there any way how to do it?

Here is also image from phpmyadmin to see how looks data in extra_fields -
  • Joe Campbell
  • Joe Campbell's Avatar
11 May 2015 13:40
Replied by Joe Campbell on topic How to change introtext text area size

How to change introtext text area size

Category: English K2 Community

I ended up hacking the following file:
administrator/components/com_k2/views/items/tmpl/default.php

So now when I go to edit an item, I am presented with only 2 centered tabs (in the following order): Extra Fields & Content.

Best of all, it defaults to the Extra Fields tab which is a time saver. I set my site up where as 85% of the content/data for any given item is stored as an Extra Field (list & item image, title tag, schema, video, gallery, etc.)
  • Daniel
  • Daniel's Avatar
11 May 2015 07:48

Calendar extrafields datepickers - set first day of the week

Category: English K2 Community

Hi,

I can't figure out how to change the first day of the week on the extra fields datepickers, I hope you can help me.

In Joomla you can change it quite easily by editing the XML language files, specifically:
/language/en-GB/en-GB.xml and /administrator/ en-GB/en-GB.xml
<firstDay>0</firstDay> to <firstDay>1</firstDay> In order for Monday to be the first day in the datepickers.

However this does not seem to affect the datepickers showed by calendar type EXTRAFIELDS – sunday is still showing as the first day of the week.

I am trying to get monday to be the first day of the week in the backend and front end (item submit form – itemform.php).

How can it be done?

Many thanks!
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
06 May 2015 19:46
Replied by Krikor Boghossian on topic Sort Criteria for Attachments

Sort Criteria for Attachments

Category: English K2 Community

It's a nice solution, furthermore you can apply it on your templates so you won't need to edit core files.

As for the extra ordering field, unfortunately this is not possible.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
20 Mar 2015 14:12
Replied by Krikor Boghossian on topic k2 extra field -lightbox,javascript

k2 extra field -lightbox,javascript

Category: English K2 Community

Some sites cannot be embedded into iframes unfortunately.
As for the unexpected token error, I will need a link in order to see the issue.
  • Sophie
  • Sophie's Avatar
04 Mar 2015 18:35
Replied by Sophie on topic Extra Fields do not show in editform

Extra Fields do not show in editform

Category: English K2 Community

<?php
/**
* @version 2.6.x
* @package K2
* @author JoomlaWorks www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: www.gnu.org/copyleft/gpl.html
*/

// no direct access
defined('_JEXEC') or die;

$document = JFactory::getDocument();
$document->addScriptDeclaration("
Joomla.submitbutton = function(pressbutton){
if (pressbutton == 'cancel') {
submitform( pressbutton );
return;
}
if (\$K2.trim(\$K2('#title').val()) == '') {
alert( '".JText::_('K2_ITEM_MUST_HAVE_A_TITLE', true)."' );
}
else if (\$K2.trim(\$K2('#catid').val()) == '0') {
alert( '".JText::_('K2_PLEASE_SELECT_A_CATEGORY', true)."' );
}
else {
syncExtraFieldsEditor();
var validation = validateExtraFields();
if(validation === true) {
\$K2('#selectedTags option').attr('selected', 'selected');
submitform( pressbutton );
}
}
}
");

?>

<form action="<?php echo JURI::root(true); ?>/index.php" enctype="multipart/form-data" method="post" name="adminForm" id="adminForm">
<?php if($this->mainframe->isSite()): ?>
<div id="k2FrontendContainer">
<div id="k2Frontend">
<table class="k2FrontendToolbar" cellpadding="2" cellspacing="4">
<tr>
<td id="toolbar-save" class="button">
<a class="toolbar" href="#" onclick="Joomla.submitbutton('save'); return false;"> <span title="<?php echo JText::_('K2_SAVE'); ?>" class="icon-32-save icon-save"></span> <?php echo JText::_('K2_SAVE'); ?> </a>
</td>
<td id="toolbar-cancel" class="button">
<a class="toolbar" href="#"> <span title="<?php echo JText::_('K2_CANCEL'); ?>" class="icon-32-cancel icon-cancel"></span> <?php echo JText::_('K2_CLOSE'); ?> </a>
</td>
</tr>
</table>
<div id="k2FrontendEditToolbar">
<h2 class="header icon-48-k2">
<?php echo (JRequest::getInt('cid')) ? JText::_('K2_EDIT_ITEM') : JText::_('K2_ADD_ITEM'); ?>
</h2>
</div>
<div class="clr"></div>
<hr class="sep" />
<div id="k2FrontendPermissionsNotice">
<p><?php echo $this->permissionsMessage; ?></p>
</div>
<?php endif; ?>
<div id="k2ToggleSidebarContainer"> <a href="#" id="k2ToggleSidebar"><?php echo JText::_('K2_TOGGLE_SIDEBAR'); ?></a> </div>
<table cellspacing="0" cellpadding="0" border="0" class="adminFormK2Container table">
<tbody>
<tr>
<td>
<table class="adminFormK2">
<tr>
<td class="adminK2LeftCol">
<label for="title"><?php echo JText::_('K2_TITLE'); ?></label>
</td>
<td class="adminK2RightCol">
<input class="text_area k2TitleBox" type="text" name="title" id="title" maxlength="250" value="<?php echo $this->row->title; ?>" />
</td>
</tr>
<tr>
<td class="adminK2LeftCol">
<label for="alias"><?php echo JText::_('K2_TITLE_ALIAS'); ?></label>
</td>
<td class="adminK2RightCol">
<input class="text_area k2TitleAliasBox" type="text" name="alias" id="alias" maxlength="250" value="<?php echo $this->row->alias; ?>" />
</td>
</tr>
<tr>
<td class="adminK2LeftCol">
<label><?php echo JText::_('K2_CATEGORY'); ?></label>
</td>
<td class="adminK2RightCol">
<?php echo $this->lists; ?>
</td>
</tr>
<tr>
<td class="adminK2LeftCol">
<label><?php echo JText::_('K2_TAGS'); ?></label>
</td>
<td class="adminK2RightCol">
<?php if($this->params->get('taggingSystem')): ?>
<!-- Free tagging -->
<ul class="tags">
<?php if(isset($this->row->tags) && count($this->row->tags)): ?>
<?php foreach($this->row->tags as $tag): ?>
<li class="tagAdded">
<?php echo $tag->name; ?>
<span title="<?php echo JText::_('K2_CLICK_TO_REMOVE_TAG'); ?>" class="tagRemove">x</span>
<input type="hidden" name="tags[]" value="<?php echo $tag->name; ?>" />
</li>
<?php endforeach; ?>
<?php endif; ?>
<li class="tagAdd">
<input type="text" id="search-field" />
</li>
<li class="clr"></li>
</ul>
<span class="k2Note"> <?php echo JText::_('K2_WRITE_A_TAG_AND_PRESS_RETURN_OR_COMMA_TO_ADD_IT'); ?> </span>
<?php else: ?>
<!-- Selection based tagging -->
<?php if( !$this->params->get('lockTags') || $this->user->gid>23): ?>
<div style="float:left;">
<input type="text" name="tag" id="tag" />
<input type="button" id="newTagButton" value="<?php echo JText::_('K2_ADD'); ?>" />
</div>
<div id="tagsLog"></div>
<div class="clr"></div>
<span class="k2Note"> <?php echo JText::_('K2_WRITE_A_TAG_AND_PRESS_ADD_TO_INSERT_IT_TO_THE_AVAILABLE_TAGS_LISTNEW_TAGS_ARE_APPENDED_AT_THE_BOTTOM_OF_THE_AVAILABLE_TAGS_LIST_LEFT'); ?> </span>
<?php endif; ?>
<table cellspacing="0" cellpadding="0" border="0" id="tagLists">
<tr>
<td id="tagListsLeft">
<span><?php echo JText::_('K2_AVAILABLE_TAGS'); ?></span> <?php echo $this->lists; ?>
</td>
<td id="tagListsButtons">
<input type="button" id="addTagButton" value="<?php echo JText::_('K2_ADD'); ?> &raquo;" />
<br />
<br />
<input type="button" id="removeTagButton" value="&laquo; <?php echo JText::_('K2_REMOVE'); ?>" />
</td>
<td id="tagListsRight">
<span><?php echo JText::_('K2_SELECTED_TAGS'); ?></span> <?php echo $this->lists; ?>
</td>
</tr>
</table>
<?php endif; ?>
</td>
</tr>
<?php if($this->mainframe->isAdmin() || ($this->mainframe->isSite() && $this->permissions->get('publish') || ($this->permissions->get('editPublished') && $this->row->id && $this->row->published) )): ?>
<?php if($this->permissions->get('publish')): ?>
<tr>
<td class="adminK2LeftCol">
<label for="featured"><?php echo JText::_('K2_IS_IT_FEATURED'); ?></label>
</td>
<td class="adminK2RightCol">
<?php echo $this->lists; ?>
</td>
</tr>
<?php endif; ?>
<tr>
<td class="adminK2LeftCol">
<label><?php echo JText::_('K2_PUBLISHED'); ?></label>
</td>
<td class="adminK2RightCol">
<?php echo $this->lists; ?>
</td>
</tr>
<?php endif; ?>
</table>

<!-- Required extra field warning -->
<div id="k2ExtraFieldsValidationResults">
<h3><?php echo JText::_('K2_THE_FOLLOWING_FIELDS_ARE_REQUIRED'); ?></h3>
<ul id="k2ExtraFieldsMissing">
<li><?php echo JText::_('K2_LOADING'); ?></li>
</ul>
</div>

<!-- Tabs start here -->
<div class="simpleTabs" id="k2Tabs">
<ul class="simpleTabsNavigation">
<li id="tabContent"><a href="#k2Tab1"><?php echo JText::_('K2_CONTENT'); ?></a></li>
<?php if ($this->params->get('showImageTab')): ?>
<li id="tabImage"><a href="#k2Tab2"><?php echo JText::_('K2_IMAGE'); ?></a></li>
<?php endif; ?>
<?php if ($this->params->get('showImageGalleryTab')): ?>
<li id="tabImageGallery"><a href="#k2Tab3"><?php echo JText::_('K2_IMAGE_GALLERY'); ?></a></li>
<?php endif; ?>
<?php if ($this->params->get('showVideoTab')): ?>
<li id="tabVideo"><a href="#k2Tab4"><?php echo JText::_('K2_MEDIA'); ?></a></li>
<?php endif; ?>
<?php if ($this->params->get('showExtraFieldsTab')): ?>
<li id="tabExtraFields"><a href="#k2Tab5"><?php echo JText::_('K2_EXTRA_FIELDS'); ?></a></li>
<?php endif; ?>
<?php if ($this->params->get('showAttachmentsTab')): ?>
<li id="tabAttachments"><a href="#k2Tab6"><?php echo JText::_('K2_ATTACHMENTS'); ?></a></li>
<?php endif; ?>
<?php if(count(array_filter($this->K2PluginsItemOther)) && $this->params->get('showK2Plugins')): ?>
<li id="tabPlugins"><a href="#k2Tab7"><?php echo JText::_('K2_PLUGINS'); ?></a></li>
<?php endif; ?>
</ul>

<!-- Tab content -->
<div class="simpleTabsContent" id="k2Tab1">
<?php if($this->params->get('mergeEditors')): ?>
<div class="k2ItemFormEditor"> <?php echo $this->text; ?>
<div class="dummyHeight"></div>
<div class="clr"></div>
</div>
<?php else: ?>
<div class="k2ItemFormEditor"> <span class="k2ItemFormEditorTitle"> <?php echo JText::_('K2_INTROTEXT_TEASER_CONTENTEXCERPT'); ?> </span> <?php echo $this->introtext; ?>
<div class="dummyHeight"></div>
<div class="clr"></div>
</div>
<div class="k2ItemFormEditor"> <span class="k2ItemFormEditorTitle"> <?php echo JText::_('K2_FULLTEXT_MAIN_CONTENT'); ?> </span> <?php echo $this->fulltext; ?>
<div class="dummyHeight"></div>
<div class="clr"></div>
</div>
<?php endif; ?>
<?php if (count($this->K2PluginsItemContent)): ?>
<div class="itemPlugins">
<?php foreach($this->K2PluginsItemContent as $K2Plugin): ?>
<?php if(!is_null($K2Plugin)): ?>
<fieldset>
<legend><?php echo $K2Plugin->name; ?></legend>
<?php echo $K2Plugin->fields; ?>
</fieldset>
<?php endif; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
<div class="clr"></div>
</div>
<?php if ($this->params->get('showImageTab')): ?>
<!-- Tab image -->
<div class="simpleTabsContent" id="k2Tab2">
<table class="admintable">
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_ITEM_IMAGE'); ?>
</td>
<td>
<input type="file" name="image" class="fileUpload" />
<i>(<?php echo JText::_('K2_MAX_UPLOAD_SIZE'); ?>: <?php echo ini_get('upload_max_filesize'); ?>)</i>
<br />
<br />
<input type="text" name="existingImage" id="existingImageValue" class="text_area" readonly />
<input type="button" value="<?php echo JText::_('K2_BROWSE_SERVER'); ?>" id="k2ImageBrowseServer" />
<br />
<br />
</td>
</tr>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_ITEM_IMAGE_CAPTION'); ?>
</td>
<td>
<input type="text" name="image_caption" size="30" class="text_area" value="<?php echo $this->row->image_caption; ?>" />
</td>
</tr>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_ITEM_IMAGE_CREDITS'); ?>
</td>
<td>
<input type="text" name="image_credits" size="30" class="text_area" value="<?php echo $this->row->image_credits; ?>" />
</td>
</tr>
<?php if (!empty($this->row->image)): ?>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_ITEM_IMAGE_PREVIEW'); ?>
</td>
<td>
<a class="modal" rel="{handler: 'image'}" href="<?php echo $this->row->image; ?>" title="<?php echo JText::_('K2_CLICK_ON_IMAGE_TO_PREVIEW_IN_ORIGINAL_SIZE'); ?>">
<img alt="<?php echo $this->row->title; ?>" src="<?php echo $this->row->thumb; ?>" class="k2AdminImage" />
</a>
<input type="checkbox" name="del_image" id="del_image" />
<label for="del_image"><?php echo JText::_('K2_CHECK_THIS_BOX_TO_DELETE_CURRENT_IMAGE_OR_JUST_UPLOAD_A_NEW_IMAGE_TO_REPLACE_THE_EXISTING_ONE'); ?></label>
</td>
</tr>
<?php endif; ?>
</table>
<?php if (count($this->K2PluginsItemImage)): ?>
<div class="itemPlugins">
<?php foreach($this->K2PluginsItemImage as $K2Plugin): ?>
<?php if(!is_null($K2Plugin)): ?>
<fieldset>
<legend><?php echo $K2Plugin->name; ?></legend>
<?php echo $K2Plugin->fields; ?>
</fieldset>
<?php endif; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->params->get('showImageGalleryTab')): ?>
<!-- Tab image gallery -->
<div class="simpleTabsContent" id="k2Tab3">
<?php if ($this->lists): ?>
<table class="admintable table" id="item_gallery_content">
<tr>
<td align="right" valign="top" class="key">
<?php echo JText::_('K2_COM_BE_ITEM_ITEM_IMAGE_GALLERY'); ?>
</td>
<td valign="top">
<?php if($this->sigPro): ?>
<a class="modal" rel="{handler: 'iframe', size: {x: 940, y: 560}}" href="index.php?option=com_sigpro&view=galleries&task=create&newFolder=<?php echo $this->sigProFolder; ?>&type=k2&tmpl=component&template=system"><?php echo JText::_('K2_COM_BE_ITEM_SIGPRO_UPLOAD'); ?></a> <i>(<?php echo JText::_('K2_COM_BE_ITEM_SIGPRO_UPLOAD_NOTE'); ?>)</i>
<input name="sigProFolder" type="hidden" value="<?php echo $this->sigProFolder; ?>" />
<br />
<br />
<?php echo JText::_('K2_OR'); ?>
<?php endif; ?>
<?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_WITH_IMAGES'); ?> <input type="file" name="gallery" class="fileUpload" /> <span class="hasTip k2GalleryNotice" title="<?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_HELP_HEADER'); ?>::<?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_HELP_TEXT'); ?>"><?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_HELP'); ?></span> <i>(<?php echo JText::_('K2_MAX_UPLOAD_SIZE'); ?>: <?php echo ini_get('upload_max_filesize'); ?>)</i>
<br />
<br />
<?php echo JText::_('K2_OR_ENTER_A_FLICKR_SET_URL'); ?><?php echo JText::_('K2_OR_ENTER_A_FLICKR_SET_URL'); ?>
<input type="text" name="flickrGallery" size="50" value="<?php echo ($this->row->galleryType == 'flickr') ? $this->row->galleryValue : ''; ?>" /> <span class="hasTip k2GalleryNotice" title="<?php echo JText::_('K2_VALID_FLICK_API_KEY_HELP_HEADER'); ?>::<?php echo JText::_('K2_VALID_FLICK_API_KEY_HELP_TEXT'); ?>"><?php echo JText::_('K2_UPLOAD_A_ZIP_FILE_HELP'); ?></span>

<?php if (!empty($this->row->gallery)): ?>
<!-- Preview -->
<div id="itemGallery">
<?php echo $this->row->gallery; ?>
<br />
<input type="checkbox" name="del_gallery" id="del_gallery" />
<label for="del_gallery"><?php echo JText::_('K2_CHECK_THIS_BOX_TO_DELETE_CURRENT_IMAGE_GALLERY_OR_JUST_UPLOAD_A_NEW_IMAGE_GALLERY_TO_REPLACE_THE_EXISTING_ONE'); ?></label>
</div>
<?php endif; ?>
</td>
</tr>
</table>
<?php else: ?>
<?php if (K2_JVERSION == '15'): ?>
<dl id="system-message">
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
<dd class="notice message fade">
<ul>
<li><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_SIMPLE_IMAGE_GALLERY_PRO_PLUGIN_IF_YOU_WANT_TO_USE_THE_IMAGE_GALLERY_FEATURES_OF_K2'); ?></li>
</ul>
</dd>
</dl>
<?php elseif(K2_JVERSION == '25'): ?>
<div id="system-message-container">
<dl id="system-message">
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
<dd class="notice message">
<ul>
<li><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_SIMPLE_IMAGE_GALLERY_PRO_PLUGIN_IF_YOU_WANT_TO_USE_THE_IMAGE_GALLERY_FEATURES_OF_K2'); ?></li>
</ul>
</dd>
</dl>
</div>
<?php else: ?>
<div class="alert">
<h4 class="alert-heading"><?php echo JText::_('K2_NOTICE'); ?></h4>
<div><p><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_SIMPLE_IMAGE_GALLERY_PRO_PLUGIN_IF_YOU_WANT_TO_USE_THE_IMAGE_GALLERY_FEATURES_OF_K2'); ?></p></div>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if (count($this->K2PluginsItemGallery)): ?>
<div class="itemPlugins">
<?php foreach($this->K2PluginsItemGallery as $K2Plugin): ?>
<?php if(!is_null($K2Plugin)): ?>
<fieldset>
<legend><?php echo $K2Plugin->name; ?></legend>
<?php echo $K2Plugin->fields; ?>
</fieldset>
<?php endif; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->params->get('showVideoTab')): ?>
<!-- Tab video -->
<div class="simpleTabsContent" id="k2Tab4">
<?php if ($this->lists): ?>
<table class="admintable" id="item_video_content">
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_MEDIA_SOURCE'); ?>
</td>
<td>
<div id="k2VideoTabs" class="simpleTabs">
<ul class="simpleTabsNavigation">
<li><a href="#k2VideoTab1"><?php echo JText::_('K2_UPLOAD'); ?></a></li>
<li><a href="#k2VideoTab2"><?php echo JText::_('K2_BROWSE_SERVERUSE_REMOTE_MEDIA'); ?></a></li>
<li><a href="#k2VideoTab3"><?php echo JText::_('K2_MEDIA_USE_ONLINE_VIDEO_SERVICE'); ?></a></li>
<li><a href="#k2VideoTab4"><?php echo JText::_('K2_EMBED'); ?></a></li>
</ul>
<div id="k2VideoTab1" class="simpleTabsContent">
<div class="panel" id="Upload_video">
<input type="file" name="video" class="fileUpload" />
<i>(<?php echo JText::_('K2_MAX_UPLOAD_SIZE'); ?>: <?php echo ini_get('upload_max_filesize'); ?>)</i> </div>
</div>
<div id="k2VideoTab2" class="simpleTabsContent">
<div class="panel" id="Remote_video"> <a id="k2MediaBrowseServer" href="index.php?option=com_k2&view=media&type=video&tmpl=component&fieldID=remoteVideo"><?php echo JText::_('K2_BROWSE_VIDEOS_ON_SERVER')?></a> <?php echo JText::_('K2_OR'); ?> <?php echo JText::_('K2_PASTE_REMOTE_VIDEO_URL'); ?>
<br />
<br />
<input type="text" size="50" name="remoteVideo" id="remoteVideo" value="<?php echo $this->lists ?>" />
</div>
</div>
<div id="k2VideoTab3" class="simpleTabsContent">
<div class="panel" id="Video_from_provider"> <?php echo JText::_('K2_SELECT_VIDEO_PROVIDER'); ?> <?php echo $this->lists; ?> <br/><br/> <?php echo JText::_('K2_AND_ENTER_VIDEO_ID'); ?>
<input type="text" size="50" name="videoID" value="<?php echo $this->lists ?>" />
<br />
<br />
<a class="modal" rel="{handler: 'iframe', size: {x: 990, y: 600}}" href="www.joomlaworks.net/allvideos-documentation">

</div>
<div id="k2VideoTab4" class="simpleTabsContent">
<div class="panel" id="embedVideo">
<?php echo JText::_('K2_PASTE_HTML_EMBED_CODE_BELOW'); ?>
<br />
<textarea name="embedVideo" rows="5" cols="50" class="textarea"><?php echo $this->lists; ?></textarea>
</div>
</div>
</div>
</td>
</tr>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_MEDIA_CAPTION'); ?>
</td>
<td>
<input type="text" name="video_caption" size="50" class="text_area" value="<?php echo $this->row->video_caption; ?>" />
</td>
</tr>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_MEDIA_CREDITS'); ?>
</td>
<td>
<input type="text" name="video_credits" size="50" class="text_area" value="<?php echo $this->row->video_credits; ?>" />
</td>
</tr>
<?php if($this->row->video): ?>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_MEDIA_PREVIEW'); ?>
</td>
<td>
<?php echo $this->row->video; ?>
<br />
<input type="checkbox" name="del_video" id="del_video" />
<label for="del_video"><?php echo JText::_('K2_CHECK_THIS_BOX_TO_DELETE_CURRENT_VIDEO_OR_USE_THE_FORM_ABOVE_TO_REPLACE_THE_EXISTING_ONE'); ?></label>
</td>
</tr>
<?php endif; ?>
</table>
<?php else: ?>
<?php if (K2_JVERSION == '15'): ?>
<dl id="system-message">
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
<dd class="notice message fade">
<ul>
<li><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_ALLVIDEOS_PLUGIN_IF_YOU_WANT_TO_USE_THE_FULL_VIDEO_FEATURES_OF_K2'); ?></li>
</ul>
</dd>
</dl>
<?php elseif(K2_JVERSION == '25'): ?>
<div id="system-message-container">
<dl id="system-message">
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
<dd class="notice message">
<ul>
<li><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_ALLVIDEOS_PLUGIN_IF_YOU_WANT_TO_USE_THE_FULL_VIDEO_FEATURES_OF_K2'); ?></li>
</ul>
</dd>
</dl>
</div>
<?php else: ?>
<div class="alert">
<h4 class="alert-heading"><?php echo JText::_('K2_NOTICE'); ?></h4>
<div><p><?php echo JText::_('K2_NOTICE_PLEASE_INSTALL_JOOMLAWORKS_ALLVIDEOS_PLUGIN_IF_YOU_WANT_TO_USE_THE_FULL_VIDEO_FEATURES_OF_K2'); ?></p></div>
</div>
<?php endif; ?>
<table class="admintable" id="item_video_content">
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_MEDIA_SOURCE'); ?>
</td>
<td>
<div id="k2VideoTabs" class="simpleTabs">
<ul class="simpleTabsNavigation">
<li><a href="#k2VideoTab4"><?php echo JText::_('K2_EMBED'); ?></a></li>
</ul>
<div class="simpleTabsContent" id="k2VideoTab4">
<div class="panel" id="embedVideo">
<?php echo JText::_('K2_PASTE_HTML_EMBED_CODE_BELOW'); ?>
<br />
<textarea name="embedVideo" rows="5" cols="50" class="textarea"><?php echo $this->lists; ?></textarea>
</div>
</div>
</div>
</td>
</tr>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_MEDIA_CAPTION'); ?>
</td>
<td>
<input type="text" name="video_caption" size="50" class="text_area" value="<?php echo $this->row->video_caption; ?>" />
</td>
</tr>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_MEDIA_CREDITS'); ?>
</td>
<td>
<input type="text" name="video_credits" size="50" class="text_area" value="<?php echo $this->row->video_credits; ?>" />
</td>
</tr>
<?php if($this->row->video): ?>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_MEDIA_PREVIEW'); ?>
</td>
<td>
<?php echo $this->row->video; ?>
<br />
<input type="checkbox" name="del_video" id="del_video" />
<label for="del_video"><?php echo JText::_('K2_USE_THE_FORM_ABOVE_TO_REPLACE_THE_EXISTING_VIDEO_OR_CHECK_THIS_BOX_TO_DELETE_CURRENT_VIDEO'); ?></label>
</td>
</tr>
<?php endif; ?>
</table>
<?php endif; ?>
<?php if (count($this->K2PluginsItemVideo)): ?>
<div class="itemPlugins">
<?php foreach($this->K2PluginsItemVideo as $K2Plugin): ?>
<?php if(!is_null($K2Plugin)): ?>
<fieldset>
<legend><?php echo $K2Plugin->name; ?></legend>
<?php echo $K2Plugin->fields; ?>
</fieldset>
<?php endif; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->params->get('showExtraFieldsTab')): ?>
<!-- Tab extra fields -->
<div class="simpleTabsContent" id="k2Tab5">
<div id="extraFieldsContainer">
<?php if (count($this->extraFields)): ?>
<table class="admintable" id="extraFields">
<?php foreach($this->extraFields as $extraField): ?>
<?php if($extraField->type == 'header'): ?>
<tr>
<td colspan="2" ><h4 class="k2ExtraFieldHeader"><?php echo $extraField->name; ?></h4></td>
</tr>
<?php else: ?>
<tr>
<td align="right" class="key">
<label for="K2ExtraField_<?php echo $extraField->id; ?>"><?php echo $extraField->name; ?></label>
</td>
<td>
<?php echo $extraField->element; ?>
</td>
</tr>
<?php endif; ?>
<?php endforeach; ?>
</table>
<?php else: ?>
<?php if (K2_JVERSION == '15'): ?>
<dl id="system-message">
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
<dd class="notice message fade">
<ul>
<li><?php echo JText::_('K2_PLEASE_SELECT_A_CATEGORY_FIRST_TO_RETRIEVE_ITS_RELATED_EXTRA_FIELDS'); ?></li>
</ul>
</dd>
</dl>
<?php elseif (K2_JVERSION == '25'): ?>
<div id="system-message-container">
<dl id="system-message">
<dt class="notice"><?php echo JText::_('K2_NOTICE'); ?></dt>
<dd class="notice message">
<ul>
<li><?php echo JText::_('K2_PLEASE_SELECT_A_CATEGORY_FIRST_TO_RETRIEVE_ITS_RELATED_EXTRA_FIELDS'); ?></li>
</ul>
</dd>
</dl>
</div>
<?php else: ?>
<div class="alert">
<h4 class="alert-heading"><?php echo JText::_('K2_NOTICE'); ?></h4>
<div>
<p><?php echo JText::_('K2_PLEASE_SELECT_A_CATEGORY_FIRST_TO_RETRIEVE_ITS_RELATED_EXTRA_FIELDS'); ?></p>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
<?php if (count($this->K2PluginsItemExtraFields)): ?>
<div class="itemPlugins">
<?php foreach($this->K2PluginsItemExtraFields as $K2Plugin): ?>
<?php if(!is_null($K2Plugin)): ?>
<fieldset>
<legend><?php echo $K2Plugin->name; ?></legend>
<?php echo $K2Plugin->fields; ?>
</fieldset>
<?php endif; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->params->get('showAttachmentsTab')): ?>
<!-- Tab attachements -->
<div class="simpleTabsContent" id="k2Tab6">
<div class="itemAttachments">
<?php if (count($this->row->attachments)): ?>
<table class="adminlist">
<tr>
<th>
<?php echo JText::_('K2_FILENAME'); ?>
</th>
<th>
<?php echo JText::_('K2_TITLE'); ?>
</th>
<th>
<?php echo JText::_('K2_TITLE_ATTRIBUTE'); ?>
</th>
<th>
<?php echo JText::_('K2_DOWNLOADS'); ?>
</th>
<th>
<?php echo JText::_('K2_OPERATIONS'); ?>
</th>
</tr>
<?php foreach($this->row->attachments as $attachment): ?>
<tr>
<td class="attachment_entry">
<?php echo $attachment->filename; ?>
</td>
<td>
<?php echo $attachment->title; ?>
</td>
<td>
<?php echo $attachment->titleAttribute; ?>
</td>
<td>
<?php echo $attachment->hits; ?>
</td>
<td>
<a href="<?php echo $attachment->link; ?>"><?php echo JText::_('K2_DOWNLOAD'); ?></a> <a class="deleteAttachmentButton" href="<?php echo JURI::base(true); ?>/index.php?option=com_k2&amp;view=item&amp;task=deleteAttachment&amp;id=<?php echo $attachment->id?>&amp;cid=<?php echo $this->row->id; ?>"><?php echo JText::_('K2_DELETE'); ?></a>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
</div>
<div id="addAttachment">
<input type="button" id="addAttachmentButton" value="<?php echo JText::_('K2_ADD_ATTACHMENT_FIELD'); ?>" />
<i>(<?php echo JText::_('K2_MAX_UPLOAD_SIZE'); ?>: <?php echo ini_get('upload_max_filesize'); ?>)</i> </div>
<div id="itemAttachments"></div>
<?php if (count($this->K2PluginsItemAttachments)): ?>
<div class="itemPlugins">
<?php foreach($this->K2PluginsItemAttachments as $K2Plugin): ?>
<?php if(!is_null($K2Plugin)): ?>
<fieldset>
<legend><?php echo $K2Plugin->name; ?></legend>
<?php echo $K2Plugin->fields; ?>
</fieldset>
<?php endif; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if(count(array_filter($this->K2PluginsItemOther)) && $this->params->get('showK2Plugins')): ?>
<!-- Tab other plugins -->
<div class="simpleTabsContent" id="k2Tab7">
<div class="itemPlugins">
<?php foreach($this->K2PluginsItemOther as $K2Plugin): ?>
<?php if(!is_null($K2Plugin)): ?>
<fieldset>
<legend><?php echo $K2Plugin->name; ?></legend>
<?php echo $K2Plugin->fields; ?>
</fieldset>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>
</div>
<!-- Tabs end here -->

<input type="hidden" name="isSite" value="<?php echo (int)$this->mainframe->isSite(); ?>" />
<?php if($this->mainframe->isSite()): ?>
<input type="hidden" name="lang" value="<?php echo JRequest::getCmd('lang'); ?>" />
<?php endif; ?>
<input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />
<input type="hidden" name="option" value="com_k2" />
<input type="hidden" name="view" value="item" />
<input type="hidden" name="task" value="<?php echo JRequest::getVar('task'); ?>" />
<input type="hidden" name="Itemid" value="<?php echo JRequest::getInt('Itemid'); ?>" />
<?php echo JHTML::_('form.token'); ?>
</td>
<td id="adminFormK2Sidebar"<?php if($this->mainframe->isSite() && !$this->params->get('sideBarDisplayFrontend')): ?> style="display:none;"<?php endif; ?> class="xmlParamsFields">
<?php if($this->row->id): ?>
<table class="sidebarDetails">
<tr>
<td>
<strong><?php echo JText::_('K2_ITEM_ID'); ?></strong>
</td>
<td>
<?php echo $this->row->id; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('K2_PUBLISHED'); ?></strong>
</td>
<td>
<?php echo ($this->row->published > 0) ? JText::_('K2_YES') : JText::_('K2_NO'); ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('K2_FEATURED'); ?></strong>
</td>
<td>
<?php echo ($this->row->featured > 0) ? JText::_('K2_YES'): JText::_('K2_NO'); ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('K2_CREATED_DATE'); ?></strong>
</td>
<td>
<?php echo $this->lists; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('K2_CREATED_BY'); ?></strong>
</td>
<td>
<?php echo $this->row->author; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('K2_MODIFIED_DATE'); ?></strong>
</td>
<td>
<?php echo $this->lists; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('K2_MODIFIED_BY'); ?></strong>
</td>
<td>
<?php echo $this->row->moderator; ?>
</td>
</tr>
<tr>
<td>
<strong><?php echo JText::_('K2_HITS'); ?></strong>
</td>
<td>
<?php echo $this->row->hits; ?>
<?php if($this->row->hits): ?>
<input id="resetHitsButton" type="button" value="<?php echo JText::_('K2_RESET'); ?>" class="button" name="resetHits" />
<?php endif; ?>
</td>
</tr>
<?php endif; ?>
<?php if($this->row->id): ?>
<tr>
<td>
<strong><?php echo JText::_('K2_RATING'); ?></strong>
</td>
<td>
<?php echo $this->row->ratingCount; ?> <?php echo JText::_('K2_VOTES'); ?>
<?php if($this->row->ratingCount): ?>
<br />
(<?php echo JText::_('K2_AVERAGE_RATING'); ?>: <?php echo number_format(($this->row->ratingSum/$this->row->ratingCount),2); ?>/5.00)
<?php endif; ?>
<input id="resetRatingButton" type="button" value="<?php echo JText::_('K2_RESET'); ?>" class="button" name="resetRating" />
</td>
</tr>
</table>
<?php endif; ?>
<div id="k2Accordion">
<h3><a href="#"><?php echo JText::_('K2_AUTHOR_PUBLISHING_STATUS'); ?></a></h3>
<div>
<table class="admintable">
<?php if(isset($this->lists)): ?>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_LANGUAGE'); ?>
</td>
<td>
<?php echo $this->lists; ?>
</td>
</tr>
<?php endif; ?>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_AUTHOR'); ?>
</td>
<td id="k2AuthorOptions">
<span id="k2Author"><?php echo $this->row->author; ?></span>
<?php if($this->mainframe->isAdmin() || ($this->mainframe->isSite() && $this->permissions->get('editAll'))): ?>
<a class="modal" rel="{handler:'iframe', size: {x: 800, y: 460}}" href="index.php?option=com_k2&amp;view=users&amp;task=element&amp;tmpl=component"><?php echo JText::_('K2_CHANGE'); ?></a>
<input type="hidden" name="created_by" value="<?php echo $this->row->created_by; ?>" />
<?php endif; ?>
</td>
</tr>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_AUTHOR_ALIAS'); ?>
</td>
<td>
<input class="text_area" type="text" name="created_by_alias" maxlength="250" value="<?php echo $this->row->created_by_alias; ?>" />
</td>
</tr>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_ACCESS_LEVEL'); ?>
</td>
<td>
<?php echo $this->lists; ?>
</td>
</tr>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_CREATION_DATE'); ?>
</td>
<td class="k2ItemFormDateField">
<?php echo $this->lists; ?>
</td>
</tr>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_START_PUBLISHING'); ?>
</td>
<td class="k2ItemFormDateField">
<?php echo $this->lists; ?>
</td>
</tr>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_FINISH_PUBLISHING'); ?>
</td>
<td class="k2ItemFormDateField">
<?php echo $this->lists; ?>
</td>
</tr>
</table>
</div>
<h3><a href="#"><?php echo JText::_('K2_METADATA_INFORMATION'); ?></a></h3>
<div>
<table class="admintable">
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_DESCRIPTION'); ?>
</td>
<td>
<textarea name="metadesc" rows="5" cols="20"><?php echo $this->row->metadesc; ?></textarea>
</td>
</tr>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_KEYWORDS'); ?>
</td>
<td>
<textarea name="metakey" rows="5" cols="20"><?php echo $this->row->metakey; ?></textarea>
</td>
</tr>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_ROBOTS'); ?>
</td>
<td>
<input type="text" name="meta[robots]" value="<?php echo $this->lists->get('robots'); ?>" />
</td>
</tr>
<tr>
<td align="right" class="key">
<?php echo JText::_('K2_AUTHOR'); ?>
</td>
<td>
<input type="text" name="meta[author]" value="<?php echo $this->lists->get('author'); ?>" />
</td>
</tr>
</table>
</div>
<?php if($this->mainframe->isAdmin()): ?>
<h3><a href="#"><?php echo JText::_('K2_ITEM_VIEW_OPTIONS_IN_CATEGORY_LISTINGS'); ?></a></h3>
<div>
<?php if(version_compare( JVERSION, '1.6.0', 'ge' )): ?>
<fieldset class="panelform">
<ul class="adminformlist">
<?php foreach($this->form->getFieldset('item-view-options-listings') as $field): ?>
<li>
<?php if($field->type=='header'): ?>
<div class="paramValueHeader"><?php echo $field->input; ?></div>
<?php elseif($field->type=='Spacer'): ?>
<div class="paramValueSpacer">&nbsp;</div>
<div class="clr"></div>
<?php else: ?>
<div class="paramLabel"><?php echo $field->label; ?></div>
<div class="paramValue"><?php echo $field->input; ?></div>
<div class="clr"></div>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
</fieldset>
<?php else: ?>
<?php echo $this->form->render('params', 'item-view-options-listings'); ?>
<?php endif; ?>
</div>
<h3><a href="#"><?php echo JText::_('K2_ITEM_VIEW_OPTIONS'); ?></a></h3>
<div>
<?php if(version_compare( JVERSION, '1.6.0', 'ge' )): ?>
<fieldset class="panelform">
<ul class="adminformlist">
<?php foreach($this->form->getFieldset('item-view-options') as $field): ?>
<li>
<?php if($field->type=='header'): ?>
<div class="paramValueHeader"><?php echo $field->input; ?></div>
<?php elseif($field->type=='Spacer'): ?>
<div class="paramValueSpacer">&nbsp;</div>
<div class="clr"></div>
<?php else: ?>
<div class="paramLabel"><?php echo $field->label; ?></div>
<div class="paramValue"><?php echo $field->input; ?></div>
<div class="clr"></div>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
</fieldset>
<?php else: ?>
<?php echo $this->form->render('params', 'item-view-options'); ?>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if($this->aceAclFlag): ?>
<h3><a href="#"><?php echo JText::_('AceACL') . ' ' . JText::_('COM_ACEACL_COMMON_PERMISSIONS'); ?></a></h3>
<div><?php AceaclApi::getWidget('com_k2.item.'.$this->row->id, true); ?></div>
<?php endif; ?>
</div>
</td>
</tr>
</tbody>
</table>
<div class="clr"></div>
<?php if($this->mainframe->isSite()): ?>
</div>
</div>
<?php endif; ?>
</form>
  • politicaldoubts
  • politicaldoubts's Avatar
19 Feb 2015 20:22
Replied by politicaldoubts on topic Latest item from author categoy

Latest item from author categoy

Category: English K2 Community

here is an example of what i get of one of users latest item :

object(stdClass)#653 (44) {
["id"]=>
string(3) "544"
["title"]=>
string(91) "Grexit ή επιμήκυνση : Τα 2 σενάρια με κυβέρνηση ΣΥΡΙΖΑ"
["alias"]=>
string(52) "grexit-i-epimikynsi-ta-2-senaria-me-kyvernisi-syriza"
["catid"]=>
string(1) "8"
["published"]=>
string(1) "1"
["introtext"]=>
string(734) "Όσοι όμως έχουν στον τραπεζικό τους λογαριασμό μικροποσά των 100, 1.000 και 10.000 ευρώ ας μην αγχώνονται. Με Σαμαρά θα τα δώσουν για φόρους και εισφορές ώστε το πλεόνασμα να φτάσει στο 3% το 2015 και στο 4,5% το 2016 (αλήθεια, το «που θα βρέιτε τα λεφτά;» γιατί απευθύνεται μόνο στον ΣΥΡΙΖΑ;). Με Τσίπρα είναι πιθανό να τα γλιτώσουν η και να τα αυξήσουν. Αυτή η «πιθανότητα» είναι που θα δώσει την αυτοδυναμία στον ΣΥΡΙΖΑ."
["fulltext"]=>
string(7497) "
Στις 26η Ιανουαρίου η χώρα θα έχει μια αυτοδύναμη κυβέρνηση του ΣΥΡΙΖΑ ή μια κυβέρνηση συνεργασίας με κορμό τον ΣΥΡΙΖΑ. Η τρομοκρατία του Σαμαρά, μια φτηνή απομίμηση του 2012, μόνο γέλιο προκαλεί σε έναν λαό εξουθενωμένο από την πολυετή κρίση. Οι καταθέσεις που θα «δραχμοποιούνταν» έχουν γίνει ΕΝΦΙΑ, εισφορές στον ΟΑΕΕ και αεροπορικά εισιτήρια για τους νέους που μεταναστεύουν. Η συντριπτική πλειοψηφία έχει πλέον ελάχιστες αποταμιεύσεις, τις οποίες βλέπει κάθε χρόνο να μειώνονται. Οι παλαιο-συνταξιούχοι που φημίζονται για την φανατική υποστήριξη τους σε ΝΔ-ΠΑΣΟΚ λιγοστεύουν και οι νεο-συνταξιούχοι στο πρόσωπο του Σαμαρά βλέπουν τον άνθρωπο που έκοψε το εφάπαξ τους και έστειλε το παιδί τους μετανάστη.


Παρόλα αυτά, το σενάριο του Grexit δεν πρέπει να αντιμετωπίζεται ως απίθανο. Η Ευρωζώνη, δηλαδή η Γερμανία, είναι πιο έτοιμη να διαχειριστεί μια έξοδο της χώρας από το ευρώ. Η τραπεζική ένωση και οι διάφοροι μηχανισμοί διάσωσης που έχουν δημιουργηθεί τα τελευταία χρόνια είναι χρήσιμα όπλα για μια Γερμανία που δεν θέλει να βρεθεί ξανά σε μια κατάσταση όπως αυτή του 2010. Αυτά τα όπλα είναι που δίνουν την σιγουριά σε συντηρητικούς κύκλους να ζητούν την εφαρμογή μιας σκληρής γραμμής στην περίπτωση που ο ΣΥΡΙΖΑ ζητήσει αλλαγές στα συμφωνηθέντα. Παρά το γεγονός ότι το Grexit κοστίζει περισσότερο από ένα κούρεμα του ελληνικού χρέους κατά 50%, κομμάτι της ευρωπαϊκής ελίτ είναι διατεθειμένη να πληρώσει αυτό το επιπλέον τίμημα ώστε να τρομοκρατήσει τους λαούς της ευρωπαϊκής περιφέρειας. Ας μην ξεχνάμε ότι την στιγμή που μιλάμε στην πρώτη θέση των δημοσκοπήσεων σε Ισπανία και Ιρλανδία βρίσκονται αριστερές δυνάμεις (Podemos και Sinn Fein αντίστοιχα) και μια ενδεχόμενη υποχώρηση στα αιτήματα του ΣΥΡΙΖΑ εκ μέρους της Γερμανίας θα πολλαπλασίαζε την δυναμική τους με αποτέλεσμα αριστερές κυβερνήσεις σε σειρά ευρωπαϊκών χωρών, μια κατάσταση ανεπιθύμητη όχι μόνο για την Μέρκελ, αλλά και για κάθε δεξιά ή σοσιαλδημοκρατική δύναμη σε κάθε χώρα. Το Grexit είναι όμως μια κίνηση υψηλού πολιτικού και οικονομικού ρίσκου που πιθανόν να έχει τα αντίθετα αποτελέσματα σε μια περίοδο όπου το βασικό ζητούμενο είναι η σταθερότητα και όχι οι «τσαμπουκάδες».


Το δεύτερο πιθανό σενάριο είναι αυτό ενός συμβιβασμού με άξονες την μετακύλιση των ομολόγων που λήγουν τα επόμενα χρόνια, την μείωση του επιτοκίου των δανείων σε επίπεδο μικρότερο από την αναμενόμενη ετήσια αύξηση του ΑΕΠ και την αναπροσαρμογή των ούτως ή άλλως εξωπραγματικών στόχων για πρωτογενή πλεονάσματα 4,5% του ΑΕΠ. Τα ομόλογα της Ελλάδας που αυτή τη στιγμή βρίσκονται στο ΔΝΤ, στην ΕΚΤ και τα κράτη μέλη της ΟΝΕ θα αγοραστούν από τον ESM και το επιτόκιο τους θα πέσει περίπου στο 1,8%. Έτσι η χώρα με ένα πρωτογενές πλεόνασμα 1% και ανάπτυξη 3% θα μειώνει την αναλογία χρέους/ΑΕΠ κατά περίπου 2% ετησίως, μειώνοντας το χρέος κάτω από το 100% του ΑΕΠ μέσα στα επόμενα 30 χρόνια. Μια τέτοια πολιτική θα είχε σαν αποτέλεσμα την αναβάθμιση της ελληνικής οικονομίας μιας και το χρέος θα μπορούσε να θεωρηθεί βιώσιμο και θα άνοιγε ο δρόμος για αύξηση των επενδύσεων, μιας και ο κίνδυνος χρεοκοπίας θα είχε ξεπεραστεί. Μέσα σε αυτό το περιβάλλον θα ήταν πιο εύκολη και η ενσωμάτωση του ΣΥΡΙΖΑ στα πρότυπα του ΠΑΣΟΚ του 1981, αν και με μεγάλες διαφορές.


Το πιο σενάριο θα εφαρμοστεί είναι αδύνατον να εκτιμηθεί. Όσοι εμφανίζονται σίγουροι τόσο για το ένα, όσο και για το άλλο, καλό θα είναι να το δείξουν και εμπράκτως. Μπορούν να ποντάρουν τα λεφτά τους στην χρεοκοπία της χώρας (εάν θεωρούν ότι εκεί οδηγούμαστε) είτε να αγοράσουν ελληνικά ομόλογα στην δευτερογενή αγορά (εάν θεωρούν ότι δεν υπάρχει κίνδυνος χρεοκοπίας). Εξαιρετικές αποδόσεις δίνουν και οι δυό επενδύσεις. Όσοι όμως έχουν στον τραπεζικό τους λογαριασμό μικροποσά των 100, 1.000 και 10.000 ευρώ ας μην αγχώνονται. Με Σαμαρά θα τα δώσουν για φόρους και εισφορές ώστε το πλεόνασμα να φτάσει στο 3% το 2015 και στο 4,5% το 2016 (αλήθεια, το «που θα βρέιτε τα λεφτά;» γιατί απευθύνεται μόνο στον ΣΥΡΙΖΑ;). Με Τσίπρα είναι πιθανό να τα γλιτώσουν η και να τα αυξήσουν. Αυτή η «πιθανότητα» είναι που θα δώσει την αυτοδυναμία στον ΣΥΡΙΖΑ.
"
["video"]=>
NULL
["gallery"]=>
NULL
["extra_fields"]=>
string(2) "[]"
["extra_fields_search"]=>
string(0) ""
["created"]=>
string(19) "2015-01-06 22:00:00"
["created_by"]=>
string(3) "466"
["created_by_alias"]=>
string(0) ""
["checked_out"]=>
string(1) "0"
["checked_out_time"]=>
string(19) "0000-00-00 00:00:00"
["modified"]=>
string(19) "2015-01-07 19:19:28"
["modified_by"]=>
string(3) "461"
["publish_up"]=>
string(19) "2015-01-06 22:00:00"
["publish_down"]=>
string(19) "0000-00-00 00:00:00"
["trash"]=>
string(1) "0"
["access"]=>
string(1) "1"
["ordering"]=>
string(2) "57"
["featured"]=>
string(1) "1"
["featured_ordering"]=>
string(3) "239"
["image_caption"]=>
string(0) ""
["image_credits"]=>
string(0) ""
["video_caption"]=>
string(0) ""
["video_credits"]=>
string(0) ""
["hits"]=>
string(3) "253"
["params"]=>
string(1787) "{"catItemTitle":"","catItemTitleLinked":"","catItemFeaturedNotice":"","catItemAuthor":"","catItemDateCreated":"","catItemRating":"","catItemImage":"","catItemIntroText":"","catItemExtraFields":"","catItemHits":"","catItemCategory":"","catItemTags":"","catItemAttachments":"","catItemAttachmentsCounter":"","catItemVideo":"","catItemVideoWidth":"","catItemVideoHeight":"","catItemAudioWidth":"","catItemAudioHeight":"","catItemVideoAutoPlay":"","catItemImageGallery":"","catItemDateModified":"","catItemReadMore":"","catItemCommentsAnchor":"","catItemK2Plugins":"","itemDateCreated":"","itemTitle":"","itemFeaturedNotice":"","itemAuthor":"","itemFontResizer":"","itemPrintButton":"","itemEmailButton":"","itemSocialButton":"","itemVideoAnchor":"","itemImageGalleryAnchor":"","itemCommentsAnchor":"","itemRating":"","itemImage":"","itemImgSize":"","itemImageMainCaption":"","itemImageMainCredits":"","itemIntroText":"","itemFullText":"","itemExtraFields":"","itemDateModified":"","itemHits":"","itemCategory":"","itemTags":"","itemAttachments":"","itemAttachmentsCounter":"","itemVideo":"","itemVideoWidth":"","itemVideoHeight":"","itemAudioWidth":"","itemAudioHeight":"","itemVideoAutoPlay":"","itemVideoCaption":"","itemVideoCredits":"","itemImageGallery":"","itemNavigation":"","itemComments":"","itemTwitterButton":"","itemFacebookButton":"","itemGooglePlusOneButton":"","itemAuthorBlock":"","itemAuthorImage":"","itemAuthorDescription":"","itemAuthorURL":"","itemAuthorEmail":"","itemAuthorLatest":"","itemAuthorLatestLimit":"","itemRelated":"","itemRelatedLimit":"","itemRelatedTitle":"","itemRelatedCategory":"","itemRelatedImageSize":"","itemRelatedIntrotext":"","itemRelatedFulltext":"","itemRelatedAuthor":"","itemRelatedMedia":"","itemRelatedImageGallery":"","itemK2Plugins":""}"
["metadesc"]=>
string(0) ""
["metadata"]=>
string(15) "robots=
author="
["metakey"]=>
string(0) ""
["plugins"]=>
string(0) ""
["language"]=>
string(1) "*"
["categoryalias"]=>
string(19) "oikonomia-anaptyksi"
["imageXSmall"]=>
string(61) "/media/k2/items/cache/3d9a979b1c7ae6adda1ab5edd6c87151_XS.jpg"
["imageSmall"]=>
string(60) "/media/k2/items/cache/3d9a979b1c7ae6adda1ab5edd6c87151_S.jpg"
["imageMedium"]=>
string(60) "/media/k2/items/cache/3d9a979b1c7ae6adda1ab5edd6c87151_M.jpg"
["imageLarge"]=>
string(60) "/media/k2/items/cache/3d9a979b1c7ae6adda1ab5edd6c87151_L.jpg"
["imageXLarge"]=>
string(61) "/media/k2/items/cache/3d9a979b1c7ae6adda1ab5edd6c87151_XL.jpg"
["imageGeneric"]=>
string(66) "/media/k2/items/cache/3d9a979b1c7ae6adda1ab5edd6c87151_Generic.jpg"
["link"]=>
string(70) "/finance/item/544-grexit-i-epimikynsi-ta-2-senaria-me-kyvernisi-syriza"


So is it a way to grab the items category? what do you think? Thanks a lot for your time.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
19 Feb 2015 14:55
Replied by Krikor Boghossian on topic Adding extra fields to existing items

Adding extra fields to existing items

Category: English K2 Community

This link ->
www.exmweb.com/index.php?option=com_k2&view=item&id=147:es-standard-door&Itemid=533&lang=en&template=system

uses the default template shows the extrafields. This means that you need to download K2 and compare the default item.php's code to your overrides. The code is well commented so you won't have issue locating the extra fields block.

In order to locate the files you need to edit you need to read this post getk2.org/documentation/tutorials/174
Displaying 121 - 140 out of 530 results.

Powered by Kunena Forum