Jump to content

Kategóriák menübe direkt link beszúrása - hogyan


gubtan

Recommended Posts

Sziasztok!

A kérdésem az lenne, hogy a kategóriák menübe van-e lehetőség egy a prestashop-on belüli CMS oldalra mutató direkt linket beszúrni? Ha igen, hogyan?

Válaszaitokat előre i s köszönöm!

Üdv:

gubtan

Link to comment
Share on other sites

Ezt a tpl-t keressük: blockcategories.tpl .

 

Először ezen az útvonalon kell megnézned:

 

\themes\default\modules\blockcategories\

 

Ha itt nincs, akkor a modules könyvtárban van.

 

Ha megvan a fájl, akkor a tartalma körülbelül ilyen kell legyen:

<!-- Block categories module -->
<div id="categories_block_left" class="block">
	<p class="title_block">{l s='Categories' mod='blockcategories'}</p>
	<div class="block_content">
		<ul class="tree {if $isDhtml}dhtml{/if}">
		{foreach from=$blockCategTree.children item=child name=blockCategTree}
			{if $smarty.foreach.blockCategTree.last}
				{include file="$branche_tpl_path" node=$child last='true'}
			{else}
				{include file="$branche_tpl_path" node=$child}
			{/if}
		{/foreach}
		</ul>
		{* Javascript moved here to fix bug #PSCFI-151 *}
		<script type="text/javascript">
		// <![CDATA[
			// we hide the tree only if JavaScript is activated
			$('div#categories_block_left ul.dhtml').hide();
		// ]]>
		</script>
	</div>
</div>
<!-- /Block categories module -->

Legfontosabb itt a foreach szerkezet, mely kiolvassa a kategória-fádat. Ha ez alá (vagy fölé) be akarsz szúrni bármilyen linket, akkor csak simán írd be. Például:

<!-- Block categories module -->
<div id="categories_block_left" class="block">
	<p class="title_block">{l s='Categories' mod='blockcategories'}</p>
	<div class="block_content">
		<ul class="tree {if $isDhtml}dhtml{/if}">
		{foreach from=$blockCategTree.children item=child name=blockCategTree}
			{if $smarty.foreach.blockCategTree.last}
				{include file="$branche_tpl_path" node=$child last='true'}
			{else}
				{include file="$branche_tpl_path" node=$child}
			{/if}
		{/foreach}


<a href="/cms.html" target="_blank">EZ EGY LINK AMIT ÉN TETTEM BE </a>


		</ul>
		{* Javascript moved here to fix bug #PSCFI-151 *}
		<script type="text/javascript">
		// <![CDATA[
			// we hide the tree only if JavaScript is activated
			$('div#categories_block_left ul.dhtml').hide();
		// ]]>
		</script>
	</div>
</div>
<!-- /Block categories module -->

Nézd meg! :)

Edited by pattila01 (see edit history)
  • Like 2
Link to comment
Share on other sites

A teljesítmény beállítások milyen értéken vannak?

 

Advanced parameters => performance

 

Template cashe => force compile-n legyen míg meg nem látod a változást, utána vissza lehet tenni a középső beállításra.

 

Illetve ha van cashe, akkor azt üríteni kell alatta.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...