Hi. I installed Mobiletools, and that created a user role of Anonymous(mobile). When the site detects a mobile browser it changes the theme to a mobile theme. Then I want the Anonymous(mobile) role to see a completely different page. However, I still want the Anonymous role to see the front page I normally have. I've been struggling with this. Can you help me out, please? Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 584064_mobile_tools.patch | 2.04 KB | blackdog |
Comments
Comment #1
Dublin Drupaller commentedswitching this to a mobile_tools issue. According to the project page...it should work with the front page.module.
dub
Comment #2
Bensbury commentedSorry if I don't understand you, but can you set a new frontpage location in the theme settings?
That should give you a different page.
Comment #3
twom commentedHi,
Currently Mobile Tools does not allow you to configure the frontpage. I will mark this as a feature request that I can implement if more people are interested (or if I have a weak moment and want to add this feature ;)).
However, if you use the Frontpage module, you can assign a different frontpage to each user role. This means that you could set a specific frontpage for the mobile users.
Let me know if this works.
Comment #4
gnarlytom commentedI'm also having trouble with this one
I already have frontpage implemented on my site, and anonymous users see a different front page from registered users. However, it just doesnt seem to work with the mobile roles.
I have tried:
- redirecting
- using full page
- using themed page
----------
UPDATE
frontpage appears to be working for authenticated (mobile)users, but not for anonymous (mobile). In my siutation i would like both to have an identical homepage, but despite identical settings, the function odes not seem to work for anonymous (mobile) users.
the annoymous (mobile) users are sent to the anonymous users home page. i can change the anonymous users page, and it changes it for both anonymous and anonymous mobile.
(permissions are all active for frontpage module). i have tried making permissions identical for authenticated (mobile) and annonymous (mobile) users and still problem persists
If you want to see for yourself, the site is http://almostadoctor.co.uk
Thanks
Comment #5
gnarlytom commentedMy current workaround is to deny access to content to anonymous (mobile) users, and force everyone to sign in, and thus when they do, redirection is working correctly, and they are redirected to my customised mobile homepage.
But, i would like all users to be able to view content without having to sign in first.
Any help would be greatly appreciated,
Thanks
Comment #6
blackdog commentedHere's a patch to add support for custom mobile frontpage.
Comment #7
blackdog commentedBetter title.
Comment #8
Docc commented+1
Comment #9
gnarlytom commentedthanks for the patch blackdog.
i havent actually tested it myself as i managed a workaround with panels and panel permission settings depending on user role
Comment #10
bschilt commentedI had the same issue when creating my anonymous user (Mobile) role. I provided a patch to the front_page module to fix it.
http://drupal.org/node/916372
Comment #11
eojthebraveI can confirm that the patch in #6 works as expected. I do think it is a little bit weird that you can change the front page for mobile users both at Admin > Settings > Site Information and Admin > Settings > Mobile Tools, however this sticks with the way that module_tools already handles some other similar settings so I suppose leave it as is for now.
twom, is this functionality something you think should be included in the mobile_tools module? It seems to me like something that a lot of people would want. If not though it should be pretty easy to implement this as a submodule as well.
Comment #12
twom commentedHi Support for custom frontpage will be available in the next dev release.
Stay tuned!
Thx for all the help,
Comment #13
twom commented