Quantcast
Channel: DevNet Questions
Viewing all 8836 articles
Browse latest View live

Smart Search by Fields of Page Type

$
0
0
We have a page type which contains fields as follows: Name, Title, SubmittedDate. So, on the UI, we need to enable search by each of the field columns in this page type including From and To date for SubmittedDate. We created a search index but it only searches the text data/content. So, how to filter search results by each individual fields?

Smart Search by Fields of Page Type

$
0
0
We have a page type which contains fields as follows: Name, Title, SubmittedDate. So, on the UI, we need to enable search by each of the field columns in this page type including From and To date for SubmittedDate. We created a search index but it only searches the text data/content. So, how to filter search results by each individual fields?

Custom code in GetFile.aspx.cs

$
0
0
For some security reasons, we want to mask/change the filename of attachment by modifying the response header. Before version 10, we can implement custom code at GetFile.aspx.cs. But now, since the GetFile.aspx.cs file has been removed, where can I implement the same logic?Thanks

Creating custom validation controls

$
0
0
Hi,I would like to create a custom validation control.Similar to the @cms:CMSRegularExpressionValidator /@ and @CMSRequiredFieldValidator/@ controls.I can see they're all based on System.Web.UI.WebControls.BaseValidator here: http://devnet.kentico.com/docs/8_0/api/html/T_CMS_ExtendedControls_CMSRegularExpressionValidator.htm but how can I create them as controls that are usable like the standard Kentico ones?@cms:CMSRegularExpressionValidator ID=@revFcaNumber@ runat=@server@ ControlToValidate=@txtFcaNumber@ Display=@Dynamic@ EnableViewState=@false@ ValidationExpression=@^([0-9]{8}|[a-zA-Z0-9]{10})$@ ErrorMessage=@Should be either 8 numeric charcters or 10 alpha numeric characters@/@We use a third party phone number validation service, so I've created a class extending System.Web.UI.WebControls.BaseValidator and implemented the required interfaces, now it's just how I use this class with my form, which is an extended clone of the stock registration form. (Custom registration logic required)Any links, tutorials or advice would be greatly appreciated.Thanks, Jack

Capture when a user resubscribes to a newsletter

$
0
0
HiHow do I listen out for when a user resubscribes to a newsletter?So they have previously subscribed and then unsubscribed to a newsletter and are displayed in the newsletter recipients table as Unsubscribed.Then they subscribe again. This event isn't captured in: SubscriberNewsletterInfo.TYPEINFO.Events.Insert.BeforeI have tried the following but it is not captured in any of these either:SubscriberInfo.TYPEINFO.Events.Insert.Before += SubscriberInfo_Insert_Before; SubscriberInfo.TYPEINFO.Events.Update.Before += SubscriberInfo_Update_Before; SubscriberNewsletterInfo.TYPEINFO.Events.Update.Before += Newsletter_Update_Before; Many Thanks

Best Approach to open existing online BizForm item in edit mode and update

$
0
0
Hi There,I've created a single form to maintain email/newsletter subscription. I would like, to provide a unsubscription url like @/unsubscription?Email=test@test.test@. Which will show previous subscription details. Then while submitting form will update the details.I've gone through several articles. there could be two possible solution on this.1) Customize C# code for InsertAfter Event. Since I want to keep last updated record, so I need to add code to delete previous record of emailId.2) Customize SetupControl method of SetBizform.ascx.cs. There need to provide ItemId will open the form in edit mode. on submit will update the existing record. Will not add a new record. // Get the biz form item, and set form control values var bizFormItem = BizFormItemProvider.GetItem(ItemID, className); if (bizFormItem != null) { // Set the item ID viewBiz.ItemID = bizFormItem.ItemID; }I believe option 2 is better than option 1, but I also think we should not alter main kentico files. Please suggest on above.

Using `ResHelper` to get resource string uses thread culture not LocalizationContext

$
0
0
Using Kentico CMS with a multi culture site, we have custom code to get a resource string, when we use ResHelper.GetString("someKey") it does not use LocalizationContext.CurrentCulture version of the string, it is always defaulting to the US culture.When I pass in the culture code to use as the second parameter using Localization.CurrentCulture.CultureCode it returns the correct string?Using a quick watch and breakpoint at the code, I can see that Thread.CurrentThread.CurrentCulture and CurrentUICulture are both set to US whilst LocalizationContext.CurrentCulture is set to which ever version of the website we are viewing.Why wouldn't Kentico set the Thread culture if resource strings rely on it?We have used many resource strings throughout the site, some are using built in cms controls @cms:LocalizedLabel ResourceString="someKey" /@ - how do these controls work? Thanks

Admin UI - Showing listings using paramaters

$
0
0
Hopefully I'll be able to explain my issue clearly.I've configured several additional pages via the User Interface in the Modules application. In particular I have added a 'Shipments' page. I followed the structure of the Ecommerce module to add this page such that it appears as a stand-alone icon on the main navigation under the 'E-commerce' heading, and also as a tab on the 'Customer Properties' page.The 'shipment list' is correctly displayed when first navigating to either location - via the icon under the 'E-commerce' heading it shows all items and via the tab on the @Customer properties@ page it shows only the items for that order.I've then gone on to add the edit pages and am facing an issue that when clicking the back button (the back link on the Vertical Tabs). It does go back to the correct place (ie. either the @Customer properties@ or the 'Shipments@ page). However, the list is not filtered when returning to the @customer properties@ page.I'm basically trying to replicate the navigation of Orders (it has its own icon under the 'E-commerce' heading and also is a tab on the customers page). I've looked through and can't seem to find how the 'customerid' is being passed to the Order_List page when clicking back from the Edit order page.

Macro for Pagewizard validation

$
0
0
Can we retrieve if a CancelEvent has been triggered ( on a page with the page wizard control ) in a custom webpart with a macro? I want to make an other web part visible when the page is invalid by using a macro expression.Do I need to write a custom macro for it?

Macro doesn't work...

$
0
0
I'm a newcomer in Kentico. I tried to use the @CurrentDevice@ from a macro to call an image server with the right values for the width and height (optimization purpose).I put in one of my page a static Html widget and I put this content : {% CurrentDevice.ScreenPixelsHeight @%} {% CurrentDevice.ScreenPixelsHeight #%}I read the documentation about macros and I can't figured what is going on. I enabled the debugging but it seems that the K# is never triggered for this macro... I also tried with other variables without success (not just only device).It always displayed the string without transformation in the page.Maybe I forgot something or I did something wrong.Someone could point me what I'm doing wrong?Thanks in advance

System Error Upon Admin Login

$
0
0
Hello,We are experiencing a @System Error@ screen upon login to the Kentico admin.There seems to be no changes to the codebase amongst team members that would relate to triggering the error. A few of our team members are still signed into Kentico and we were able to access the admin event log. However, it is free of error. It is only on logout and attempting to log back in that the error persists. Any feedback/steps to repair would be greatly appreciated! Thanks.Update: This has been resolved. Our server had reached it's storage capacity which was causing the error. After increasing the space we were back to business as usual.

How to hide a Kentico staging site from the public

$
0
0
Is limiting access to a Kentico staging site by IP address the best way to hide it from the public?We're finishing up a Kentico 11 site, and setting up Content Staging:from our internal dev site to an externally hosted staging site, andfrom the staging site to a production site on the same server.We could require users to be logged in to Kentico in order to view the staging site, but my concerns are that:This might only prevent dynamic content from being shown - static resources might still be accessible, andThe setting requiring users to be logged in to see anything might make its way to the production server via Content Staging.Thank you in advance for any feedback.

Custom Middle-ware API(C#) to get forums based on different field parameters.

$
0
0
Hello,I need to create Custom api which provides the forums/posts/groups based on different parameters. I googled but didn't find any relevant post about it.According to the following link https://docs.kentico.com/api10/social-and-community/forums we can create/update/delete the forum/forum post but there is nothing through which we can get multiple forums based on different parameters.Can any one please guide me with the same or suggest me any better approach.Thanks Shubham

What type of web applications is Kentico best suited for?

$
0
0
I am currently developing corporate websites for clients using WordPress. How does the Kentico CMS compare to Wordpress, Joomla and Drupal?Thanks. Kiril, Owner at TakeAffRoom, web design company in Montreal

how to sql query drop down list from bizform with document type

$
0
0
I want to show form drop down list from bizform select Course_ID,concat(NamCourse,' - ',schedule,' - ',Location) From CMS_Course ORDER BY Course_ID Example: I hope everyone can guide me how to do it Thank you so much

How to show database subscribe and member subscribe from bizform

$
0
0
I want to display the registration information and the attendees of the bizform course from kentico version 8.Currently I do not know how to connect data between data tables from bizform and document type. Hope everyone help and guide meWhen the subscriber enters information and enters attendee information, all their information is displayed on bizformAfter the user click on the registration button from bizform to save the data to the database

x-frame-options

$
0
0
Hi guysActually i had faced an issue while inserting iframe, the error is @x-frame-options set to same origin@.so i added CMSXFrameOptionsExcluded=@/@ in app settings, now i can able get the frame.CMSXFrameOptionsExcluded=@/@ , Entering @/@ turns off the protection completely , so i want to allow only from specific domain , How can i achieve that ?Thanks in advanceNaresh Ede

Unable to create new pages on any culture

$
0
0
Hi all,I have a very strange issue that we are unable to resolve and cannot find much online about this (barring a topic dated back to 2011).We inherited a Kentico site from a partner company and copied over from their instance to ours. We're running off a full EMS license and have the following issue.When we try to create a new page, on any culture we get the following message:You are not allowed to create new pages in the selected culture. The number of cultures assigned to the site does not fulfill the license requirements.Is there anyone that can help me troubleshoot this?Thanks Kurt

Media Library bulk delete fail for some files.

$
0
0
We tested this in multiple environment with Kentico 9.0.44. Bulk delete fail selecting the files if any of the file contains $ in file name. We can upload the file 'SE $200 BPO 1.png' in media library and delete the file individually using recycle icon, but when we select the item by checking the checkbox, then do delete operation of selected items, it fails after confirmation dialog. Below the drop down list, we see 'Please select some files.'. Is this known bug or are we missing some configuration?

Roles - Created Role Reporting and gave access to reports only

$
0
0
I created a Role called Reporting. Assigned the Permission to the Role.Assigned the Role to a user.Attempted to login as that user, but Kentico just spins and doesn't allow entry. Event Log @ is AUTHENTICATIONFAILEvent ID: 8652300 Event type: Information Event time: 2/8/2018 10:45:15 AM Source: Authentication Event code: AUTHENTICATIONFAIL User name: usernamehere IP address: xxxxxxxxxx Description: Site name: xxxxx Public - PRODUCTION Machine name: 869930-xxxxxx-KEN Event URL: /CMSPages/logon.aspx?ReturnUrl=%2fAdmin%2fCMSAdministration.aspx URL referrer: http://www.xxxxxx.com/CMSPages/logon.aspx?ReturnUrl=%2fAdmin%2fCMSAdministration.aspx User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 Any indicator on what I am doing wrong?
Viewing all 8836 articles
Browse latest View live