Jump to content

jQuery Mobile can't use hooks


Recommended Posts

The architectures of prestashop and the jQuery mobile framework are very different. A standard prestashop template places the modules according hooks. For the JQM framework, I can't use those hooks.

 

For your understanding. JQM hosts all the pages in pages containers. These containers are all hosted in the main layout template of prestashop. The header.tpl for example is only used for building the <head> of the template (calling js, css..).

 

Here an example structure of prestashop with integrated JQM framework. The red and green parts are two page containers of JQM.

 

----------------

HEAD.TPL

----------------

 

-----------------------------------------------

START INDEX.TPL

 

------------------------------------------------

JQM PAGE: #index

------------------------------------------------

JQM header: link to jqm page #settings

------------------------------------------------

JQM content:

{CATEGORY MODULE}

------------------------------------------------

JQM Footer: { LOGIN MODULE}

------------------------------------------------

 

-------------------------------------------------

JQM PAGE #settings

-------------------------------------------------

JQM header: link to jqm page #index

-------------------------------------------------

JQM content:

{LANGUAGE MODULE}

{CURRENCY MODULE}

-------------------------------------------------

JQM FOOTER: {LOGIN MODULE}

-------------------------------------------------

 

END INDEX.TPL

------------------------------------------------

 

-----------------

FOOTER.TPL

------------------

 

As you can see above, the modules are not assigned to hooks. Instead, I need to place them individually on the internal JQM pages. How can I do that?

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