Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile device UI #920

Closed
robocoder opened this issue Aug 11, 2009 · 9 comments
Closed

Mobile device UI #920

robocoder opened this issue Aug 11, 2009 · 9 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.

Comments

@robocoder
Copy link
Contributor

For mobile devices, we'll probably want to:

@robocoder
Copy link
Contributor Author

Currently, we instantiate a view using the template path, e.g.,

    $view = new Piwik_View('Login/templates/login.tpl');

We should create a view factory (and refactor a bit of the code in #700, e.g., cli templates). We should also standardize on a convention of either subdirectories (e.g., templates/mobile/login.tpl) or a prefix (e.g., 'mobile_login.tpl').

@robocoder
Copy link
Contributor Author

Add a FrontController.getViewType hook.

    // default
    $viewType = 'full';

    if (phpCliMode()) {
        $viewType = 'cli';
    } else if (isset($session->viewType)) {
        $viewType = $session->viewType;
    } else {
        // mobile browser detection
        ...
    }

@robocoder
Copy link
Contributor Author

View factory method implemented in #921.

    $view = Piwik_View::factory('login');

@robocoder
Copy link
Contributor Author

@robocoder
Copy link
Contributor Author

Or: !http://mdbf.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30256

Not as extensive as wurfl but smaller footprint (12mb vs 160k). Note Microsoft Public License so cannot be included in Piwik core.

@robocoder
Copy link
Contributor Author

Attachment: stub mobile UI plugin; render footer to switch between view types
ActiveMobile.zip

@robocoder
Copy link
Contributor Author

Could this be implemented as a "mobile theme"? (see #5597)

@robocoder
Copy link
Contributor Author

See also #395

@mattab
Copy link
Member

mattab commented Sep 17, 2011

I mark as wont fix since we now have powerful Piwik Mobile app for web analytics reports on the phone, so probably enough. Plus we are trying to move away from flash completely so most phones should be compatible (JS/HTML required of course). For other phones, they can use HTML Reports :)

@robocoder robocoder added this to the Future releases milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants