Jump to content

<ASK> Bagaimana membuat link di kategori,klo diklik link lari ke CMS?


sariwangi2008

Recommended Posts

Edit file .../themes/THEMES_YG_AKTIF/category.tpl

Tambahkan script ini di baris paling atas :

{if $smarty.get.id_category == 2} <!-- ID category yang akan di redirect -->
{php}
Tools::redirect('cms.php?id_cms=2'); <!-- ID cms tujuan redirect, jika friendly URL non-aktif -->
{/php}
{/if}



Atau :

{if $smarty.get.id_category == 2} <!-- ID category yang akan di redirect -->
{php}
Tools::redirect('content/2-legal-notice'); <!-- jika friendly URL Aktif -->
{/php}
{/if}

Link to comment
Share on other sites

Edit file .../themes/THEMES_YG_AKTIF/category.tpl

Tambahkan script ini di baris paling atas :

{if $smarty.get.id_category == 2} <!-- ID category yang akan di redirect -->
{php}
Tools::redirect('cms.php?id_cms=2'); <!-- ID cms tujuan redirect, jika friendly URL non-aktif -->
{/php}
{/if}



Atau :

{if $smarty.get.id_category == 2} <!-- ID category yang akan di redirect -->
{php}
Tools::redirect('content/2-legal-notice'); <!-- jika friendly URL Aktif -->
{/php}
{/if}



Udah saya coba bang... Tapi yang muncul malah ga ada..(ngeblank) Kira2 kesalahan saya dimana ya?
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...