Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Chewy33
  • Chewy33's Avatar
20 Feb 2014 13:35

Créer des sous-rubriques liées à un article

Category: Communauté française K2

Je ne pouvais pas dupliquer ce menu apparemment !

Pour le module de K2, ça me permet de faire ce que tu as sur l'image en dessous. Sauf que les modules sur la droite n'ont du contenu que dans les fiches séries avec le système de relation par tags. Et donc je voudrais que sur cette page les modules n'apparaissent pas. Et ça je l'obtiens quand j'arrive depuis le menu principal, celui de la page d'accueil du site :

File Attachment:


Alors que on clique sur le bouton "Accueil séries" qui est ici pour revenir sur la page d'accueil du menu Séries, on obtient la page sans les modules :

File Attachment:


Je t'avoue que je suis un peu perdu là ! Il doit y avoir un conflit dans les menus je penses, mais alors lequel... :blink:
  • Mohsen Babaei
  • Mohsen Babaei's Avatar
20 Feb 2014 12:04
Replied by Mohsen Babaei on topic [SOLVED] problem to override item.php

[SOLVED] problem to override item.php

Category: English K2 Community

Lefteris Kavadas wrote: Hi. Please ensure that the category of this item is setup to use the default template and not another one. If you need to override K2mart block then you need to take a look at K2mart documentation at www.joomlaworks.net/docs/k2mart

hello
I am sure that category of this item is setup to default template but when i change item title h2 tag to h1 in default item.php and test it by webdeveloper tag is still h2.
I rename default folder in templates/joomltemplate/html/com_k2 and also in components/com_k2/templates to defalt1. category list disappeared in my site but item pages do not disappeared.
I think item.php load from another folder.
I use k2mart too.
i wonder if you help me
Regards
  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
20 Feb 2014 10:06
Replied by Kannan Naidu Venugopal on topic Override for tag.php not working

Override for tag.php not working

Category: English K2 Community

Hi Tracey,

I believe your home menu item type is the default joomla home menu, which is featured articles ?

I normally would create the Home menu item type to K2 Categories, and if i need more that one category i will select more and choose a template name - eg: home.

I will style accordingly, even if each category have their own sub-template, my home i will style it differently.
  • Tracey
  • Tracey's Avatar
20 Feb 2014 09:42
Replied by Tracey on topic Override for tag.php not working

Override for tag.php not working

Category: English K2 Community

Hi Kannan,

Thanks for the reply, I must have been typing my second post when you responded.

If I did that the way you explained, would I have a clickable menu link for tags because I wouldn't want that. Please correct me if I'm wrong.

This is only my 2nd stab at using joomla and k2 so I have alot to learn lol especially since I am not a professional web designer or developer, just learning as I go.

If you would like, you can see what I am trying to do here: 184.154.228.17/~townofsa/

My website is still a work in progress but when looking at the home page you can see my custom k2 content module in the mainbody postion. I actually want to get my tag results page to have a more or less similar look. In other words when I click a tag the result page would list out the proper items similiar to what my k2 content module does.
  • Tracey
  • Tracey's Avatar
20 Feb 2014 09:21
Replied by Tracey on topic Override for tag.php not working

Override for tag.php not working

Category: English K2 Community

Wow, ok.. I just answered part of my own question again!

After making my last post I looked back at some of my old post from 2 years ago and in one of my post I asked a similar question about the user.php file.

It seems I moved the user.php file from my override folder and put it directly into the com_k2 folder and it started working. So.. to make a long story short I just tried the same thing with the tag.php file and it worked. Problem is I don't understand why.

Could someone please make a tutorial that shows where each file should go that can be templated. I really think it would benefit allot of people.

Just so it's clear, from what i can tell the downloadable override zip doesn't even have the right file structure, if it did my tag.php override would have worked without moving it.

Thanks
  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
20 Feb 2014 09:21
Replied by Kannan Naidu Venugopal on topic Override for tag.php not working

Override for tag.php not working

Category: English K2 Community

If i'm not mistaken the tag overrides works when you create a menu and choose the type as K2 tag, and in the menu options you can select the template to use.
  • Tracey
  • Tracey's Avatar
20 Feb 2014 08:54
Override for tag.php not working was created by Tracey

Override for tag.php not working

Category: English K2 Community

Hello,

I am trying to do a template override for the tag.php file but it is not working.

I have the tag.php located here inside the custom_override folder:

templates/myTemplate/html/com_k2/custom_override

Should my tag.php be put somewhere else?

I have my item.php override in the same folder and that works good so why doesn't the tag.php work?

I am not sure why but depending on where i get the information(different websites) it seems people have a different opinion of how to structure k2 overrides in the file system.

There just seems to be alot of confusion on how to do k2 overrides for newbees like myself and it doesnt help that your override tutorial refers to joomla 1.5 .

Aside from finding an answer to the above questions is there any chance that the k2 team could publish a new guide for overrides that is relevant to joomla 3 and the latest version of k2?


If it helps I am using k2 v2.6.7, Joomla! v3.2.2 and RocketTheme Oculus template
  • Chewy33
  • Chewy33's Avatar
20 Feb 2014 03:44

Créer des sous-rubriques liées à un article

Category: Communauté française K2

Alors j'ai testé avec le système de tags, et franchement ça fonctionne bien, merci !
J'ai installé le plugn K2 Related Content et ça me permet d'obtenir exactement l'affichage que je souhaite avec à côté de la fiche des blocs présentant les saisons, les personnages, les acteurs... vraiment cool B)

Je rencontre par contre un petit problème, rien de grave mais ça me prend la tête depuis bien 2h !!!
Sur mon site j'ai créé deux menus. Le 1er est le général avec le bouton "Accueil", Actualités, "Dossiers"... et le bouton "Séries". Ce bouton permet d'accéder à ce que j'appelle la seconde moitié du site, les fameuses fiches. Donc quand on clique dessus, on tombe sur une page avec un nouveau template pour un 2nd menu. Alors voici le petit problème :

- Quand j'arrive depuis les menus de la première moitié du site dans cette partie du site via le bouton "Séries", j'accède sur un blog catégories fiches séries et sur la droite les différents modules K2 Related Content sont présents (saisons, personnages, casting), normal car ici on fait juste un listing, il n'y a pas de tags associés. Par contre quand on clique sur une fiche série, là le contenu appraît car lié à un tag.
Si tu me suis, j'aimerais tout simplement que sur la page qui sert d'accueil aux fiches séries les blocs de ce module soient cachés...
- Et là, ça se complique, quand on est dans le 2nd menu et qu'on clique sur le bouton "Accueil" de ce 2nd menu pour arriver sur la page listant les fiches séries, les blocs de K2 Related Content n'y sont pas, mais ils y sont bien quand on va dans les fiches. Pour ce menu j'avais bien demandé à ne pas assigner les modules et ça fonctionne bien juste pour la page d'accueil de ce menu, mais pas pour l'autre ! En fait il faudrait faire pointe sur la même page dans chaque menu mais je n'y arrive pas...

Je ne pense pas que ce soit très clair tout ça... si jmais tu as une idée, je suis preneur.
Merci.
  • Hardkiffeur
  • Hardkiffeur's Avatar
19 Feb 2014 14:24 - 19 Feb 2014 14:28
Replied by Hardkiffeur on topic Créer des sous-rubriques liées à un article

Créer des sous-rubriques liées à un article

Category: Communauté française K2

Difference de version de K2 je pense .... moi j'ai dans ma signature les versions de Joomla et K2 avec les quelles je bosse :(


Tu as donc aussi une configuration de l'ordre d'affichage pour tes tag ... c'est par là que tu peut modérer un peu l'anarchie actuelle de l'ordre de tes listes ...
  • Chewy33
  • Chewy33's Avatar
19 Feb 2014 13:51

Créer des sous-rubriques liées à un article

Category: Communauté française K2

Tu as tout les parametres dans K2 parameters / Layout au niveau liste rendu par tag ! Regardes et test mais tu as des réglages assez fins


Est-ce que tu sais exactement où je peux trouver ces options ? Je suis allé sans les paramètres de "éléments", mais à part choisir l'affiche ou non du titre, de la description, le nombre d'entrées... je n'ai pas trouvé d'autres options...

Pour le reste, je vais regarder et étudier les modules complémentaires. Je te tiens au courant de la suite.

Merci.
  • Hardkiffeur
  • Hardkiffeur's Avatar
19 Feb 2014 12:33 - 19 Feb 2014 12:36
Replied by Hardkiffeur on topic Créer des sous-rubriques liées à un article

Créer des sous-rubriques liées à un article

Category: Communauté française K2

Et c'est classé assez anarchiquement. Penses-tu qu'on puisse dans ce cas demander à l'outil de classer par catégories (saison, épisodes, personnages, acteurs...) ?

Tu as tout les parametres dans K2 parameters / Layout au niveau liste rendu par tag ! Regardes et test mais tu as des réglages assez fins ;)

Question agencement qui découle de ce point, sais-tu si je pourrais afficher cette liste d'éléments similaires sur une colonne à droite pour donner une impression de sous-menu à l'article de la série ?

C'est exactement ce que fait un module sous Joomla, je te propose de regarder les modules dispo de base avec K2 (il y en a pas mal) : BackEnd : Extensions / Nouveau : tous les modules K2 ! Test les et regardes, sinon il y a bien la possibilité de créer un sur mesure avec K2 Tools et son code et pourquoi pas se baser sur le code de la fiche et son affichage des liens vers par tag .... A suivre donc ceci ;)

Oui les prerequis pour Joomla 3.2.2 sont plus feroces que 2.5 surtout sur la version du Php donc tu as raison de checker Tes Extension et ton hebergement ;)
la liste ici : www.joomla.org/technical-requirements.html
  • Agence culturelle départementale Dordogne-Périgord
  • Agence culturelle départementale Dordogne-Périgord's Avatar
19 Feb 2014 11:00
Replied by Agence culturelle départementale Dordogne-Périgord on topic Display extra fields in BT-Content-Slider (module)

Display extra fields in BT-Content-Slider (module)

Category: English K2 Community

OK, I got it working the way I wanted it to.

I wanted to replace intro / full text with an extrafield that I called 'Accroche' . This extrafield has an ID of 132 (useful to know the ID that will be used in code below).

We will be editing 2 files :

/modules/mod_bt_contentslider/classes/content.php
and
/modules/mod_bt_contentslider/classes/k2.php

First thing to do is get the extrafield info from database :

in /modules/mod_bt_contentslider/classes/content.php (around line 77) I added a.extra_fields, as follows
$model->setState('list.select', 'a.urls, a.images, a.fulltext, a.id, a.title, a.alias, a.introtext, a.extra_fields, a.state, a.catid, a.created, a.created_by, a.created_by_alias,' . ' a.modified, a.modified_by,a.publish_up, a.publish_down, a.attribs, a.metadata, a.metakey, a.metadesc, a.access,' . ' a.hits, a.featured,' . ' LENGTH(a.fulltext) AS readmore');

Save file & close

Now lets get to /modules/mod_bt_contentslider/classes/k2.php (around line 234),

Replace this original code
 // cut introtext if ($limitDescriptionBy == 'word') { $item->description = self::substrword($item->introtext, $maxDesciption, $replacer, $isStrips, $stringtags); $item->description = self::substring($item->introtext, $maxDesciption, $replacer, $isStrips, $stringtags); } $item->categoryLink = urldecode(JRoute::_(K2HelperRoute::getCategoryRoute($item->catid . ':' . urlencode($item->categoryalias)))); // get author name & link 


With this code that I've commented to make things understandable for noobs like me ;)
 // REPLACE intro/full text With extra-field info $extras = json_decode($item->extra_fields); // JSON Array we'll call extras (note final 's' : not to confuse with below variable) foreach ($extras as $key=>$extraField): //Get values from array if($extraField->value != ''): //If not empty if($extraField->id == '132'): // This is ID value for extrafield I want to show --- Search your K2 extrafield's id in Joomla backoffice ->K2 ->extrafields --- if($extraField->value != ''): // If there's content in the extrafield of that ID $extra = $extraField->value; //Give $extra that value so we can hand it down below endif; endif; endif; endforeach; // cut introtext if ($limitDescriptionBy == 'word') { // $item->description = self::substrword($item->introtext, $maxDesciption, $replacer, $isStrips, $stringtags); $item->description = self::substrword($extra, $maxDesciption, $replacer, $isStrips, $stringtags); } else { // $item->description = self::substring($item->introtext, $maxDesciption, $replacer, $isStrips, $stringtags); $item->description = self::substring($extra, $maxDesciption, $replacer, $isStrips, $stringtags) ; } $item->categoryLink = urldecode(JRoute::_(K2HelperRoute::getCategoryRoute($item->catid . ':' . urlencode($item->categoryalias)))); // get author name & link

As you can see, I've commented out the intro texts as I don't want them. You can modify that if you want both introtext AND extrafield.

Hope this helps.

Cheers !
  • Hardkiffeur
  • Hardkiffeur's Avatar
18 Feb 2014 18:28
Replied by Hardkiffeur on topic Créer des sous-rubriques liées à un article

Créer des sous-rubriques liées à un article

Category: Communauté française K2

Salut mec ;)

Mais comment faire pour avoir les sous-rubriques de la fiche, en l'occurrence "Saisons", "Episodes" et "Personnages", par exemple ? En fait, comment lier le contenu de ces sous-rubriques à l'article/élément ? Et en gros avoir un menu contextuel pour chaque fiche qui permettrait de se rendre aux éléments propres (résumé des saisons, résumé des épisodes, présentation des personnages...) à cette fiche.


Avec K2 et ses catégories tu peut :

Categories maîtresses (Séries, Films):

Séries
- Sciences Fiction
-- Start gate
--- Saison 1
---- Episodes
Titre1 fiche de l'épisode
Résumé
Liens
Titre2 fiche de l'épisode
Résumé
Liens
--- Saison 2
....
- Action
....
- Etrangères
- ...

Films

Sinon tu peut aussi lier ta série ou un épisode avec une nomenclature spécifiqu, que tu appliques avec les tags Exemple :

Dead Like Me article dans la catégorie Série, avec le tag "DLM", par exemple, tu créer une catégorie Acteurs par exemple, tu ajoutes un article titre : " Acteurs (sous entendu de Dead Like Me) en titre, et tu ajoutes le tag DLM, de même avec les autre article (fiche) que tu veut ajouter à une série : Bande sons ...

Dès lors que tu cliques sur le tag DLM tu auras listé : La fiche de la série, les épisodes qui y sont attaché, les fiche acteurs .......

Note : Réfléchies à prendre directement Joomla 3! et son très GROS bonus de RESPONSIVE pour ce genre de portail à fort valeur ajoutée pour les TV connectées ou autres tablettes par exemple ;)

Dis moi si je ne suis pas assez clair ;)
  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
18 Feb 2014 17:56
Replied by Kannan Naidu Venugopal on topic K2 has 2 sets of OG tags

K2 has 2 sets of OG tags

Category: English K2 Community

K2 automatically creates the OG tags, if you have more than one, maybe there is a plugin or template generating the tags. If you want to disable the K2 generated tags, you have to unfortunately do a hack.
  • Geoffroy
  • Geoffroy's Avatar
18 Feb 2014 17:08
Replied by Geoffroy on topic extra field to link to an article

extra field to link to an article

Category: English K2 Community

Yeah the tagging work, but it's not really nice for the client. At this point, I made an extra field as a text box and using the jce editor, so the client have to click on the add link and choose one k2 article. Not the greatest but not too bad. I'm looking into the javascript now to see if I can output the JCE while removing most of the button and only leaving the link button..
  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
18 Feb 2014 08:59
Replied by Kannan Naidu Venugopal on topic extra field to link to an article

extra field to link to an article

Category: English K2 Community

I am not sure there is a plugin for that, but from what i understand you could use the k2 tagging system and link both articles using same tag.
  • John Dunstan
  • John Dunstan's Avatar
17 Feb 2014 17:46
K2 has 2 sets of OG tags was created by John Dunstan

K2 has 2 sets of OG tags

Category: English K2 Community

Hello,

I use Sh404sef, and I choose to show the social tags (Facebook OG tags). When this is enabled, when you go to a K2 item, there are 2 sets of OG tags, with slightly different info in each.

Does K2 add this data? I have disabled the Sh404sef social tags, and they all disappear excpet from the K2 Items, where the K2 items only show one set of OG tags...

Where are these coming from? Every site I have that runs K2 has the same issue. Here is an example page (just check the page source):

www.inspiremedia.com.au/blog/7-tips-for-repurposing-your-content
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
17 Feb 2014 12:31
Replied by Krikor Boghossian on topic How to add Bubble Speech as shown in Typography

How to add Bubble Speech as shown in Typography

Category: Commercial Joomla Templates

Hello Stephen,

Unfortunately I have not read one personally which I can suggest.

A quick google search lead me to these: it-ebooks.info/tag/joomla/

FYI. Have you tried OSTraining? www.ostraining.com/ They have several Joomla! tutorial and classes. The K2 documentation videos - getk2.org/documentation/k2class2012 - were made by them.
  • Stuart Claggett
  • Stuart Claggett's Avatar
16 Feb 2014 18:35
K2 Item Image was created by Stuart Claggett

K2 Item Image

Category: English K2 Community

Hello,

I am attempting to integrate K2 as a standard extension install to work with a Joomlart template. The basic functionality is there. When I create a category menu it works and the image shows up. When I create a tag menu it works and the image for the item shows up.

However when I click on the actual item the image does not show. I have not changed anything from the standard setting and properties are inherited from the category.

The site is running on the most recent joomla and k2 (also a mijoshop)


:dry:
  • Yiota
  • Yiota's Avatar
14 Feb 2014 15:14
Replied by Yiota on topic [SOLVED] K2 facebook comments

[SOLVED] K2 facebook comments

Category: English K2 Community

You need to replace this code
<div class="itemComments"> <?php if($this->item->params->get('commentsFormPosition')=='above' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?> <!-- Item comments form --> <div class="itemCommentsForm"> <?php echo $this->loadTemplate('comments_form'); ?> </div> <?php endif; ?> <?php if($this->item->numOfComments>0 && $this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2'))): ?> <!-- Item user comments --> <h3 class="itemCommentsCounter"> <span><?php echo $this->item->numOfComments; ?></span> <?php echo ($this->item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?> </h3> <ul class="itemCommentsList"> <?php foreach ($this->item->comments as $key=>$comment): ?> <li class="<?php echo ($key%2) ? "odd" : "even"; echo (!$this->item->created_by_alias && $comment->userID==$this->item->created_by) ? " authorResponse" : ""; echo($comment->published) ? '':' unpublishedComment'; ?>"> <span class="commentLink"> <a href="<?php echo $this->item->link; ?>#comment<?php echo $comment->id; ?>" name="comment<?php echo $comment->id; ?>" id="comment<?php echo $comment->id; ?>"> <?php echo JText::_('K2_COMMENT_LINK'); ?> </a> </span> <?php if($comment->userImage): ?> <img src="<?php echo $comment->userImage; ?>" alt="<?php echo JFilterOutput::cleanText($comment->userName); ?>" width="<?php echo $this->item->params->get('commenterImgWidth'); ?>" /> <?php endif; ?> <span class="commentDate"> <?php echo JHTML::_('date', $comment->commentDate, JText::_('K2_DATE_FORMAT_LC2')); ?> </span> <span class="commentAuthorName"> <?php echo JText::_('K2_POSTED_BY'); ?> <?php if(!empty($comment->userLink)): ?> <a href="<?php echo JFilterOutput::cleanText($comment->userLink); ?>" title="<?php echo JFilterOutput::cleanText($comment->userName); ?>" target="_blank" rel="nofollow"> <?php echo $comment->userName; ?> </a> <?php else: ?> <?php echo $comment->userName; ?> <?php endif; ?> </span> <p><?php echo $comment->commentText; ?></p> <?php if($this->inlineCommentsModeration || ($comment->published && ($this->params->get('commentsReporting')=='1' || ($this->params->get('commentsReporting')=='2' && !$this->user->guest)))): ?> <span class="commentToolbar"> <?php if($this->inlineCommentsModeration): ?> <?php if(!$comment->published): ?> <a class="commentApproveLink" href="<?php echo JRoute::_('index.php?option=com_k2&view=comments&task=publish&commentID='.$comment->id.'&format=raw')?>"><?php echo JText::_('K2_APPROVE')?></a> <?php endif; ?> <a class="commentRemoveLink" href="<?php echo JRoute::_('index.php?option=com_k2&view=comments&task=remove&commentID='.$comment->id.'&format=raw')?>"><?php echo JText::_('K2_REMOVE')?></a> <?php endif; ?> <?php if($comment->published && ($this->params->get('commentsReporting')=='1' || ($this->params->get('commentsReporting')=='2' && !$this->user->guest))): ?> <a class="modal" rel="{handler:'iframe',size:{x:560,y:480}}" href="<?php echo JRoute::_('index.php?option=com_k2&view=comments&task=report&commentID='.$comment->id)?>"><?php echo JText::_('K2_REPORT')?></a> <?php endif; ?> <?php if($comment->reportUserLink): ?> <a class="k2ReportUserButton" href="<?php echo $comment->reportUserLink; ?>"><?php echo JText::_('K2_FLAG_AS_SPAMMER'); ?></a> <?php endif; ?> </span> <?php endif; ?> <div class="clr"></div> </li> <?php endforeach; ?> </ul> <div class="itemCommentsPagination"> <?php echo $this->pagination->getPagesLinks(); ?> <div class="clr"></div> </div> <?php endif; ?> <?php if($this->item->params->get('commentsFormPosition')=='below' && $this->item->params->get('itemComments') && !JRequest::getInt('print') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2' && K2HelperPermissions::canAddComment($this->item->catid)))): ?> <!-- Item comments form --> <div class="itemCommentsForm"> <?php echo $this->loadTemplate('comments_form'); ?> </div> <?php endif; ?> <?php $user = JFactory::getUser(); if ($this->item->params->get('comments') == '2' && $user->guest): ?> <div><?php echo JText::_('K2_LOGIN_TO_POST_COMMENTS'); ?></div> <?php endif; ?> </div>

with this one:
<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <div class="fb-comments" data-href="<?php $url="".$this->item->absoluteURL; echo $url; ?>" data-width="500" data-num-posts="10"></div> 

not keep them both in your item.
Displaying 2801 - 2820 out of 6582 results.

Powered by Kunena Forum