-
AuthorPosts
-
August 10, 2011 at 12:45 pm #167250
Hi I am wondering what module positions I need to use for the iphone layout. I just need some tekst on the homepage and want to use a module position for it bacause I dont use the maincontent block on the desktop layout.
Thanx
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 12, 2011 at 3:59 am #405831<em>@herlinda1 258687 wrote:</em><blockquote>Hi I am wondering what module positions I need to use for the iphone layout. I just need some tekst on the homepage and want to use a module position for it bacause I dont use the maincontent block on the desktop layout.
Thanx</blockquote>
hi herlinda1,
If you go to the template setting >> Layouts tab going to edit the iphone layout you would see that there are not module positions for this layout but only content section, you see a block tag like this
<blocks name=”middle”></blocks>
you can add some modules positions here, example add the right and left module positions
<blocks name=”middle”>
<block name=”left1″>left</block>
<block name=”right1″>right</block>
</blocks>that would help to add the left and right positions at the front-end but I am not sure if they are well styled
August 22, 2011 at 7:04 pm #407710Hi,
I cant get it to work, this is my XML file, I have added mobile1 as you suggested and created a custom html module with some text and positioned it to mobile1 shown on the homepage
<?xml version=”1.0″ encoding=”utf-8″?>
<layout body-class=”bd-iphone” device=”iphone”>
<name>Iphone</name>
<description>Default layout for Iphone</description>
<!–Extra css load for this layout–>
<stylesheets>
<file>css/iphone/layout.css</file>
<file>css/iphone/template.css</file>
</stylesheets>
<scripts>
<file>js/iphone.js</file>
</scripts>
<blocks name=”top” style=”xhtml”>
<block name=”mainnav” type=”iphone/mainnav” class=”black”></block>
<block name=”header” type=”iphone/header”></block>
</blocks>
<blocks name=”middle”>
<block name=”mobile1″>mobile1</block>
</blocks>
<blocks name=”bottom” style=”xhtml”>
<block name=”footer” type=”iphone/footer”></block>
</blocks>
</layout>khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
August 23, 2011 at 6:01 am #407817You replace
<block name="mobile1">mobile1</block>
with
<block name="left1">mobile1</block>
August 23, 2011 at 7:18 pm #408000Thanx but the right and left position are not full width obviously. Is there an iphone module position the is just centered and full width?
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
August 24, 2011 at 4:30 am #408066I don’t understand what you mean clearly. Could you explain more details and give me a picture to show your problem?
K Schneider FriendK Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
August 24, 2011 at 2:44 pm #408164when using left1 block the module is one 20% of the total width.
make block left1 100%Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
August 24, 2011 at 2:48 pm #408167I think you sould have to use a full width module position and only display that on the iphone layout. Unfortunately I do not have an iphone to check if this works or not.
August 24, 2011 at 8:36 pm #408232<em>@ocean12 262150 wrote:</em><blockquote>when using left1 block the module is one 20% of the total width.
make block left1 100%</blockquote>Thats true, but where can that be adjusted, I think I tried the droid iphone css and JAT3 plugin iphone en layout css. Could not find the left1 positon
August 24, 2011 at 8:37 pm #408233<em>@phill luckhurst 262153 wrote:</em><blockquote>I think you sould have to use a full width module position and only display that on the iphone layout. Unfortunately I do not have an iphone to check if this works or not.</blockquote>
any idea wich one that is and how can I just set a module to just show on the iphone template.
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
August 25, 2011 at 5:37 am #408304You try code
<block name="left1" width="100">mobile1</block>
You remember to use mobile1 position for modulesAugust 26, 2011 at 9:51 am #408683<em>@khoand 262333 wrote:</em><blockquote>You try code
<block name="left1" width="100">mobile1</block>
You remember to use mobile1 position for modules</blockquote>Well that seems to make the left position 100% but I now get an error.
Warning: Division by zero
on template.php on line 708khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
August 26, 2011 at 11:45 am #408692You try use
width="99.9"
K Schneider FriendK Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
August 29, 2011 at 8:16 am #409344<em>@phill luckhurst 262153 wrote:</em><blockquote>I think you sould have to use a full width module position and only display that on the iphone layout. Unfortunately I do not have an iphone to check if this works or not.</blockquote>
Phill do’s Safari for Windows not have the possible to switch the user agent?
Because the osx version has this option to switch over on iphone, ipad, ie6, ie7.K Schneider FriendK Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
August 29, 2011 at 8:42 am #409353<em>@khoand 262333 wrote:</em><blockquote>You try code
<block name="left1" width="100">mobile1</block>
You remember to use mobile1 position for modules</blockquote>This is not the solution for me
When ja-left at 100% then ja-main is 0%I want an Iphone layout where the left is 100%
and left must stand under the frontpage[PHP]<?xml version=”1.0″ encoding=”utf-8″?>
<layout body-class=”bd-iphone”>
<name>Iphone</name>
<description>Default layout for Iphone</description>
<!–Extra css load for this layout–>
<stylesheets>
<file>css/iphone/layout.css</file>
<file>css/iphone/template.css</file>
</stylesheets>
<scripts>
<file>js/iphone.js</file>
</scripts>
<blocks name=”top” style=”xhtml”>
<block name=”mainnav” type=”iphone/mainnav” class=”black”></block>
<block name=”header” type=”iphone/header”></block>
</blocks>
<blocks name=”middle”>
<block name=”left1″>mobile1</block> </blocks>
<blocks name=”bottom” style=”xhtml”>
<block name=”footer” type=”iphone/footer”></block>
</blocks>
</layout>[/PHP]Are there more blocks and block options to use in the iphone layout?
-
AuthorPosts
This topic contains 20 replies, has 7 voices, and was last updated by pixelzombie 12 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum