Jump to content

how to create and link a "non standard" template


Recommended Posts

I can't see how to declare a non standard page : not a CMS, category, order page..

This page will display all the soldout products. i made a module for it.

 

Should i use a $page_name ? but with what name ?

Should i use a special template? May i create one, and if yes how to declare it ?

If i create, say "soldout.tpl", i can connect it to the structure using

{include file="$tpl_dir./soldout.tpl"} but what should i filter the page ($page_name) ?

 

I don't know if i'm clear enough. Don't hesitate to ask if you think so

 

Thanks in advance.

Link to comment
Share on other sites

So i have my module ready, with a hook HOOK_MYSOLDOUTMODULE ready

 

i just need to know how to "plug it" in the template : i want to make a link <a href="XXXXX">See soldout products</a>

which leads to

in header.tpl

...

<div id="center_column">

{if test some var}

{HOOK_MYSOLDOUTMODULE}

{else}

the regular code

{/if}

 

So my question is what can i set for href link XXXX and test some var and how do i set it in the module side (what smarty var can i set for this) ?

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...