Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Brenda
  • Brenda's Avatar
18 May 2011 16:20
Replied by Brenda on topic Help with css on a Tag Menu page

Help with css on a Tag Menu page

Category: English K2 Community

Thanks for your fast response!

When I added the code, I got:

Parse error: syntax error, unexpected T_IS_EQUAL in .../html/com_k2/templates/generic.php on line 128 Yiota Ziaggou said:

In generic.php locate the foreach right after the genericItemList div container and replace it with this:

<?php foreach($this->items as $key=>$item): ?>

Then go to the endforeach and right before that put this

<?php if(($key+1)%2)==0): ?>    <div class="clr"></div><?php endif; ?>

 

This will just put a clear div after the second column.

 

 

Here is my entire file:

&lt;?php/** * @version        $Id: generic.php 478 2010-06-16 16:11:42Z joomlaworks $ * @package        K2 * @author        JoomlaWorks www.joomlaworks.gr * @copyright    Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved. * @license        GNU/GPL license: www.gnu.org/copyleft/gpl.html */// no direct accessdefined('_JEXEC') or die('Restricted access');?><!-- Start K2 Generic Layout --><div id="k2Container" class="genericView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>">    <?php if($this->params->get('show_page_title')): ?>    <!-- Page title -->    <div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">        <?php echo $this->escape($this->params->get('page_title')); ?>    </div>    <?php endif; ?>    <?php if($this->params->get('userFeed')): ?>    <!-- RSS feed icon -->    <div class="k2FeedIcon">        <a href="/<?php echo $this->feed; ?>" title="<?php echo JText::_('Subscribe to this RSS feed'); ?>">            <span><?php echo JText::_('Subscribe to this RSS feed'); ?></span>        </a>        <div class="clr"></div>    </div>    <?php endif; ?>    <?php if(count($this->items)): ?>    <div class="genericItemList"><?php foreach($this->items as $key=>$item): ?>        <!-- Start K2 Item Layout -->        <div class="genericItemView">            <div class="genericItemHeader">                <?php if($item->params->get('genericItemDateCreated')): ?>                <!-- Date created -->                <span class="genericItemDateCreated">                    <?php echo JHTML::_('date', $item->created , JText::_('DATE_FORMAT_LC2')); ?>                </span>                <?php endif; ?>                          <?php if($item->params->get('genericItemTitle')): ?>              <!-- Item title -->              <h2 class="genericItemTitle">                  <?php if ($item->params->get('genericItemTitleLinked')): ?>                    <a href="/<?php echo $item->link; ?>">                      <?php echo $item->title; ?>                  </a>                  <?php else: ?>                  <?php echo $item->title; ?>                  <?php endif; ?>              </h2>              <?php endif; ?>          </div>          <div class="genericItemBody">              <?php if($item->params->get('genericItemImage') && !empty($item->imageGeneric)): ?>              <!-- Item Image -->              <div class="genericItemImageBlock">                  <span class="genericItemImage">                    <a href="/<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>">                        <img src="/<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>" style="width:150px; height:auto;" />                    </a>                  </span>                  <div class="clr"></div>              </div>              <?php endif; ?>                            <?php if($item->params->get('genericItemIntroText')): ?>              <!-- Item introtext -->              <div class="genericItemIntroText">              <?php echo K2HelperUtilities::wordLimit($item->introtext,25);?>                  </div>              <?php endif; ?>              <div class="clr"></div>          </div>                    <div class="clr"></div>                    <?php if($item->params->get('genericItemExtraFields') && count($item->extra_fields)): ?>          <!-- Item extra fields -->            <div class="genericItemExtraFields">              <h4><?php echo JText::_('Additional Info'); ?></h4>              <ul>                <?php foreach ($item->extra_fields as $key=>$extraField): ?>                <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">                    <span class="genericItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>                    <span class="genericItemExtraFieldsValue"><?php echo $extraField->value; ?></span>                        </li>                <?php endforeach; ?>                </ul>            <div class="clr"></div>          </div>          <?php endif; ?>                      <?php if($item->params->get('genericItemCategory')): ?>            <!-- Item category name -->            <div class="genericItemCategory">                <span><?php echo JText::_('Published in'); ?></span>                <a href="/<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a>            </div>            <?php endif; ?>                        <?php if ($item->params->get('genericItemReadMore')): ?>            <!-- Item "read more..." link -->            <div class="genericItemReadMore">                <a class="k2ReadMore" href="/<?php echo $item->link; ?>">                    <?php echo JText::_('Read more...'); ?>                </a>            </div>            <?php endif; ?>            <div class="clr"></div>        </div>        <!-- End K2 Item Layout -->        <?php if(($key+1)%2)==0): ?>    <div class="clr"></div><?php endif; ?>        <?php endforeach; ?>    </div><div class="clr"></div>    <!-- Pagination -->    <?php if($this->pagination->getPagesLinks()): ?>    <div class="k2Pagination">        <?php echo $this->pagination->getPagesLinks(); ?>        <div class="clr"></div>        <?php echo $this->pagination->getPagesCounter(); ?>    </div>    <?php endif; ?>    <?php endif; ?>    </div><!-- End K2 Generic Layout -->
  • Brenda
  • Brenda's Avatar
18 May 2011 02:27
Help with css on a Tag Menu page was created by Brenda

Help with css on a Tag Menu page

Category: English K2 Community

I limited the introtext word count by making this change to generic.php

&lt;?php if($item-&gt;params-&gt;get('genericItemIntroText')): ?&gt;              &lt;!-- Item introtext --&gt;              &lt;div class="genericItemIntroText"&gt;              &lt;?php echo K2HelperUtilities::wordLimit($item-&gt;introtext,25);?&gt;                  &lt;/div&gt;              &lt;?php endif; ?&gt;

Then I edited the k2.css to make it 2 columns:

div.genericItemView {    border-top: 1px solid #FF9933;    padding: 0px;    margin: 50px 0 0 0;    width: 50%;    float: left;}/* this is the item container for this view */

but if you look at the page, most of the rows have 2 items in it, but some have a blank spot and then just 1 item:  www.piggygiggles.com/crafts-for-girls

I'm trying to get it to look like my layout in category layout:  www.piggygiggles.com/crafts-for-kids/foam-crafts

 

 
  • B_Dark
  • B_Dark's Avatar
18 May 2011 00:49

How can I show K2 » Itemlist / Category like Tag view items list?

Category: English K2 Community

I want my default page of K2 to show the items like it shows the results when I click on a tag.
  • jeffreyd00
  • jeffreyd00's Avatar
17 May 2011 17:30

Tag Cloud - How to Order Results Page by Newest First

Category: English K2 Community

Found the solution, there is an order option in the main K2 preferences. I did not know it was related to tags though until another user pointed it out.
  • testa
  • testa's Avatar
17 May 2011 15:41
Replied by testa on topic k2 video adding only by url - like zoo

k2 video adding only by url - like zoo

Category: English K2 Community

hey BBC,

all video plug also uses tags {} and not a pure url - but let's get one step back to embed iframe code.

in the video tab you can insert embed iframe come, then the video is shown. To have it as I would wish there are 2 things needed:

1) the video should be shown in the content (like pictures do) - right now the video is shown outside of the content, after the author - I want to have inside the article.

2) change embed iframe code to pure url. so that entering the pure url would be enough to get is displayed and no need for the iframe code.

 

this would be perfect. I think right now there's no possibility for my 2nd wish - but I think that there is surely a solution for my first point - at least I hope so ;-)
  • Josh
  • Josh's Avatar
17 May 2011 15:19
Replied by Josh on topic Displaying items by tag

Displaying items by tag

Category: English K2 Community

Did that work? You could also remove the below code from your generic.php however then you will not be able to use the rss feed on other pages using generic.php

The code to remove:

&lt;?php if($this-&gt;params-&gt;get('userFeed')): ?&gt;  &lt;!-- RSS feed icon --&gt;  &lt;div class="k2FeedIcon"&gt; &lt;a href="&lt;?php echo $this-&gt;feed; ?&gt;" title="&lt;?php echo JText::_('Subscribe to this RSS feed'); ?&gt;"&gt; &lt;span&gt;&lt;?php echo JText::_('Subscribe to this RSS feed'); ?&gt;&lt;/span&gt; &lt;/a&gt;    &lt;div class="clr"&gt;&lt;/div&gt;  &lt;/div&gt;  &lt;?php endif; ?&gt;
  • Josh
  • Josh's Avatar
17 May 2011 12:54
Replied by Josh on topic Displaying items by tag

Displaying items by tag

Category: English K2 Community

Hi,

First check that in your k2 parameters in the -&gt; Layout &amp; view options for user (author) pages

The Rss feed icon is set to "Hide"

If you refresh you page and it still doesn't hide the icon then you might need to clear your cache, perhaps do a global checkin then refresh your tag page again (shift+refresh)
  • Claes Norin
  • Claes Norin's Avatar
16 May 2011 19:31
Replied by Claes Norin on topic menu link: tag filtered on category with sh404sef

menu link: tag filtered on category with sh404sef

Category: English K2 Community

From the sh404sef team:

 

The solution has to be inside K2. We are keen to resolve this however, let us know how it turns out.

 

___

Any developer here has an idea of what needs to be done? 

 
  • Yiota
  • Yiota's Avatar
16 May 2011 16:43

Changing fontsize and lineheight in K2 item

Category: English K2 Community

You can have a generic rule about this in the body tag or an outer container of your text area.
  • Claes Norin
  • Claes Norin's Avatar
16 May 2011 15:08
Replied by Claes Norin on topic menu link: tag filtered on category with sh404sef

menu link: tag filtered on category with sh404sef

Category: English K2 Community

One of sh404sef moderators/developers answered this in the link above:

 

 Well the only way to solve this, if you`re sure that works with sh404sef disabled is maybe to ask K2 devs to gives you possibility to add the tag id on the sef url.So:for category asia will have: website.com/tag/orange-1for category africa will have: website.com/tag/orange-2Where 1 and 2 are the tag id.Rgds

 

_____

 

Is there something I can do to allow this ID ?
  • violette girardot
  • violette girardot's Avatar
16 May 2011 12:48
Exclamation Looks for of dev was created by violette girardot

Exclamation Looks for of dev

Category: English K2 Community

Hello dear Joomleurs, continuation(suite) from my dev,    I look for specialized Dev joomla 1.5 k2 for the finalization of a search engine based on k2 extra(special) fields.    I need to obtain:    .un sorting personalized by the results(profits)    .le replacement of tags by values stemming from the bdd in the results(profits)   . Make a map interact made in flash with tables k2    .carte and already existing scripts: adapt connectors to the system k2    190 lines HAVE it has to study, and possibly 37 files php to study and to understand(include).   . "Connection" flash / php    Integration of the card(map) flash to a system CMS joomla.   .... Tables are put. The requests work....    This project is rather urgent. I look for a developer inclined to dedicate between 12 and 15 o'clock on this project. Somebody having very good knowledge in flash, K2 and joomla 1.5 to biensur.    Very cordially    Sludge
  • Claes Norin
  • Claes Norin's Avatar
16 May 2011 11:45

menu link: tag filtered on category with sh404sef

Category: English K2 Community

I have 3 categories; africa, asia and south america

 

I have diffrent tags like apple, orange and banana on items in these categories.

 

I want to create several menu links:

 

One link to tag orange in the category africa

One link to tag orange in category asia

One link to tag orange in category banana

 

When I have sh404sef enabled (which work really well everywhere else) I get the same URL for all of these menu items:

website.com/tag/orange

 

So they show the same filter (the first one cached).

 

I have started the same type of thread on sh404sef support forums here: dev.anything-digital.com/Forum/sh404SEF/11006-K2-tag-filtered-by-category-menu-item-problem/
  • testa
  • testa's Avatar
15 May 2011 12:31

k2 video adding only by url - like zoo

Category: English K2 Community

hello,

the last time I tested both extensions - k2 and zoo.

I have to say that k2 is really great - there's only 1 thing I love in zoo and haven't got it work at k2:

In zoo I have a media element video. By simply entering an url - no matter if youtube, myspace, vimeo or what else (just the direct link to a video) the video is automatically displayed in the article. This is also very good and important for frontend submission. The users who send me an article can simply enter the url and don't need anything else (special tags or whatever).

Of course I've seen that k2 has a video tab and I also installed the allvideo plugin but I haven't found a way to get it work. Is there a plug or something else that I can get video's work the same easy way like zoo does? this would be amazing - hope for your answers so that I can start using k2 ;-)

thanks

 
  • NEMESIS
  • NEMESIS's Avatar
14 May 2011 00:35

How to organizing content by volumes, issues and topics!

Category: English K2 Community

Greetings K2 Community

 

I am new to K2, and so far I am in love with the possibilities that K2 offers but I am facing a really big need of assistance.

 

I have combed all over the internet for an answer to this question and have found none. I have solicited freelancers in 5 US cities for someone who knows how to accomplish this task using K2.

 

I have hit the end of the road with this component and unfortunately with this project unless someone can point me in the right direction.

 

The Scope:What I am trying to accomplish is a online newsletter where items are organized under volumes and issues. Each issue consist of 8 to 12 items.

 

The front page is to list 5 topics (will call them topics for now, but they could also be called tags). Each section will have 5 items under them in a single column linking to the main article. Items may belong to more than one issue.

 

I have managed to accomplish this using categories for each topic and the Latest Items menu!

 

The Problem:With the latest Items problem solved I also need to create an additional link for the most recent issue and click on it and see a breakdown of the items in that issue organized by their respective topic. I seem to only be able to pull this off by linking to a category.

 

This page need to have a structure like this.

 

Issue 1

-Topic 1-&gt; Item 1

-Topic 2-&gt; Item 1-&gt; Item 3-&gt; Item 3

-Topic 3-&gt; Item 1-&gt; Item 3-&gt; Item 3

 

I’ve tried using category for the volumes issues and tags for the topics and then I can create a link to a single issue and control the order. But my latest items by tag menu item does not display them in any controllable order.

 

I used categories for topics and then I cannot link to a single issue!

 

Someone please share some knowledge on this. I have spent the last 2 weeks wallowing in ____ trying to make K2 work for me.

 

I appreciate any help you can offer

 

Thank you in advance
  • Odin Mayland
  • Odin Mayland's Avatar
13 May 2011 23:33
Replied by Odin Mayland on topic k2 item's image rotator by tags

k2 item's image rotator by tags

Category: English K2 Community

will try asap.  thanks.

BBC said:
You are lucky. I just checked and Mod_news_pro_gk4 has that you want.

So test it.
  • BBC
  • BBC's Avatar
13 May 2011 23:30
Replied by BBC on topic k2 item's image rotator by tags

k2 item's image rotator by tags

Category: English K2 Community

No, it is not good for that you want.
  • BBC
  • BBC's Avatar
13 May 2011 23:29
Replied by BBC on topic k2 item's image rotator by tags

k2 item's image rotator by tags

Category: English K2 Community

K2 Tools module can filter by tags.
  • BBC
  • BBC's Avatar
13 May 2011 23:26
Replied by BBC on topic k2 item's image rotator by tags

k2 item's image rotator by tags

Category: English K2 Community

Here is tweaked native content module. if you don´t like style of GK4:

 

community.getk2.org/forum/topics/content-module-filter-by-tag-1
  • BBC
  • BBC's Avatar
13 May 2011 23:17
Replied by BBC on topic k2 item's image rotator by tags

k2 item's image rotator by tags

Category: English K2 Community

You are lucky. I just checked and Mod_news_pro_gk4 has that you want.

So test it.
  • BBC
  • BBC's Avatar
13 May 2011 23:06
Replied by BBC on topic k2 item's image rotator by tags

k2 item's image rotator by tags

Category: English K2 Community

It is achievable only if you have separate categories for all that kind of fruits.

Copy module and chose another Category. (or multiple categories) I think so. Maybe some has some solution for Tags that i missed at forum.
Displaying 5121 - 5140 out of 6582 results.

Powered by Kunena Forum