Mobile – How to use MOOVWEB Create multiple pages from a single upstream page?

I have a page, let’s say:

http://en.wikipedia.org/wiki/Main_Page

But I want to divide it into 3 pages:

>One page, just a sidebar
>A’featured’ page is just the’green’ part (featured article/do you know)
> The “news” page is only the “blue” part (in the news/day)

What is the best way to tritium?

I think the abstract function I want is the ability to create multiple pages from a single page. This is very useful for organizing mobile pages in finer details. Another use case is to build a jqtouch application.

p>

This is usually difficult in Tritium because we follow the desktop function as much as possible.

However, one possible way is to use query parameters. For example, if you want to have such 3 pages, can you reply? pageType = “featured” or? pageType = “news”.

Then in your mapping, you can do the following:

match($path) {
with(/Main/) {
match($path) {
with(/\?.*featured/) {
@import "pages/home/featured.ts"
}
with(/\?.*news/) {
@import "pages/home/news.ts"
}
else() {
@ import "pages/home/home.ts"
}
}
}
}

I have a page, Let’s say:

http://en.wikipedia.org/wiki/Main_Page

But I want to divide it into 3 pages:

>A page, just the sidebar
>A’featured’ page is just the’green’ part (featured article/did you know)
>The “news” page is just the “blue” part (in the news/day)

What is the best way to tritium?

I think the abstract function I want is the ability to create multiple pages from a single page. This is very useful for organizing mobile pages in finer details. Another use case is to build a jqtouch application.

p>

This is usually difficult in Tritium, because we follow the desktop function as much as possible.

But, a feasible method Is to use query parameters. For example, if you want to have such 3 pages, can you reply? pageType = “featured” or? pageType = “news”.

Then in your mapping, you can do the following:

match($path) {
with(/Main/) {
match($path) {
with(/\?.*featured/) {
@import "pages/home/featured.ts"
}
with(/\?.*news/) {
@import "pages/home/news.ts"
}
else() {
@ import "pages/home/home.ts"
}
}
}
}

Leave a Comment

Your email address will not be published.