Remove mobile module from in-product mode

VERIFIED FIXED in 1.5.3

Status

support.mozilla.org
General
VERIFIED FIXED
8 years ago
8 years ago

People

(Reporter: cilias, Assigned: cilias)

Tracking

unspecified
1.5.3

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Assignee)

Description

8 years ago
The website start page and the inproduct start page use the same template. However we don't want the Mobile module to appear on the inproduct start page.

* Can this be done via the admin panel?
* Can it be done by adding code to the module?

If none of the above, we may need to create a separate template. (Unless anyone has a better solution.)
Assignee: nobody → james
I changed the code of the module on stage to hide it when style_mode=inproduct is in the query string. If this works for you, Chris, it's probably the fastest solution.

The new code is::

{if $smarty.get.style_mode != 'inproduct'}<div id="mobilehelp-title" class="title">{tr}Firefox for Mobile{/tr}</div>
<div class="blankblock fltrt"></div>
<div id="mobilehelp-content">{tr}Looking for help with Firefox on your mobile device?{/tr} <a href="http://mobile.support.mozilla.com/">{tr}Visit Firefox Help for Mobile{/tr}</a>.</div>{/if}
Assignee: james → bmo2010
(Assignee)

Comment 2

8 years ago
Thanks! That works!
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED

Comment 3

8 years ago
Verified fixed. Thanks for your help, James!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.