-
AuthorPosts
-
February 1, 2012 at 10:28 am #173416
Hi,
I am trying to edit the K2 item view to rearrange a few of the blocks. My main issue can be seen here:
The video is all the way down, below author description and everything! That’s very confusing to people.
I would also like to tweak some other stuff, but my question is:
Where is the .php file which controls the order of K2 item content in JA Minisite?I searched everywhere, disabled JAT3 CSS, you name it. Funny I can’t find anyone else with this issue either.
Thanks in advance!
zakladadadic Friendzakladadadic
- Join date:
- March 2009
- Posts:
- 62
- Downloads:
- 31
- Uploads:
- 6
- Thanks:
- 14
- Thanked:
- 8 times in 1 posts
February 1, 2012 at 4:35 pm #436490Have you tried this?
/templates/ja_minisite/html/com_k2/February 1, 2012 at 9:11 pm #436547Nope, that directory doesn’t exist, BUT you did give me the idea to look at the components directory of K2 and it worked!
I went to:
components/com_k2/templates/default/item.php
And looked for the ‘videoblock’, then I cut the following code:
[PHP] <div class=”clr”></div>
<?php if($this->item->params->get(‘itemVideo’) && !empty($this->item->video)): ?>
<!– Item video –>
<a name=”itemVideoAnchor” id=”itemVideoAnchor”></a><div class=”itemVideoBlock”>
<h3><?php echo JText::_(‘K2_MEDIA’); ?></h3><?php if($this->item->videoType==’embedded’): ?>
<div class=”itemVideoEmbedded”>
<?php echo $this->item->video; ?>
</div>
<?php else: ?>
<span class=”itemVideo”><?php echo $this->item->video; ?></span>
<?php endif; ?><?php if($this->item->params->get(‘itemVideoCaption’) && !empty($this->item->video_caption)): ?>
<span class=”itemVideoCaption”><?php echo $this->item->video_caption; ?></span>
<?php endif; ?><?php if($this->item->params->get(‘itemVideoCredits’) && !empty($this->item->video_credits)): ?>
<span class=”itemVideoCredits”><?php echo $this->item->video_credits; ?></span>
<?php endif; ?><div class=”clr”></div>
</div>
<?php endif; ?>[/PHP]And did paste above:
[PHP]
<div class=”clr”></div><?php if($this->item->params->get(‘itemExtraFields’) && count($this->item->extra_fields)): ?>
<!– Item extra fields –>
<div class=”itemExtraFields”>[/PHP]Bingo!
Thanks for the leg up!
Perhaps JART should include this patch in an updated version, because really, this makes a lot more sense.
-
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by thierry_vanroy 12 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum