TOPIC: Vina Bakery II

Vina Bakery II 11 years 4 weeks ago #788

  • Michal Sabat
  • Michal Sabat's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 46
  • Orders: 0
  • Download: 35
  • Karma: 0
Page: www.new.ekopartner.org.pl/index.php?opti...est-caro&Itemid=1006

I added carousel just like on demo site and it doesn't work correctly.

It works correctly in article but not in K2 article. www.new.ekopartner.org.pl/index.php?opti...e&id=824&Itemid=1054
Last Edit: 11 years 4 weeks ago by Michal Sabat.
The administrator has disabled public write access.

Vina Bakery II 11 years 4 weeks ago #789

  • Cuộc Sống Số
  • Cuộc Sống Số's Avatar
  • OFFLINE
  • Platinum Member
  • Life is not waiting!
  • Posts: 659
  • Orders: 0
  • Download: 129
  • Thank you received: 148
  • Karma: 33
Hello Michal Sabat,

I think you also fail k2 helix shortcode not working. I'm new also fix this error.

First of all open the item.php file from "components/com_k2/templates/default/" folder and look for the suitable output code where you want to see shortcodes working. For example look for the code
<?php echo $this->item->fulltext; ?>

Now replace that code with below code
<?php
if( function_exists('do_shortcode') )
{
echo do_shortcode( $this->item->fulltext );
}
?>


Note: If you are using any of our template that comes with K2 support then the template path will be templates folder and "html/html/com_k2/templates/default/".

Thanks
Cuộc Sống Số - Quick CSS Game
Choose your level and start playing by clicking the topics below ...
♚ ♛ ♜ ♝ ♞ ♟ ♔ ♕ ♖
The administrator has disabled public write access.

Vina Bakery II 11 years 4 weeks ago #790

  • Michal Sabat
  • Michal Sabat's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 46
  • Orders: 0
  • Download: 35
  • Karma: 0
I changed that code in my 2 files:

/templates/vina_bakery_ii/html/com_k2/default/item.php

/components/com_k2/templates/default/item.php

So on that files code is now:
<div class="itemIntroText">
	  
	  	<?php
			if( function_exists('do_shortcode') )
			{
				echo do_shortcode( $this->item->fulltext );
			}
		?>
</div>

Still doesn't work.

Only that shortcode is displaying in wrong way.
The administrator has disabled public write access.

Vina Bakery II 11 years 4 weeks ago #791

  • Cuộc Sống Số
  • Cuộc Sống Số's Avatar
  • OFFLINE
  • Platinum Member
  • Life is not waiting!
  • Posts: 659
  • Orders: 0
  • Download: 129
  • Thank you received: 148
  • Karma: 33
Hello Michal Sabat,

You had edit the code wrong. Not code :
<div class="itemIntroText">

You must edit below code:
<div class="itemFullText">
	  	<?php echo $this->item->fulltext; ?>
	  </div>
Cuộc Sống Số - Quick CSS Game
Choose your level and start playing by clicking the topics below ...
♚ ♛ ♜ ♝ ♞ ♟ ♔ ♕ ♖
The administrator has disabled public write access.

Vina Bakery II 11 years 4 weeks ago #792

  • Michal Sabat
  • Michal Sabat's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 46
  • Orders: 0
  • Download: 35
  • Karma: 0
Now in /templates/vina_bakery_ii/html/com_k2/default/item.php is:
<!-- Item introtext -->
	  <div class="itemIntroText">
	  	<?php echo $this->item->introtext; ?>
	  </div>
	  <?php endif; ?>
	  
	  
	  <?php if($this->item->params->get('itemFullText')): ?>
	  <!-- Item fulltext -->
	  
	  
	  <div class="itemFullText">
	  	<?php
		  	if( function_exists('do_shortcode') )
		  	{
		  		echo do_shortcode( $this->item->fulltext ); 
		  	}
	  	?>
		
		
	  </div>

And in /components/com_k2/templates/default/item.php:
<!-- Item introtext -->
	  <div class="itemIntroText">
	  	<?php echo $this->item->introtext; ?>
	  </div>
	  <?php endif; ?>
	  <?php if($this->item->params->get('itemFullText')): ?>
	  <!-- Item fulltext -->
	  <div class="itemFullText">
	  
	  	<?php
			if( function_exists('do_shortcode') )
		{
			echo do_shortcode( $this->item->fulltext );
		}
		?>
	  </div>
The administrator has disabled public write access.

Vina Bakery II 11 years 3 weeks ago #796

  • Michal Sabat
  • Michal Sabat's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 46
  • Orders: 0
  • Download: 35
  • Karma: 0
Any idea?
The administrator has disabled public write access.
Leather Purses & Handbags, Women’s Crossbody Bags, Tote Bags for Women, Leather Backpacks, Men’s Wallets & Card Cases, Official OLEVS Website, OLEVS Couple Watches, OLEVS Women's Watches, OLEVS Men's Watches, OLEVS Watch, OLEVS Watches