MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Mobile Blog Links - Clarification  (Mono Support )

Viewed 20221 time(s), 6 post(s) 4/19/2012 3:34:50 AMby David
David

David

4/19/2012 3:34:50 AM
I need help getting some clarifications on how the mobile works. If I go to a direct link to a blog post using a mobile browser, it does not bring me to the mobile version of that blog post. Rather, my experience is that it brings me to what looks like the home page of the mobile site. Is this normal or do I have something configured wrong? I would think it should show me the mobile version of that blog post.

Thank you.
This content has not been rated yet. 
174 Reputation 22 Total posts
denis

denis

4/19/2012 10:13:11 AM
Something has to be wrong with your configuration or URL rewwriting rules - as you can see on our live site, mobile blog post links are working (http://monox.mono-software.com/MonoX/Mobile/blog/post/MonoX/7/Cloud-storage-for-your-data/ ). Is your URL format the same?
This content has not been rated yet. 
7207 Reputation 956 Total posts
David

David

4/19/2012 3:54:50 PM
Thank you Dennis.

Please excuse the site constriction. It is under development. :)

This Link : http://familychefs.com/blog/post/Desserts/10/Strawberry-Jello-Mold/
Should resolve to: http://familychefs.com/MonoX/Mobile/blog/post/Desserts/10/Strawberry-Jello-Mold/

But, it resolves to: http://familychefs.com/MonoX/Mobile/Default.aspx


I did not change any of the rewrite code in the web.config file. It is as it was when I installed MonoX.
<!-- dynamic blog post rules, can be used regardless of the actual name of the page that holds blog parts -->
<rewrite url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/BlogCommentsPageNo/(.*)/BlogFilesPageNo/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&BlogPostId=$4&BlogCommentsPageNo=$6&BlogFilesPageNo=$7&$9" name="BlogPostCommentsFiles" defaultPage="/Blog.aspx" urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/"/>
<rewrite url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/BlogFilesPageNo/(.*)/BlogCommentsPageNo/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&BlogPostId=$4&BlogFilesPageNo=$6&BlogCommentsPageNo=$7&$9" name="BlogPostFilesComments" defaultPage="/Blog.aspx" urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/"/>
<rewrite url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/BlogFilesPageNo/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&BlogPostId=$4&BlogFilesPageNo=$6&$8" name="BlogPostFiles" defaultPage="/Blog.aspx" urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/"/>
<rewrite url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/BlogCommentsPageNo/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&BlogPostId=$4&BlogCommentsPageNo=$6&$8" name="BlogPostComments" defaultPage="/Blog.aspx" urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/"/>
<rewrite url="^(.*)/(.*)/post/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&BlogPostId=$4&$7" name="BlogPost" defaultPage="/Blog.aspx" urlPattern="/{PageName}/post/{Blog.Slug}/{IdentityId}/{Slug}/"/>
<rewrite url="^(.*)/(.*)/posts/(.*)/BlogPostPage/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&BlogPostPage=$4&$6" name="BlogPostsPaged" defaultPage="/Blog.aspx" urlPattern="/{PageName}/posts/{Slug}/BlogPostPage/{PageNo}/"/>
<rewrite url="^(.*)/(.*)/posts/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&$5" name="BlogPosts" defaultPage="/Blog.aspx" urlPattern="/{PageName}/posts/{Slug}/"/>
<rewrite url="^(.*)/(.*)/search/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&SearchAction=$4&SearchValue=$5&$7" name="BlogSearch" defaultPage="/Blog.aspx" urlPattern="/{PageName}/search/{Slug}/{SearchAction}/{SearchValue}/"/>
<rewrite url="^(.*)/(.*)/blog-tag/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&SearchAction=tag&SearchValue=$4&$6" name="BlogTag" defaultPage="/Blog.aspx" urlPattern="/{PageName}/blog-tag/{Slug}/{Tag}/"/>
<rewrite url="^(.*)/(.*)/settings/(.*)/(\?(.+))?$" to="$1/$2.aspx?ShowBlogSettings=true&BlogSlug=$3&$5" name="BlogSettings" defaultPage="/Blog.aspx" urlPattern="/{PageName}/settings/{Slug}/"/>
<rewrite url="^(.*)/(.*)/comments/(.*)/BlogCommentsPageNo/(.*)/(\?(.+))?$" to="$1/$2.aspx?ShowBlogCommentsAdmin=true&BlogSlug=$3&BlogCommentsPageNo=$4&$6" name="BlogCommentsAdminComments" defaultPage="/Blog.aspx" urlPattern="/{PageName}/comments/{Slug}/"/>
<rewrite url="^(.*)/(.*)/comments/(.*)/(\?(.+))?$" to="$1/$2.aspx?ShowBlogCommentsAdmin=true&BlogSlug=$3&$5" name="BlogCommentsAdmin" defaultPage="/Blog.aspx" urlPattern="/{PageName}/comments/{Slug}/"/>
<rewrite url="^(.*)/(.*)/edit/(.*)/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&BlogPostId=$4&BlogEditMode=true&$7" name="BlogPostEdit" defaultPage="/Blog.aspx" urlPattern="/{PageName}/edit/{Blog.Slug}/{IdentityId}/{Slug}/"/>
<rewrite url="^(.*)/(.*)/insert/(.*)/(\?(.+))?$" to="$1/$2.aspx?BlogSlug=$3&BlogInsertMode=true&$5" name="BlogPostInsert" defaultPage="/Blog.aspx" urlPattern="/{PageName}/insert/{Slug}/"/>
<!-- shows all blog posts regardless of the blog they were posted to -->
<rewrite url="^(.*)/(.*)/posts/(\?(.+))?$" to="$1/$2.aspx$3" name="AllBlogPosts" defaultPage="/Blog.aspx" urlPattern="/{PageName}/posts/{Slug}/"/>
<rewrite url="^(.*)/(.*)/posts/(.*)/wlwmanifest.xml(\?(.+))?$" to="$1/wlwmanifest.xml" name="WlwManifest" urlPattern="/wlwmanifest.xml"/>
<set property="SocialNetworkingFolder" value="/MonoX/Pages/SocialNetworking/"/>
<set property="MobileFolder" value="/MonoX/Mobile/"/>

This content has not been rated yet. 
174 Reputation 22 Total posts
David

David

4/19/2012 4:02:12 PM
Dennis, FYI - When I link to the regular desktop blog link for your "cloud storage for your data" on your demo site http://monox.mono-software.com/blog/post/MonoX/7/Cloud-storage-for-your-data/ using my mobile device, I get a 404 error.
This content has not been rated yet. 
174 Reputation 22 Total posts
denis

denis

4/19/2012 9:20:52 PM
I guess that you want desktop pages to automatically redirect to mobile versions of that same page? It does not work like that by default: a mobile site is a completely separate section with separate pages, that does not follow the desktop site structure. Instead, you are redirected to the home page of the mobile version on your initial visit (based on several factors I can explain later), but you can still decide to go to the desktop version when you want. In the auto-redirect scenario that would not be possible, and it doesn't work so well for people with more capable mobile devices or tablets.
Let me know if that was your intention, so we could discuss this further.
This content has not been rated yet. 
7207 Reputation 956 Total posts
David

David

4/20/2012 12:53:47 AM

Denis, thank you for the clarification. How it works is sufficient and for what I was intending to do there is a work-around that I can implement. My request here was for the clarification of how it works, and you provided that. Thank you.

This content has not been rated yet. 
174 Reputation 22 Total posts