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

Add JS in HorizontalTab.ascx

$
0
0
Hi, I am not sure if this is okay to do, but i need to add a script inside the horizontal tab. may i ask how can i do this? i am loading a script in cms editing page. thanks, gelli

Language Selector in ASPX page

$
0
0
Do you have any sample how to create a language selector using the languagedatasource and a basic repeater in a ASPX template (master page)?This sample is for the portal engine https://docs.kentico.com/k11/multilingual-websites/setting-up-multilingual-websites/configuring-urls-for-multilingual-websites/creating-language-selectorsbut i'm very confused, general speaking, how to migrate in the ASPX template world. CultureName, URL @ CultureCode are not part of the datasource, so I cannot use in the Eval(@@) form like a normal repeater.Thanks Sandro

add html+text to input of type submit using javascript

$
0
0
I am using a smartsearchbox webpart, and I am adding the text value of its submit input using javascript, like this:$("#p_lt_ctl02_pageplaceholder_p_lt_ctl03_SmartSearchBox1_btnSearch").val('{%GetResourceString("search")%}'); now I want to append to the value a search icon using fontawesome library, how can I achieve that with javascript?

Document Repeater pulls "denied" documents

$
0
0
We have a repeater that pulls File documents on a page. However some of the documents should not be available to certain users, so they are set to Deny for that User Role. However, they are still getting pulled in the Repeater. The access denied does not show until they click on the link to view the File. However this is not desirable. The @denied@ File should not show in the Repeater at all. How can we accomplish this?

Way to upgrade Url redirection module to Kentico 11.

$
0
0
Hello!I'm using a following module - https://devnet.kentico.com/articles/url-redirection. So, Kentico 11 is here, and after upgrading my site, i'm getting following error - Compiler Error Message: CS0246: The type or namespace name 'CMSLoaderAttribute' could not be found. The problem is that it uses obsolete @CMSLoaderAttribute@ class. Seems, it completely removed in new version. Kentico 10 release notes only says that i need to use custom module, but it's already a custom module. So, can you suggest any ideas how to make this custom module work in Kentico 11?Thank you in advance.

Kentico Import Toolkit 9.0

$
0
0
We have been using Kentico Import Toolkit v9.0 to import some of the legacy data from the SQL Server 2008 R2 into the newly created proprietary (Kentico Custom tables).. and at one step, the CMS query is NOT ABLE to handle the SQL Server comparison (with an apostrophe in the string value).. Is there anything in the Tookit that can help overcome that kind of handling? We would not want to alter the source (legacy) data as a text without an apostrophe will likely alter the meaning of the text itself!A sample query is as below:SELECT NodeID FROM View_CMS_Tree_Joined WHERE ClassDisplayName ='Custom Table Name' and NodeName = 'Alzheimer's Disease' (as an example) Your help is much appreciated! The key ask is how and where can we ESCAPE apostrophe in the CMS query, while inside the Kentico Import Tool?

Web parts caching

$
0
0
I have a Web part defined that displays a repeatable menu in the form of links. The links disappear from time to time. I can see within the Web part properties there is a Cache Item name along with Cache minutes defined. Could the disappearing menu links be caused by the Caching?

Uncaught SyntaxError: Unexpected token < error while uploading file

$
0
0
we are using kentico 8 recently we change our server to windows server 2012 after that file uploading stopped working .File upload 100% then it stopped due to javascript errorUncaught SyntaxError: Unexpected token @ at new Function (

Using Resource Strings in Web Part Layout

$
0
0
I'm trying to use a resource string I have created named lblLitCenterHeader (inside the Localization App in the the CMS backend) inside a custom layout of a web partI have used:@cms:LocalizedLabel ID=@lblLitCenterHeader@ resourcekey=@lblLitCenterHeader@ runat=@server@ /@ @asp:Label ID=@lblLitCenterHeader@ resourcekey=@lblLitCenterHeader@ runat=@server@ /@ @cms:LocalizedLabel ID=@lblLitCenterHeader@ runat=@server@ /@ @%# Localize(@Text containing localization expressions: {$lblLitCenterHeader$}@) %@ None of them have worked. They either do not show or cause an error.Please help

E-Commerce Customer to Kentico User to EMS Contacts Relationship

$
0
0
Is there a way to tie in the E-Commerce to the users in the main Kentico and EMS Contacts? We logging orders in ecommerce. The customer can order without creating an account online. I would like to provide order history when a customer review their profile page if they have created an account on the site. I have Account and EMS Contacts work out, just don't know to link the E-Commerce Customer. Is there a something/value in common with all the modules?Thanks David

MultiFileUploader stuck at 100%

$
0
0
We have a Kentico instance hosted on Azure. This issue started occurring last week (no changes were made to the site). When trying to upload an image to the Form choosing the MultiFileUploader, I can choose the file but then it tells me 100% and I'm unable to actually see the file uploaded.I did a network trace and I see that there is a 404 occurring on MultiFileUploader.jsGetResource.ashx?scriptmodule=/AdminControls/MultiFileUploader.js:1b @ GetResource.ashx?scriptmodule=/AdminControls/MultiFileUploader.js:1 i.onloadend @ GetResource.ashx?scriptmodule=/AdminControls/MultiFileUploader.js:1 XMLHttpRequest.send (async) w @ GetResource.ashx?scriptmodule=/AdminControls/MultiFileUploader.js:1 e.onchange @ GetResource.ashx?scriptmodule=/AdminControls/MultiFileUploader.js:1This occurs in both IE and Chrome. Kentico version v10.0.36.

Creating a simple page view report

$
0
0
Hello Kentico Team,I am trying to build a simple report for the total number of page views for all blog posts within a certain blog.My code so far returns all of the page views for all of the pages on my site, which is neat, but ultimately unhelpful.SELECT SUM(HitsCount) FROM Analytics_Statistics INNER JOIN Analytics_YearHits ON Analytics_YearHits.HitsStatisticsID = Analytics_Statistics.StatisticsID WHERE (StatisticsSiteID = @CMSContextCurrentSiteID) How can I set the WHERE conditions to limit this report to only BlogPost items and only those with a specific parent page?Thanks in advance.-mike

Smart search results behaviour of compound index of multiple page types

$
0
0
Can someone confirm the behaviour of the Smart search results webpart when using a Smart search filter on a particular field, documentation here, when the index, and the expected results, are compound of multiple page types?In my scenario I have 2 page types, one is always a child of the other, my hypothetical scenario would be a Folder and File types as an example.I've configured the index with Pages type and Standard analyzer to include all Folder and File types under the path /MyOS/% on the tree.The search page, includes the Smart search results webpart and a Smart search filter, a checkbox for the File's field FileIsHidden.What I'm trying to ascertain is the possibility for the results to include all folders that have a hidden field, as well as the files?Client has a v8.2 license and now has a requirement similar to this scenario.Thanks so much for any help in advance.

Unable to change casing of default string using Localization

$
0
0
We are using the Logon Form web part and allowing forgotten password retrieval which shows a button on the UI with the text @Reset password@. We would like that to read @Reset Password@, the only difference being the uppercase P. I tried to create a Localization string with key of LogonForm.btnPasswordRetrieval and having the value @Reset Password@. When I save that, the value of the localization string is automatically changed back to @Reset password@. I can change the value to something completely different, and it will save, but if its the same letters but different casing that the original, it won't stick.Is this a bug, or am I doing something wrong?

Creating dynamic UI in Kentico CMS

$
0
0
I have created a static UI in Kentico CMS and now i want to make it dynamic. I don't have the backend code yet. Is there any possible method using which i can create a dynamic UI without using backend client code ? Please suggest me a solution.Thanks in advance.

Email addresses in customer notification email for ecommerce shopping cart

$
0
0
In the body of the customer's notification email I would like to include their email address. Just like the way their address and phone number appears. This is how it looks in the backend:(Address) {%BillingAddress.ApplyTransformation(@Ecommerce.Transformations.Order_Address@#%}(Phone) {% BillingAddress.AddressPhone #%} Where would I find the correct way to write or format their email address? Would it be something like: {% BillingAddress.email#%}

Kentico Macro Based on DOM Element

$
0
0
Hey!I'm trying to create a macro to be used in a dataLayer element that grabs the value of an id attribute of a DOM element. Such as:@div class=@QuoteForm@ id=@InsureDirectQualifierA@@ Where The div would always have the class QuoteFormI wanted to create a macro that grabbed the value of the ID element. Maybe something similar to:{%CompanyMacros.GetCurrentPageForm(CurrentDocument.DocumentID)#%}Is this possible?Thanks!

Problem creating custom roles for a project

$
0
0
I have a problem setting up basic role management. I am trying to create a custom role 'ContentAuthor', but I cannot seem to properly configure the system to let users access modules in the backend, and I cannot quite see what I am missing. Here's what I did:I created an MVC site 'Site1'I created a role 'ContentAuthor' for Site1I gave ContentAuthor permission to Read and Manage 'A/B testing'I personalized ContentAuthor via UI personalisation by choosing @select all@ under the CMS node.I added A/B testing to the default Dashboard for the ContentAuthor roleI created a user @Writer@ and who is available for Site1 and has role ContentAuthor, who is enabled and has privilege level 'editor'I checked in Modules -@ A/B testing -@ User Interface for Site1 that the checkmark is set, and I checked this for all of its parentsI checked in the permissions module that, indeed, ContentAuthor is permitted to read and manage A/B testing for Site1Now, when I go to the Dashboard while Site1 is the site I am currently editing - displayed next to the Home button - and start to impersonate Writer, I cannot access 'A/B Testing' module. 'A/B testing' is not displayed on the dashboard (only the welcome tile is shown) and the module menu only shows 6 modules that seem unrelated to what I did (Checked-out items, My Blogs, Recycle bin, Friends, Messages, My Profile).I have tried out variations of the actions above, including creating a global role and user, trying other applications, disabling UI personalization and assigning the role to a membership, but could not make any headway. Where do I go wrong?

Output Cache Expiration Date does not match page settings

$
0
0
Hi, on my root page I have output cache set to Yes and Cache minutes set to 20. All child pages inherit this. However, some cache output items are showing expiry dates of 01/01/2035 or 01/01/2050. I tried clearing the cache, restarting the application pool, disabling and re-enabling the cache.Is there any other setting that I need to check? I can't see anything in my page types that would be relevant

Not able to select translation service that is enabled

$
0
0
On our Dev site, we want to connect to a Translations.com sandbox server to test translation workflow. We have Translations enabled under Setting -@ Content -@ Translation Services. We have the correct info in the Project Director URL, Client user name, Client user password, and Project short code fields. We have the Translations.com service configured and enabled under Translation Services, but when I enable it I get the message:This service is not available on current site, please check service settings in Settings -@ Content -@ Translation services.When I go to translate a page, the only choice I have is Manual Translation, my other enabled service are not available as options.On our Beta server, the same configuration is present, except that it points to a production Translations.com server. Is it something to do with the Translations.com Settings being incorrect?
Viewing all 8832 articles
Browse latest View live