Look into URL rewrite for the second requirement? Should be fairly easy to create a rule to strip out the /umbraco/Surface/ if you don't want that. However... as you say, you are returning a partial view. Will that make sense if a direct URL to it is shared and used?
and YES, you are correct, I made a boo-boo in making it a partial view... However, either way, partial or view, it's not picking up the _layout, its just unstyled...
Background: the way I did this was via VS2012 adding a controller/view not via Umbraco back office... perhaps that's the disconnect... Also, using a LINQ to SQL Classes.dbml file for my model manipulation. Is there a more Umbraco integrated way of doing this? I don't feel I'm integrated with U7, but more or less running next to it trying to throw lines across to hook up my GPS tables and logic... I'd like this to be more integrated... ugh
I am customizing U7 for this whole Runner's GPS mobile app. I have a few tables that handle the GPS lat/lng track info, but they're not quite incorporated into U7 fully.. I didn't add anythiong via document types, templates, etc.. that whole business is confusing. (and I watched all the umbraco.tv videos..)
Guess I'm going to keep banging on this... it's diff from mvc 4 practices to work with... haven't quite 'clicked' yet.
Am I supposed to add doc types for Track and TrackLocations (my GPS tables) and somwhow manipulate them that way?
My Custom controllers handle the POsts from the iOS apps and just add rows to tables.. should I somehow be interfacing U7 and adding documents of doctype Track and TrackLocations?
Custom Controller URL(s) for 'Members Area'
I have created a (will be a set of) Controller/Partial View via Visual Studio 2012 for bringing up GPS Data for a user. I now need to:
a. tie it into an existing Umbraco template
b. modify the URL from
- mydomain.com/umbraco/Surface/TrackHistory/Tracks/1077 (1077 being the UmbracoMemberID)
to
- mydomain.com/TrackHistory/Tracks/1077 (so this will be easily shared among social websites as well)
Thanks for reading :) and helping if possible
Hi,
Maybe this blogpost by Warren can help you to do this :
http://creativewebspecialist.co.uk/2013/12/03/using-umbraco-pipeline-for-member-profile-urls/
Dave
Look into URL rewrite for the second requirement? Should be fairly easy to create a rule to strip out the /umbraco/Surface/ if you don't want that. However... as you say, you are returning a partial view. Will that make sense if a direct URL to it is shared and used?
Andy
Dave, can't make heads or tails of that blog :(
Andy, ok, I made a rule like this:
<add name="MembersArea"
virtualUrl="^~/TrackHistory(.*)"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/umbraco/surface/TrackHistory/$1"
ignoreCase="true" />
is working on a reply...