is there a way to make the order note required?
↧
Order Note Required
↧
Attach a document to a page / security
When attaching a document to a page, and then securing that page, what is the "Kentico" expected behaviour to this attachment ?
a) Because the page is secured, the document is also secured ?
b) If I know or guess the direct link, I can acces the attachment ?
Ex:
root
page A (Insecured)
Attachment to page A
Page B (Secured)
Attachment to page B (like: "/files/66/66701710-dd57-4426-a5c6-2b3cd058af67.pdf")
So if I go to "http://mysite.org/Page B", Kentico answers with a login page but
If I go to the attachment directly, like "http://mysite.org/files/66/66701710-dd57-4426-a5c6-2b3cd058af67.pdf" kentico gives me the PDF...
So, if the answer is B, is there any way to prevent the files to be shown without permission ? (and the option to check files security is enabled...)
Thanks !
↧
↧
macro errors
We intermittently encounter an issue where the macros get corrupted for some reason. We have not been able to determine the cause of the problem but resigning the macros resolves the error. One of our main concerns however is what we should do in the event we are not able to login when this happens and thus are unable to resign the macros. Does anyone have any ideas what we would be able to do if this happens?
Thanks
↧
Caching data and resetting it for a Web Part
I am currently storing a complex object for every instance of a web part and widget that I drop on a page. I am doing this by creating a web part and caching the object for 10min using this.ShortClientID as the key.
Now I don't know if even that part is the best way to do things. But basically I want to be able to invalidate the cache if a user changes a web part property called 'Record Number'.I also have a custom form control for this property, so if there is anything in the save function that I could override, maybe I could do it in there. But I can't find any reference from a form control back to the web part instance.
Does anyone have any good ideas here? Could a cache dependency be used? Am I approaching this in the wrong way? I'm not referring to page output caching here. I'm referring to a custom object.
↧
Custom Webpart/Widget Layouts
I've followed instructions in the documentation about how to create a new webpart by inheriting from an existing webpart. And I understand that I can either use the default layout or create a new layout, however how do I know how the layout needs to be structured? I assumed it would allow me to start with the default layout so that I could see how it was setup, and then modify it from there. Is there somewhere that I can go to see how the default layout is setup? I can't seem to find this in the code that comes with Kentico or in the documentation.
Thanks
Marla
↧
↧
Blogs Migration
Hi,
Recently, we decided to migrate one of our website from K6 to K7, we have a lot of blogs in this website, but we successfuly migrated them, my issue is that before in k6, we had multiple blogs that contained blog month and then blog posts, we did so to categorise the blog posts, but in the new version we decided to use the tags, it works correctly, but the issue is when we migrate the blog month from the old site to the new one, we kinda get duplicate blog months with different content instead of merging the content.
What i mean is, for example, we had a blog month "2011-05", which contained some blogs, and we wanted to migrate another blog month "2011-05", we expected that both blog months will merge, which it didnt, we ended up with two blog months with the same name "2011-05", althought with different blog posts inside.
My question is, is there a settings or a way to migrate blog post, in a way that it will create blog months only when it doesnt exist, if it does, it will add the blog post the existing blog month.
Thank you.
↧
Custom Table Form editing only current user
I want to provide a custom table together with a custom table form for users to edit a kind of profile. Unfortunately I can't fined a way to prevent a user from editing other user's data by simple changing the URL parameter.
Each user should only be able to edit records by himself (ItemCreatedBy=%CurrentUser.UserID%).
Is it possible to user a view with custom table form instead of the table?
Or any other solution?
↧
Custom SKU Pricing per customer without discount levels
Hi,
We have ~24000 products and ~500 customers. Each product has a standard price, but all customers have varying pricing for all products. There are no set discount levels or pricing/product groups. It's pretty much random and we pull pricing from an external system.
We don't use any 'real' SKUs, and rely on a custom product detail page, which simply uses external functions to display the correct price/information for the logged in user (user class has a custom field with the external software account number for the customer).
We create SKUs to process through the checkout system by creating SKU Number/Price combos on the fly when a customer adds to the basket. This has worked well for the past few years, but as part of an upgrade to K8.2, I want to rebuild the site and maybe come up with a better solution to this problem.
Any suggestions welcome. If creating SKUs is the best option so be it, I just wanted to check...
↧
CMS FileUploaded Not Working
Hello,
I am using Kentico 6.0 In our ECommerce web site to upload image from CMS we have used CMS FileUploader. Which was working fine till now, but now when i select file to upload i am getting alert with below error message :
*[HttpWebRequest_WebException_RemoteServer]Arguments: NotFoundDebugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.40620.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer*
**I checked in Firebug from there i got below error** :
*"NetworkError: 403 Forbidden - http://mywebsite/CMSModules/Content/CMSPages/MultiFileUploader.ashx?filename=Upload+Issue.png&CurrentFileIndex=1&FilesCount=1&GetBytes=true&MediaLibraryArgs=&FileArgs=&AttachmentArgs=&ResizeArgs=0;0;0&MetaFileArgs=MetaFileID%7c0%7cObjectID%7c5000579%7cSiteID%7c2%7cObjectType%7ccustomtableitem.customtable.handset_image%7cCategory%7cImage%7cHash%7ccfb683566741382b95d9434b7a17b48406da92e930cd55d1b7c23d3932f317d3&ForumArgs=&AdditionalParameters=SourceType%7cMetaFile%7cParentElementID%7cm_c_ucMetaFileRed5%7cIsInsertMode%7cTrue%7cAfterSaveJavascript%7c%7cTargetFolderPath%7c%7cTargetFileName%7c%7cIncludeNewItemInfo%7cFalse%7cOnlyImages%7cFalse%7cRaiseOnClick%7cFalse%7cTargetAliasPath%7c%7cTargetCulture%7c%7cEventTarget%7c%7cHash%7c6b608e0ba5e524649a68b11ba1e0d3dcd05e1df98da76a7613336adf74003f1b&AllowedExtensions=pdf;doc;docx;ppt;pptx;xls;xlsx;htm;html;xml;bmp;gif;jpg;jpeg;png;wav;wma;wmv;mp3;mp4;mpg;mpeg;mov;avi;swf;rar;zip;txt;rtf|Hash|e4821947dfef4b41bcc0a381775b666733f785663a6621bd59e96b3d157f7fa2&InstanceGuid=119fff8e-15c2-4763-881f-59f99e362efd"*
**I tried to upload image from my server but it is not opening dialog to upload file.**
**Below are code some which i used :**
**Insert Mode**:
**Update Mode**:
Can any one help me what is the issue with my uploader which was working fine till now ?
Thank You
Ankit.
↧
↧
Applying Discount Per Item In Shopping Cart
Hello,
In our ECommerce Website which is in Kentico 6.0 till now we were applying Discount Coupon which was applying to whole shopping cart price.
For that we are just setting ShoppingCartDiscountCouponID to ShoppingCart which is applying discount to whole cart price.
But now we need to apply discount to individual item in a cart not whole shopping cart price.
So can anyone advise is there such functionality exist in Kentico 6.0 or we need to customize it ?
Please Advise.
↧
CMS.File as a page and editing this file
Hi there,
I'm developing an intranet (my first), I have implemented 'latest news' and 'latest documents' as repeaters to list these in each department page.
The news uses a intranet.news custom page type that links to a new page with the full news article, then at the top has an edit contribution so it can be edited/deleted etc.. by a user. No issues there.
The documents use the CMS.File page type, which is selected as it can be used with versioning and doument libraries. Fine. This is all ok except when i want a user to click on it and edit; the getdocumenturl() transformation just opens the actual file attachment in a window when I'd like it to open a new page so i can add text (and other fields) and the 'edit contribution' web part.
Yes i could use a document library (except that's almost redundant on V9), I just sometimes find the document editing/uploading process a bit user-unfriendly.
The way i see it i have these options:
* Find a way to link the CMS.File to an actual page where it can be edited. The ideal scenario.
* Unlock the 'edit page' button for user where the 'edit' buttons will appear on the repeater.
* Link to a separate page with a document library on it (although Kentico are dropping this and i just think it's convoluted)
Can anyone advise me on what they do for intranet users that gives an easy way to edit and display the files? Or advise if i can give the CMS.File page type a page template.
Thank you in advance, i apologize for the long post.
Jon
↧
Using the Query string hashing
Hi Guys,
I have this small project [http://airsoft.pmcosta.pt/](http://airsoft.pmcosta.pt/) it's a directory of Airsoft playing teams in Portugal, this was a great opportunity to test a few Kentico things.
Specifically the Bizforms, data is driven from a Bizform index, and users are able to add the details correctly. I've also built a Search Results driver Google Map web part.
My frustration now is trying to allow users to edit their records.
I though about using https://docs.kentico.com/display/K81/Query+string+hashing so I can send a unique url to the user that added the original record, e.g. http://airsoft.pmcosta.pt/edit.aspx?id=123&hash=1233434343 if the user attempts to access another id's record it will fail cause the hash won't match.
However I can't get the validation to work properly, it's always false, as a test I built the query string as such:
`QueryHelper.BuildQueryWithHash(false, "ID", "75")`
that returned me:
`?ID=75&hash=50d53fc4864db2b4b7e4793e2c5bcc00f455f952438bb4fe526cc1aaaa9f7879`
i then visit the url using the exact query above but on the custom web part (clone of On-line form) when I use
`QueryHelper.ValidateHash("hash", settings: new HashSettings { Redirect = false, UserSpecific = false })`
in the SetupControl it is always false! it's driving me crazy...
Can anyone help? I maybe missing something simple, but I've checked everything CMSHashStringSalt is there since the beginning.
Thanks,
P.
↧
Get current user (public or not) after form submitted.
Hi,
I've followed the guide on handling form's data via the API, https://docs.kentico.com/display/K8/Working+with+form+data+using+the+API#WorkingwithformdatausingtheAPI-Handlingformevents
I'm using the BizFormItemEvents.Update.After event instead but can't figure out how to know if this is a public or admin use that submitted of the form.
Tried with SiteContext.CurrentUser however that's never set, I could do with knowing if the form was submitted with an alternative form or not (i'm using alternative's for insert and update), but at least that I could see the BizFormItem does not have this info.
Basically what I'm trying to achieve is be able to set a field to false (IsReviewed) if the update was done by a public user.
BTW, this question related to https://devnet.kentico.com/questions/using-the-query-string-hashing
Thanks in advance,
Cheers,
P.
↧
↧
Submit Button with a datasource
I need to button webpart that I can place on a form that when clicked will call a stored procedure. Is there such a webpart. If not does anyone have any ideas on what I could use?
Thanks.
↧
Cast CustomTableItem to object
Hi.
I am trying to develop REST service using ASP.NET WEB API 2 with Kentico 8.1.
The functionality that I need is get and post custom table data.
For cast customeTableItem to my own object, I wrote code below but it returns error message
'Unable to cast object of type 'CMS.CustomTables.CustomTableItem' to type 'TestObject '.
What is the best way to convert customTableItem to object?
Thanks.
public class TestObject : CustomTableItem
{
public const string ClassName = "customtableName";
public string firstName { get; set; }
public string LastName { get; set; }
public string PhoneNumber { get; set; }
public string Postcode { get; set; }
public TestObject() : base(ClassName) { }
}
public IEnumerable GetTestObjects()
{
var items = CustomTableItemProvider.GetItems();
return items.AsEnumerable();
}
↧
Importing users and roles from Active Directory
I have successfully import users from AD. But i need clarification on this matter. Each user in AD already bind to specific roles, unfortunately the roles were left out during the import process ( I've verified by checking database). I noticed the AD import utility ask me to assign users to specific roles before import process begin, i did not select any of them since not all of them share the same roles.
So, is it possible for me to import only users,not users and roles separately?
Thanks
↧
CMS FileUploader Not Working
Hello,
I am using Kentico 6.0 In our ECommerce web site to upload image from CMS we have used CMS FileUploader. Which was working fine till now, but now when i select file to upload i am getting alert with below error message :
*[HttpWebRequest_WebException_RemoteServer]Arguments: NotFoundDebugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.40620.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer*
**I checked in Firebug from there i got below error** :
*"NetworkError: 403 Forbidden - http://mywebsite/CMSModules/Content/CMSPages/MultiFileUploader.ashx?filename=Upload+Issue.png&CurrentFileIndex=1&FilesCount=1&GetBytes=true&MediaLibraryArgs=&FileArgs=&AttachmentArgs=&ResizeArgs=0;0;0&MetaFileArgs=MetaFileID%7c0%7cObjectID%7c5000579%7cSiteID%7c2%7cObjectType%7ccustomtableitem.customtable.handset_image%7cCategory%7cImage%7cHash%7ccfb683566741382b95d9434b7a17b48406da92e930cd55d1b7c23d3932f317d3&ForumArgs=&AdditionalParameters=SourceType%7cMetaFile%7cParentElementID%7cm_c_ucMetaFileRed5%7cIsInsertMode%7cTrue%7cAfterSaveJavascript%7c%7cTargetFolderPath%7c%7cTargetFileName%7c%7cIncludeNewItemInfo%7cFalse%7cOnlyImages%7cFalse%7cRaiseOnClick%7cFalse%7cTargetAliasPath%7c%7cTargetCulture%7c%7cEventTarget%7c%7cHash%7c6b608e0ba5e524649a68b11ba1e0d3dcd05e1df98da76a7613336adf74003f1b&AllowedExtensions=pdf;doc;docx;ppt;pptx;xls;xlsx;htm;html;xml;bmp;gif;jpg;jpeg;png;wav;wma;wmv;mp3;mp4;mpg;mpeg;mov;avi;swf;rar;zip;txt;rtf|Hash|e4821947dfef4b41bcc0a381775b666733f785663a6621bd59e96b3d157f7fa2&InstanceGuid=119fff8e-15c2-4763-881f-59f99e362efd"*
**I tried to upload image from my server but it is not opening dialog to upload file.**
**Below are code some which i used :**
**Insert Mode**:
**Update Mode**:
Can any one help me what is the issue with my uploader which was working fine till now ?
Thank You
Ankit.
↧
↧
Multiple choice form control option values
Hi,
I want get all the option values on multiple choice form controller through the api.
Its on one of my document type field.
Thanks
↧
CDN Implementatin in Kentico cms
Hi All,
I am trying to implement CDN in our website using Kentico CMS, Can you please guide me how to implement CDN in our website.
Thanks in advance.
Thanks,
mak
↧
Implement custom version of CMS.File
I need to implement a custom version of CMS.File. This is because the physical files in question will be located on a third party system so need to be referenced by URL rather than being uploaded. However, I want Kentico to behave in the same way as with CMS.File i.e. when editing in the content tree the editor can edit the file's metadata but when viewing on the live site a download is triggered. And I need the download logged as a contact activity etc.
I know that CMS.File uses Kentico's GetFile.aspx to manage the downloading of the file. What I'm not clear about is how Kentico uses this webform to achieve the behaviour described above. Your advice would be very welcome.
↧