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.

CommentFileSizeAuthor
#6 584064_mobile_tools.patch2.04 KBblackdog

Comments

Dublin Drupaller’s picture

Project: Front Page » Mobile Tools
Component: Documentation » Code

switching this to a mobile_tools issue. According to the project page...it should work with the front page.module.

dub

Bensbury’s picture

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

twom’s picture

Category: support » feature

Hi,

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.

gnarlytom’s picture

I'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

gnarlytom’s picture

My 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

blackdog’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new2.04 KB

Here's a patch to add support for custom mobile frontpage.

blackdog’s picture

Title: Need help getting it to work with Mobile Tools » Add support for custom mobile frontpage

Better title.

Docc’s picture

+1

gnarlytom’s picture

thanks 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

bschilt’s picture

I 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

eojthebrave’s picture

Status: Needs review » Reviewed & tested by the community

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

twom’s picture

Hi Support for custom frontpage will be available in the next dev release.

Stay tuned!

Thx for all the help,

twom’s picture

Status: Reviewed & tested by the community » Closed (fixed)