Hi,
I've got a site that runs on basic authentication. I need to disable the umbraco web api from the basic authentication so I can call it in a scheduler.
Is there any easy way of doing this?
Thanks
Hi,
I've got a site that runs on basic authentication. I need to disable the umbraco web api from the basic authentication so I can call it in a scheduler.
Is there any easy way of doing this?
Thanks
Hi All,
I am using umbraco 7.5. I want to use umbraco form, I created a form using CMS but I want some changes in design. How can i add custom css classes to my form and one more thing how can i add validation to my field confirm-email which i created just below email field.
Thanks Manish
Hi Richard,
I'm planning to use the CMSImport scheduler to import from a feed. My site is running on IIS Basic Authentication hence I couldn't run the scheduler.
is there a way i can set the username and password somewhere in order for the scheduler to work?
Thanks
Hi all,
In UAT, suddenly umbraco login failed only in Chrome and firefox browsers but no errors in the log file and it still shows logged in successful entry. Surprisingly, able to login in IE. There is an error randomly coming which is given below:
2017-02-10 17:15:53,971 [23] ERROR Umbraco.Web.Mvc.AdminTokenAuthorizeAttribute - [P8880/T17/D5] Failed to format passed in token value System.Security.Cryptography.CryptographicException: Error occurred during a cryptographic operation. at System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func`2 func, Byte[] input) at System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket) at Umbraco.Core.StringExtensions.DecryptWithMachineKey(String value) at Umbraco.Web.Mvc.AdminTokenAuthorizeAttribute.AuthorizeCore(HttpContextBase httpContext)
Not sure will this issue be any impact with my login issue. No changes done in that server. Before 2 days also it was fine. Please let me know if you have any idea about this kind of issue.
Regards, P.Kalpana
Hi ,
We are not able to reset the password using RedeemPasswordResetToken method.
Could you please suggest on this ? Code is as below.
var success = _membershipService.RedeemPasswordResetToken(Request.QueryString["token"], model.ResetViewModel.Password);
I'm sure this is a simple question but was not able to find anything on initial searching. How can I access the data values from a partial view?
When Umbraco native data types I could do something like:
// Get data type id
var dataTypeId = 1234;
var preValues = PreValues.GetPreValues(dataTypeId).Values;
var enumerator = preValues.GetEnumerator();
<div class="datatype-items">
<ul>
@while (enumerator.MoveNext())
{
// Get List Item Value
var category = ((umbraco.cms.businesslogic.datatype.PreValue)enumerator.Current).Value;
// Output item name
<li>@category</li>
}
</ul>
</div>
Many thanks in advance!
Hi,
I have a macro container that contains a macro that has a Single Media Picker in it.
Umbraco 7.2.4 Courier 3
The problem is is that when a page is published from uat to live, the Single Media Picker field becomes blank, instead of adding the image. The text fields in the macro are published OK.
Images not in a macro container, on a page publish fine.
Does anyone know the problem here?
Thanks a lot!
Hi! I have a problem with previewing macros in RTE. If I create a new page and add a macro in the RTE the preview works fine. But as soon as I save the page (i.e. not publishing) the preview disappears and it will look like in the image below.
The markup for the macro will then look like this:
<div class="umb-macro-holder mceNonEditable">
<!-- <?UMBRACO_MACRO macroAlias="DocumentListMacro" DocumentPicker="1189,1190,1192,1191" /> -->
<ins>Macro alias: <strong>DocumentListMacro</strong></ins></div>
When I finally publish the page the problem disappears and the macro is previewing as expected again. After that, saving works fine again.
Does anyone have any idea why the previewing disappears when I only save the page?
Thanks in advance!
I'm calling a macro container (with a parameter value, that happens to be a content picker):
@_section is type IPublishedContent if it has macrosContainer property the macro runs just fine.
this document type is a composite, and may not always have the macrosContainer property editor. It works PERFECTLY... now i need to skip it in my view if the currentpage node id and the node id passed as the parameter value, are the same.
...stuff up here
@Html.Raw(@_section.GetPropertyValue("macrosContainer"))
...stuff down here
Can I pass in the parameter value from my view? (how so if possible?)
Can I see what my parameter values are for the macro container from the view?
is there something like:
var paramV = @_section.GetProperty("macrosContainer").parameterValues;
Using umbraco 6, I would like to create a user control which would create some JavaScript so it's placed on the masterpage header section.
How could I achieve this? So far I have a string builder which holds my custom JavaScript but what's the best way to get it to be placed within the header section of the masterpage I choose without affecting the current code that's already in the header section?
Hi there,
I do all my development locally but carrying out a Visual Studio publish to server.
I have Umbraco Forms working locally, licence purchased and applied. When access Umbraco Forms I receive a load of red Request error: The URL returned a 404 (not found). errors. Looking in Chrome I see a load of 404 errors. (see below)
Any help much appreciated!
Thanks John
Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.com/umbraco/backoffice/UmbracoForms/Licensing/GetLicenseStatus Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.com/umbraco/backoffice/UmbracoForms/FormSecurity/GetByUserId?userId=0 Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.com/umbraco/backoffice/UmbracoForms/Updates/GetUpdateStatus Failed to load resource: the server responded with a status of 404 (Not Found)
3http://test.com/umbraco/backoffice/UmbracoForms/Form/GetOverView Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.com/umbraco/backoffice/UmbracoForms/Licensing/GetLicenseStatus Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.com/umbraco/backoffice/UmbracoForms/FormSecurity/GetByUserId?userId=0 Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.com/umbraco/backoffice/UmbracoForms/Updates/GetVersion Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.com/umbraco/backoffice/UmbracoForms/Updates/GetUpdateStatus Failed to load resource: the server responded with a status of 404 (Not Found)
2http://test.com/umbraco/backoffice/UmbracoForms/Form/GetOverView Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.com/umbraco/backoffice/UmbracoForms/Licensing/GetLicenseStatus Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.com/umbraco/backoffice/UmbracoForms/Updates/GetVersion Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.com/umbraco/backoffice/UmbracoForms/Updates/GetUpdateStatus Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.com/umbraco/backoffice/UmbracoForms/FormSecurity/GetByUserId?userId=0 Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.com/umbraco/backoffice/UmbracoForms/Form/GetOverView Failed to load resource: the server responded with a status of 404 (Not Found)
DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16 GET http://test.com/umbraco/backoffice/UmbracoForms/Form/GetOverView 404 (Not Found)
(anonymous) @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16
o @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
g @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
i @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
i @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
(anonymous) @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$eval @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$digest @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$apply @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
j @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
r @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:15
w.onreadystatechange @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16
DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16 GET http://test.com/umbraco/backoffice/UmbracoForms/Licensing/GetLicenseStatus 404 (Not Found)
(anonymous) @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16
o @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
g @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
i @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
i @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
(anonymous) @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$eval @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$digest @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$apply @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
j @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
r @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:15
w.onreadystatechange @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16
DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16 GET http://test.com/umbraco/backoffice/UmbracoForms/Updates/GetUpdateStatus 404 (Not Found)
(anonymous) @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16
o @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
g @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
i @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
i @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
(anonymous) @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$eval @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$digest @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$apply @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
j @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
r @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:15
w.onreadystatechange @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16
DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16 GET http://test.com/umbraco/backoffice/UmbracoForms/Updates/GetVersion 404 (Not Found)
(anonymous) @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16
o @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
g @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
i @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
i @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
(anonymous) @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$eval @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$digest @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$apply @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
j @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
r @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:15
w.onreadystatechange @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16
DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16 GET http://test.com/umbraco/backoffice/UmbracoForms/Form/GetOverView 404 (Not Found)
(anonymous) @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16
o @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
g @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
i @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
i @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
(anonymous) @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$eval @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$digest @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
$apply @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
j @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:14
r @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:15
w.onreadystatechange @ DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16
DependencyHandler.axd?s=L3VtYnJhY28vbGliL2pxdWVyeS9qcXVlcnkubWluLmpzOy91bWJyYWNvL2xpYi9hbmd1bGFyLzE:16 GET http://test.com/umbraco/backoffice/UmbracoForms/FormSecurity/GetByUserId?userId=0 404 (Not Found)
Cheers John
Hi
After installing the uSinned template, I throw the following error, someone who knows how to solve it.
Sequence contains no elements
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Sequence contains no elements
Source Error:
Line 16: IPublishedContent homeNode = currentPage.AncestorOrSelf(1); Line 17: var settingsFolder = Umbraco.TypedContent(homeNode.GetProperty("websiteConfigurationNode").Value); Line 18: var globalSettings = settingsFolder.Children.Where(x => x.IsDocumentType("USNGlobalSettings")).First(); Line 19: Line 20: var containerID = "NewsletterSignupContainer" + Model.CurrentNodeID;
Hello,
Can i create custom datatype in which i can use existing datatype like media picker,checkbox,textbox, etc...?
Is it possible?
Awaiting your reply...
Thanks,
Hi all, I have created a visual studio solution install umbracocms.core nugget. created model , surface controller and view . Controller Index method get data from third party service and create list of objects (type model i have created )
build the project add dll in umbraco web site bin folder , view in partials (myCodeProject folder) then call macro in RTE.
macro include code to renderPartial my partial view loaded in web page , but I have noticed which not run Index() method
what gone wrong here ?
I tried editing the Dashboard.config in the folder Config with:
<section alias="StartupSettingsDashboardSection">
<areas>
<area>settings</area>
</areas>
<tab caption="Welcome">
<control addPanel="true" panelCaption="">/App_Plugins/Analytics/backOffice/AnalyticsTree/partials/dashboard.html</control>
</tab>
But it doesn't seem to replace the "Get Started - Welcome to Umbraco" :)
Any idéas guys?
I have a site where ALL visitors to the shop will be already logged on members.
I have overridden "EnsureCustomerCreationAndConvertBasket" to populate the customer name, email and billing address.
I went to the checkout - and the name and billing address were pre-filled as expected. However, what I would like to do is go straight to the "Payment" page but I get the message "Invalid Checkout Stage".
I changed the "Checkout Stage" and "Template" to "Payment".
I assume I need to set the billing address on the order? Do I also need to set anything else?
Hi Simon,
First, this is a fantastic little plugin and I'm surprised it's not more popular :)
Second, I was just curious how you were calculating the file name that gets pushed to the Umbraco Media service. I haven't looked at the code yet, nor have I checked how it's calculated on our production server.. But on my local machine my main concern is that it looks like it's appending sensitive system temp data paths onto the file, like this -
c-users-my-windows-username-appdata-local-temp-unsplash-unsplash-search-term- unsplashid.jpg
Sure enough it is storing those in my local user appdata/local/temp as the filename suggests, not the Umbraco AppData folder. I've been manually changing them, as it is a bit of a security concern on our end.
Any thoughts welcome on how to solve this little issue. I used package installer but happy to pull the source in and modify if that's the easiest approach. Probably boils down to how are you mapping to the "AppData" folder? Server.MapPath("~/AppData") would never do this, so I'm assuming it's some other method?
Cheers again, awesome job!! -Marc
I've created a redirect dashboard based on Umbraco's umbracoRedirectUrl
table, and it works OK:
The only quirk I'm hoping to figure out is that this table stores the root node ID as part of the URL (at least in multitenant sites with multiple domains configured). In this case, "1089" is the root node of one of the domains.
Thanks to the scaffolding event, I can prepopulate this vanity URL with the root node ID of the current domain. However, I'm hoping something cleaner can be created.
What I'm imagining is an extra field, "Domain", that is a drop down containing "site1.com" and "site2.com". And the vanity URL would only display "/your-vanity-url-here". However, when it gets stored, it would combine the domain with the URL to construct the full URL (i.e., "1089/your-vanity-url-here").
Then, when it reads that back from the database, it would set domain based on the ID in the first part of the URL, and it would show the URL without the ID.
Thanks to the ScaffoldingObject
, CreatingObject
, and UpdatingObject
events, I can get halfway to my goal (i.e., I can do a bit of data transformations). However, I'm unsure of the best way to handle the situation of transforming the data for an already existing redirect (there is no LoadingObject
event).
How would you go about displaying the domain in a more user friendly way?
If you are curious, here is most of my code:
// Namespaces.
using Routing;
using System;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;
using UIOMatic.Attributes;
using UIOMatic.Enums;
using Umbraco.Core;
using Umbraco.Core.Persistence;
using Umbraco.Core.Persistence.DatabaseAnnotations;
/// <summary>
/// Represents a row in the "umbracoRedirectUrl" table, and is decorated with attributes used
/// to build a CRUD interface in UI-O-Matic.
/// </summary>
[UIOMatic("redirects", "Redirects", "Redirect", FolderIcon = "icon-resize",
ItemIcon = "icon-navigation-horizontal", RenderType = UIOMaticRenderType.List)]
[TableName("umbracoRedirectUrl")]
public class UmbracoRedirect
{
#region Properties
/// <summary>
/// The generated ID of this row.
/// </summary>
[Column("id")]
[PrimaryKeyColumn(AutoIncrement = false)]
public Guid Id { get; set; }
/// <summary>
/// The date this row was created.
/// </summary>
[Column("createDateUtc")]
[NullSetting(NullSetting = NullSettings.NotNull)]
public DateTime CreateDate { get; set; }
/// <summary>
/// The URL to redirect away from.
/// </summary>
[UIOMaticField(View = UIOMatic.Constants.FieldEditors.Textfield, Name = "Vanity URL",
Description = "The URL you want to redirect away from. Note that this URL must start with the ID of a root content node.")]
[UIOMaticListViewField(Name = "Vanity URL")]
[Required]
[Column("url")]
[NullSetting(NullSetting = NullSettings.NotNull)]
public string Url { get; set; }
/// <summary>
/// The GUID of the Umbraco content node to redirect to.
/// </summary>
[UIOMaticField(View = "~/App_Plugins/Rhythm.UIOMatic/editors/pickers.content.guid.html",
Name = "Destination Page", Description = "Pick the page to redirect to.")]
[Column("contentKey")]
[NullSetting(NullSetting = NullSettings.NotNull)]
public Guid ContentKey { get; set; }
/// <summary>
/// The hash of the URL (used for performance reasons).
/// </summary>
[Column("urlHash")]
[NullSetting(NullSetting = NullSettings.NotNull)]
[Length(40)]
public string UrlHash { get; set; }
#endregion
#region Public Methods
/// <summary>
/// handles a redirect that is being scaffolded.
/// </summary>
/// <param name="redirect">
/// The redirect being scaffolded.
/// </param>
public static void HandleScaffold(UmbracoRedirect redirect)
{
redirect.Url = "your-vanity-url-here";
EnsureStartsWithNodeId(redirect);
redirect.Id = Guid.NewGuid();
}
/// <summary>
/// Handles a redirect that is being created.
/// </summary>
/// <param name="redirect">
/// The redirect being created.
/// </param>
public static void HandleCreate(UmbracoRedirect redirect)
{
EnsureStartsWithNodeId(redirect);
redirect.CreateDate = DateTime.UtcNow;
redirect.UrlHash = redirect.Url.ToSHA1();
}
/// <summary>
/// Handles an update to a redirect.
/// </summary>
/// <param name="redirect">
/// The redirect being updated.
/// </param>
public static void HandleUpdate(UmbracoRedirect redirect)
{
EnsureStartsWithNodeId(redirect);
redirect.UrlHash = redirect.Url.ToSHA1();
}
#endregion
#region Private Methods
/// <summary>
/// Ensures the specified redirect URL begins with a root node ID.
/// </summary>
/// <param name="redirect">
/// The redirect.
/// </param>
private static void EnsureStartsWithNodeId(UmbracoRedirect redirect)
{
// Validate input.
if (redirect.Url.StartsWith("/"))
{
redirect.Url = redirect.Url.TrimStart("/");
}
if (Regex.IsMatch(redirect.Url, @"^[0-9]+/.+"))
{
return;
}
// Get the ID for the root node for the current domain.
var contentService = ApplicationContext.Current.Services.ContentService;
var domain = HttpContext.Current.Request.Url.Host;
var regionalHomepage = RoutingHelper.GetAllHomepages()
.Where(x => domain.InvariantEquals(x.Domain)).FirstOrDefault();
var domainNodeId = contentService.GetById(regionalHomepage.NodeId).ParentId;
// Prefix the node ID.
redirect.Url = $"{domainNodeId}/{redirect.Url}";
}
#endregion
#region Overridden Methods
/// <summary>
/// A string representation of this redirect (potentially used to display in the
/// UI-O-Matic tree, though currently this table is configured to display as a list).
/// </summary>
/// <returns>
/// A truncated URL.
/// </returns>
public override string ToString()
{
var partialUrl = Url ?? "/";
if (partialUrl.Length > 40)
{
var firstPart = partialUrl.Substring(0, 20);
var lastPart = partialUrl.Substring(partialUrl.Length - 20);
partialUrl = $"{firstPart}{lastPart}";
}
return partialUrl;
}
#endregion
}
Hi,
I am working on a package and below are the alias of my custom package:
Custom Section : "DynamicForms"
Custom Tree : "Forms"
Plugin Controller : "DynamicForms"
My App_Plugins folder structure is as follows
----[App_Plugins]
------ [DynamicForms]
------------[Backoffice]
-----------------[Forms]
---------------------Overview.html
---------------------[Form]
--------------------------Edit.html
--------------------------Settings.html
--------------------------Entries.html
I have tree node when I click on it I am setting my route path to "DynamicForms/Forms/Overview/all"
i.e. of format CustomSectionAlias/CustomTreeAlias/HTMLViewName/ID
and loading the view in my dashboard(Overview.html). In this dashboard I am trying to add a link, which should be opening "App_Plugins/DynamicForms/Backoffice/Forms/Form/Edit.html"
upon click of the link.
Could anyone guide me whats the necessary syntax for accessing the Sub-folder level files in Umbraco and is it achievable. Should I be pointing to a specific Route or should I handle that through angular to load a different dashboard view.
Thanks in advance.. :)
Regards,
Arun P K
Yesterday i moved my Umbraco database to another server. If i now open the project - whatever which page/view - umbraco automatically starts the "install" wizard screen, but without really (re)installing it. the loading animation is spinng - endless.
there is a error in the debugger too - but the issue is that the umbraco instance should not start the wizard. its a existing and working project.
i checked the database connection and it's working too. The only difference this database server has compared to the previous one, here i have to pass a Port too. so the string is like
connectionString="server=XX.XXX.XX.XX\SQLEXPRESS, 1987;database=UmbracoDB; user id=...
Do i need to change any value in a database table ? like the current IP
Thanks in advance for your help. Best regards