Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Alan Morris
  • Alan Morris's Avatar
05 Sep 2014 07:44
Read more .............. & title tags was created by Alan Morris

Read more .............. & title tags

Category: English K2 Community

I have categorie pages for my K2 items each with an image, and a 30 word maximum intro text before the read more button. How can I add 'alt' tags to the 'read more' buttons?

For example on this page the read more buttons have no alt tags and I would like to add descriptive alt tags for SEO.

Link: Link to page
  • Mr_Anonymous
  • Mr_Anonymous's Avatar
04 Sep 2014 17:08
Replied by Mr_Anonymous on topic K2 Version 3 Questions

K2 Version 3 Questions

Category: English K2 Community

Hi Krikor.. First I was creating my template based on Gavern FW (Gavick). Later it felt like a bloat since it has too many css, scripts and other files that I dont need so I scratched that and I ended up completely writing my own template old school style with pure html/css/php without using any FW. Now my 2.6.8 k2 sub-templates are designed (css) and re-structured (html) to match my site theme. I only override 3 files now: category.php, category_item.php and item.php. I have created 3 different sub-templates (1 for each section in my site).

From what you are saying, it does seem like k2 templating has gone simpler. When I briefly had a look in github, I noticed that category_item.php is not there (probably merged with category.php) which is good. From one of your previous post I understand that the version 3 has backward compatibility so I am guessing my 2.6.8 template should work without much changes or overrides. The questions I still have in mind is:

1) Are there any api changes? For instance, I use a lot of php custom codes that fetches k2 extra fields like $this->item->extraFields->XYZ->value, etc.. and use the various k2 php codes like fetching hits, rating counts etc.. for schemas and other things. Have there been any changes to this? Would all of these still work in version 3 or do I need to reverify and check them for V3?

2) Have the css and html classes / IDs changed? When I created css overrides for k2 templates, I used the same css classes used in K2 such as catItemImageBlock, catItemImage, etc.. If the tags have been changed, removed or template layout changed, then I need to re-do them. How big of a change in there in the default html and css that was used in 2.6.8 to version 3? (I am mainly interested to know for category.php and item.php pages).

3) Lastly, do you have a list of code changes done to the k2 templates from 2.6.8 to V3? It will be useful if there is a documentation on code changes on templates if you have one already. If not I need to use Winmerge which can get annoying sometimes.

I am hoping to have some spare time in 2-3 of weeks once I finalize everything else on my site and I am thinking of exploring the version 3 then. Hopefully I will have a better idea on what I can expect by then.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
04 Sep 2014 13:46
Replied by Krikor Boghossian on topic K2 Version 3 Questions

K2 Version 3 Questions

Category: English K2 Community

Are your templates based on a framework like Gantry or T3?
If yes you might have to do some testing, otherwise the frontend changes won't be so many.

It will even be easier. I would propose that you start one on your free time just to get the hang of it. The large difference is that you do not have to edit seperate files for the category/ user/ tag/ generic item. You only have to edit one file.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
03 Sep 2014 14:46
Replied by Krikor Boghossian on topic Portfolio sort tags

Portfolio sort tags

Category: English K2 Community

Hello Matteo,

This is a template related issue, not a K2 one. K2 does not have tag filtering/ sorting.
You should contact the template developer about this.
  • Matteo Fontana
  • Matteo Fontana's Avatar
03 Sep 2014 12:37
Portfolio template filtro tag was created by Matteo Fontana

Portfolio template filtro tag

Category: Comunità italiana K2

Buongiorno,
ho acquistato un template per Joomla 3 con installato k2. Vorrei inserire la possibilità di visualizzare gli articoli in base al tag come in questo sito ideascale.it/scale-su-misura.html (in base al tipo di scala selezionato si visualizzano gli articoli corrispondenti); ho così copiato da un altro sito il seguente codice e inserito nel mio template:
 
  • Matteo Fontana
  • Matteo Fontana's Avatar
03 Sep 2014 12:20
Portfolio sort tags was created by Matteo Fontana

Portfolio sort tags

Category: English K2 Community

Hi,
I buy a template for joomla 3 with k2, I like in my page have an item sorting by the tag, so I copy, from another site, this code for insert the sort:
 
  • Laurent Robin
  • Laurent Robin's Avatar
02 Sep 2014 16:09 - 02 Sep 2014 16:16
Replied by Laurent Robin on topic Error 500 K2 saving an item with Image

Error 500 K2 saving an item with Image

Category: English K2 Community

Hey Krikor,
thanks for the quick reply. i made a discovery a few seconds ago. it comes from the size of the picture.

The pic is 1mb (max allowed on server is 24 mb) but 3000px x 1600.

the max_execution_time is at 90. can not be.

so what could force the server force to give error 500 back before? any idea?

here my parameters:

Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen Off Off
allow_url_include Off Off
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset iso-8859-1 iso-8859-1
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions dl , passthru , pcntl_exec , pfsockopen , popen , posix_kill , posix_mkfifo , posix_setuid ,eproc_c, pr , proc_open , proc_terminate , system , leak , posix_setpgid , posix_setsid , proc_get_status , proc_nice , show_source , escapeshellcmd, pcntl_fork, pcntl_wait, pcntl_alarm, ini_restore, shell_exec, proc_close, leak dl , passthru , pcntl_exec , pfsockopen , popen , posix_kill , posix_mkfifo , posix_setuid ,eproc_c, pr , proc_open , proc_terminate , system , leak , posix_setpgid , posix_setsid , proc_get_status , proc_nice , show_source , escapeshellcmd, pcntl_fork, pcntl_wait, pcntl_alarm, ini_restore, shell_exec, proc_close, leak
display_errors Off Off
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl Off Off
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 30719 30711
exit_on_timeout Off Off
expose_php On On

file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors Off Off
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off

log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.add_x_header On On
mail.force_extra_parameters no value no value
mail.log no value no value
max_execution_time 90 90
max_file_uploads 20 20
max_input_nesting_level 64 64
max_input_time 60 60
max_input_vars 1000 1000
memory_limit 128M 128M

output_buffering 4096 4096
output_handler no value no value
post_max_size 24M 24M
precision 14 14
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv Off Off
register_globals Off Off
register_long_arrays Off Off
report_memleaks On On
report_zend_debug On On
request_order GP GP
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 24M 24M
user_dir no value no value
user_ini.cache_ttl 300 300
user_ini.filename .user.ini .user.ini
variables_order GPCS GPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.enable_gc On
  • Astrid Pedersen
  • Astrid Pedersen's Avatar
30 Aug 2014 15:37
Replied by Astrid Pedersen on topic Custom display extra fields

Custom display extra fields

Category: English K2 Community

Okay. I got some help from a friend. Here's how far it got us (if anyone should wonder).

In order to have the extra fields displayed independently, you need to split them up. So replace the "foreach ..." line in you item.php with this:

<!-- START: Call to prepare extra fields -->
<?php
//convertArray to use ids as key
$extrafields = array();
foreach($this->item->extra_fields as $item)
{
$extrafields[$item->id] = $item->value;
}
?>
<!-- END: Call to prepare extra fields -->

Then, to call the extra field you need in, do this:

<?php if(isset($extrafields[*X*]) === true):?>
<?php echo $extrafields[*X*]; ?>
<?php endif; ?>

Where *X* is the numeric ID of the extra field.

Now here comes the fun part. I wanted to create a 1-6 stars rating system for my client who is a music journalist. He should be able to select a rating from a dropdown, and this value should be displayed as stars in the item view.

I decided to use the css and sprite based article rating system which comes with K2 - then I could "recycle" the nice star images and the css already created.

Heres how it looks:

<?php if(isset($extrafields[3]) === true):?>

<ul class="itemRatingList">
<li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo round($extrafields[3]*100/6); ?>%;"></li>
<li><?php if(isset($extrafields[3]) == 1):?><a href="#" title="<?php echo JText::_('K2_1_STAR_OUT_OF_5'); ?>" class="one-star">1</a></li><?php endif; ?>
<li><?php if(isset($extrafields[3]) == 2):?><a href="#" title="<?php echo JText::_('K2_2_STARS_OUT_OF_5'); ?>" class="two-stars">2</a></li><?php endif; ?>
<li><?php if(isset($extrafields[3]) == 3):?><a href="#" title="<?php echo JText::_('K2_3_STARS_OUT_OF_5'); ?>" class="three-stars">3</a></li><?php endif; ?>
<li><?php if(isset($extrafields[3]) == 4):?><a href="#" title="<?php echo JText::_('K2_4_STARS_OUT_OF_5'); ?>" class="four-stars">4</a></li><?php endif; ?>
<li><?php if(isset($extrafields[3]) == 5):?><a href="#" title="<?php echo JText::_('K2_5_STARS_OUT_OF_5'); ?>" class="five-stars">5</a></li><?php endif; ?>
<li><?php if(isset($extrafields[3]) == 6):?><a href="#" title="<?php echo JText::_('K2_6_STARS_OUT_OF_5'); ?>" class="six-stars">6</a></li><?php endif; ?>
</ul>

<?php endif; ?>

When I at some point can manage to get my hands down, I will look into replacing the a tags with span or something. But now it works.

Best regards,

Astrid
  • JoomlaWorks
  • JoomlaWorks's Avatar
29 Aug 2014 00:13
Replied by JoomlaWorks on topic Img and Description Issue while sharing url on Fb

Img and Description Issue while sharing url on Fb

Category: English K2 Community

Can you provide an actual URL to your site?

If it's not a cached result within Facebook from an older implementation of your site, then some plugin may be messing with your site's meta tags. Check the K2 blog and try sharing any item on FB. You'll see the image is properly preserved and displayed. ;)
  • JoomlaWorks
  • JoomlaWorks's Avatar
28 Aug 2014 23:47
Replied by JoomlaWorks on topic Disable pagination for tags menu

Disable pagination for tags menu

Category: English K2 Community

Go into K2's parameters and under the first tab, locate the value "Item count for tag listings" and set it to some high value to control the display of how many items are visible by default in tag pages.
  • JoomlaWorks
  • JoomlaWorks's Avatar
28 Aug 2014 23:44
Replied by JoomlaWorks on topic Change color specific K2 item

Change color specific K2 item

Category: English K2 Community

Notice your site's <body> tag. In it, you'll see CSS classes specified based on various parameters. This comes from your template. Use these classes to separate your background styling.

E.g. for that specific page, you would add in your CSS file:
body.menu-soggiorni-cefalonia { background: somecolorhere; }

and this would target only this specific page. I hope you get the picture :)
  • JoomlaWorks
  • JoomlaWorks's Avatar
28 Aug 2014 23:40
Replied by JoomlaWorks on topic TAG listing with low resolution images

TAG listing with low resolution images

Category: English K2 Community

The tag view uses the "generic" size referenced by default in K2's parameters, under the Images tab in "Item generic image width (in px). Used in user pages as well as tag, search & date listings." Set the right pixels there and K2 will make sure to resize images properly for this view. If you had this setting tweaked to a small value, then uploaded your K2 items and then you changed the value back to a larger dimension, then K2 will only "HTML resize" the images. To fix this, you need to re-upload your images.
  • Alex Rowbotham
  • Alex Rowbotham's Avatar
28 Aug 2014 18:12
Replied by Alex Rowbotham on topic Why does K2 strip out IPTC info from images?

Why does K2 strip out IPTC info from images?

Category: English K2 Community

Krikor Boghossian wrote: You can use the image's caption and credit fields to display the copyright and photographer.


Hi Krikor

Thanks I have already done that but this does not do the same thing. IPTC tags (or metadata) is digital information that is embedded in the image itself. It contains far more information than copyright information such as where it was taken, when, photographers full details, technical information of the camera, keywords and a description plus much much more. When someone opens this image in software such as Photoshop the user will immediately see a (c) symbol in the file name and by viewing info will then be able to all related metadata. This can be very useful to editors who may be using the images as comps before asking for the license to use it.

It is easy to take images from a website using K2 and without any of this metadata the the person downloading will not have this information saved along with the image. Once they forward it to someone else (even though this in itself is arguably illegal) that new recipient then has an image with no idea of it's origin or copyright status.

Metadata in images is now a standard industry practice, wildly accepted and yet K2 strips it out. If there is no way to prevent this then K2 is not for me or any other creative person not wishing there images to be stolen, or at least to give people the excuse to say they had no idea they were copyrighted etc etc.

The only other solution, which is not very pretty, is to watermark them all, before uploading so that K2 includes the watermark in all the various sized thumbnails.

Anyone know a way to upload iages to K2 items without loosing metadata?
  • Bruno Galante
  • Bruno Galante's Avatar
27 Aug 2014 18:03
Page of items don't appear in backend was created by Bruno Galante

Page of items don't appear in backend

Category: English K2 Community

When I click to view the items in backend, the page don't appears. Just goes blank.

I can view categories, tags, comments, users and even create a new K2 item. Anything but view the page of items :(

The frontend is all right.

Someone is going through or has gone through this? And how can I solve this?

Bests regards,
Bruno
  • Bruno Galante
  • Bruno Galante's Avatar
27 Aug 2014 17:53
Página Itens não aparece no backend was created by Bruno Galante

Página Itens não aparece no backend

Category: Comunidade K2 Brasil

Pessoal,

Sempre que clico para visualizar os itens no backend, não aparece nada. A página simplesmente fica em branco.

Consigo visualizar categorias, tags, comments, users e até criar um novo item K2. Tudo, menos visualizar a página dos itens.

Alguém está passando ou passou por isso? E como posso resolver isso?

Abs,
Bruno
  • Dishon
  • Dishon's Avatar
27 Aug 2014 14:58
Bug in tamplate 1.1.2 update was created by Dishon

Bug in tamplate 1.1.2 update

Category: Commercial Joomla Templates

After updating template to version 1.1.2 links on tags no longer works (404 Not found). Tested on fresh quickstart installation, Joomla updated to latest version 3.3.3 and K2 version 2.6.8.
  • Mara
  • Mara's Avatar
26 Aug 2014 16:09 - 26 Aug 2014 16:10

Open Graph de facebook no es leido correctamente

Category: Comunidad hispana oficial de K2

Hola, por fin resolvi el problema del open graph

fernando lopez wrote: Saludos espero le funcione para alguien, yo lo resolví desactivando la Compresión Gzip, en configuración global en joomla. importante para que notes que si funciona debes crear un articulo nuevo o con un articulo ya existente pegarl el link en developers debugger de facebook y hacerle debug, después de eso puedes pegar ese mismo link en facebook o compartirlo con tus botones sociales que uses y veras que funciona por lo menos a mi me funciono así.
Nota: Ya cuando crees nuevos artículos No tienes porque ir hasta la web developers, ya a partir de nuevos articulos tienes los meta org. funcionando. espero le sirva a alguien ademas es gratis probarlo jeje saludos...


Hola, si habia probado eso en anterior oprotunidad siendo correcta tu respuesta, pero tras la actualizacion, se volvio a dañar y ahi es donde se me quemaron los conocimientos jaja, muchas gracias!


Parece que era lo que sospechaba, las etiquetas ( tag) de los articulos listados que ofrece el modulo echo con RokSprocket Module, del componente RokSprocket, causaban conflicto.

Al agregar los articulos al listado que deseaba mostrar en el modulo, por defecto el componente iba dejando abiertos los tag de cada articulo. Coloque en "none" (en la opcion tag) en todos los articulos agregados en todos los modulos echos con el mismo componente.En la opcion Strip HTML Tags puse "NO". Instale el plugging Content - SP Share porque habia perdido algunas etiquetas del K2.
Limpie con debugger de facebook las url afectadas y por fin esta funcionando correctamente.
Ahora cada vez que agrego un articulo nuevo al modulo, continuo colocando "none", de esa manera logre solucionarlo.


Deseo agradecer a todos los que intentaron ayudarme por ser tan muy amables conmigo. Saludos!!
  • Kostas Chasiotis
  • Kostas Chasiotis's Avatar
26 Aug 2014 10:21
K2 items falang issue was created by Kostas Chasiotis

K2 items falang issue

Category: English K2 Community

Hello,

We are experiencing some weird issues with some K2 items when translating using the falang component and are hoping that you can shed some light on our problem.
We operate a travel site at www.visitmeteora.travel that has all of its articles as K2 items. We used K2 because of the flexibility it provides using its K2 extrafields. We are using the Falang component for translating the site and it all were working fine until a few days ago we decided to enable the "Add alternate meta tags" on the language filter plugin to enable the hreflang tags.
After that, if one tries to change the language of an item that does not have a menu via the language switcher he goes to the corresponding category of the item.
The item language it working just fine because after he goes to the translated category, he can then navigate into the translated K2 item.
Any help would be great!

We are using Joomla 3.2 with K2 2.6.6 and just updated Falang to current version 1.4 free.
Please keep in mind that we cannot update Joomla core or K2 at this time due to changes in core. We will eventually update but since it is now high season (it is a travel site) we cannot do it right now.
  • Lutz
  • Lutz's Avatar
25 Aug 2014 17:42

Artikel nur in der Kategorie öffentlich ...

Category: Offizielle deutsche Gemeinschaft

Guten Tag,
mein Name ist Lutz und ich bin ein K2 Neuling. Joomla ist mir nicht fremd, aber die Artikelverwaltung mit K2 ist ja wirklich sehr vielseitig.

Eine kleine Frage hätte ich gleich zu Anfang.
Ist es eigentlich machbar die Artikelvorschau in der Kategorie öffentlich zu gestalten, die Detailansicht der der Artikel jedoch nur registrierten Nutzern zu erlauben?
Aufgrund der vielen Einstellmöglichkeiten, dachte ich dieses Feature zu finden. Habe dabei aber leider nichts entdeckt.

Vielen Dank im voraus ...
  • sadegh
  • sadegh's Avatar
23 Aug 2014 10:24
styling extra field was created by sadegh

styling extra field

Category: English K2 Community

i have some multi select list
by default k2 echo all of the options inside an span tag
but i need echo each option inside a span tag
is this possible
Displaying 2361 - 2380 out of 6582 results.