item page displayed differently

More
11 years 9 months ago - 11 years 9 months ago #39166 by brandonking
Hello,

I have upgraded to latest one(r1723) but not sure when this happened.

The problem is item view(also item list view) in iPad/iPhone is different from PC.
All views in PC are working correct but view in iPad/iPhone are not correct. They don't display fields at all.

I am getting some warning message on top of item view.

Current Item Layout is 'default':
-This is neither the Content Type Default Template, nor does it belong to the Content Type allowed templates.
-Please correct this in the URL or in the Content Type configuration.
-Using Content Type Default Template Layout: 'townwork-presen-item'


This happens to all TYPE where I have duplicated templates.

It looks like something to deal with mobile detection and template.... not too sure though.
Last edit: 11 years 9 months ago by brandonking.

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #39169 by ggppdk
Hello,

this bug will appear if you set the mobile layout in content type to be "Use desktop", try this fix:

1. in components/views/item/view.html.php
replace:
Code:
$ilayout = $ilayout ? $ilayout : $params->get($_ilayout, 'default');
with:
Code:
if (!$ilayout) { $desktop_ilayout = $params->get('ilayout', 'default'); $ilayout = !$useMobile ? $desktop_ilayout : $params->get('ilayout_mobile', $desktop_ilayout); }

2. in components/views/category/view.html.php
replace:
Code:
$clayout = $clayout ? $clayout : $params->get($_clayout, 'blog');
with:
Code:
if (!$clayout) { $desktop_clayout = $params->get('clayout', 'blog'); $clayout = !$useMobile ? $desktop_clayout : $params->get('clayout_mobile', $desktop_clayout); }


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #39174 by brandonking
Yeap, it's working..Thank you

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #39182 by ggppdk
Hello,

thanks for feedback, i committed the fix in r1724


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.379 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save