Forum Open Notice
Forum Open Notice
  1. Forum
  2. Profile for

Terry Britton

Offline
Posts
198
Rank
Elite Member
Register Date
05 Nov 2012

Posts

Great. Glad you got it working.

English K2 Community Terry Britton, 15 years 5 months ago 18 replies

My first approach was preferrable for just this reason, but I couldn't ever get it to work consistently.  Not sure why.  Give me a link to your site, may be something we can do in css.

English K2 Community Terry Britton, 15 years 5 months ago 18 replies

Hey Markus, just wrap the following portion of the foreach statement as shown.   if ($this->item->featured) {         echo $this->loadTemplate('item');}   The syntax for not featured is:   if...

English K2 Community Terry Britton, 15 years 5 months ago 18 replies

I'll try to play with it this weekend.

English K2 Community Terry Britton, 15 years 5 months ago 18 replies

Depending on your category layout you can have leading, primary and secondary items, which are each called separately.  The code above will only affect secondary items.  Make the same change to the primary and leading sections...

English K2 Community Terry Britton, 15 years 5 months ago 18 replies

Sorry my explanation wasn't very good.  The test for the featured status goes inside the foreach loop.               <?php foreach($this->secondary as $key=>$item): ?>                    ...

English K2 Community Terry Britton, 15 years 5 months ago 18 replies

I don't use the user extended fields so someone else may have a more specific solution, but you can always temporarily add the following to item.php: <pre><?php print_r($this); ?></pre>.  This will print all the...

English K2 Community Terry Britton, 15 years 6 months ago 1 replies

I've answered your other post.  Please don't double or triple post the same issue.

English K2 Community Terry Britton, 15 years 6 months ago 1 replies

In the template file for the module (default.php) do the following.   1. Add the following near the top. <?php $articleCount = 0; ?> 2. Right after the first foreach add the following. <?php $articleCount = $articleCount +1;...

English K2 Community Terry Britton, 15 years 6 months ago 2 replies

Here's a simple solution, although it has some limitations.  If you need a more elegant solution see this post.   <?php foreach ($this->item->extra_fields as $key=>$extraField):?>             <?php if...

English K2 Community Terry Britton, 15 years 6 months ago 7 replies

More