I am using Kentico version V10. In that using Smart search functionality.Configuration : Page types = pages (Menu items)
Index types = Pages.
Analyzer type = StandardI have page having 5 Panels. When I am searching the content from Panel 3rd. In search result I am getting the result from Panel 4th. Why Kentico smart-search pulling the content from Panel 4, instead of actual searched content panel(3rd)Is there any way where I can bring the content from only Panel 3. Or always default from 1st panel.Help will be appreciated.
↧
Smart search brings the random text
↧
Show/Hide elements depending on document type field?
Is there another way i can write this so that I have have a checkbox or radio button in the document Type to either show or hide this element from appearing on the front end?{% if (phone2.length @ 0) { #%}RESERVATIONS: {% phone2 %}{% } else { #%}
{% } #%}
↧
↧
The specified Amazon S3 bucket does not exist
We set up a Kentico v9 site and are getting this when we go to it using a browser:Runtime ErrorDescription: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated. This error comes up even for the /admin area.I checked the Windows event log and found this entry:[AccountInfo.AccountInfo]: The specified Amazon S3 bucket does not exist.
at CMS.AmazonStorage.AccountInfo..ctor(String accessKeyID, String accessKey, String bucketName)
at CMS.AmazonStorage.AccountInfo.get_Current()
at CMS.AmazonStorage.S3ObjectInfoProvider.GetBucketName(String path)
at CMS.AmazonStorage.S3ObjectInfo.FetchMetadata()
at CMS.AmazonStorage.S3ObjectInfo.Exists()
at CMS.IO.Directory.Exists(String path)
at CMS.Helpers.HelpersHandlers.InitStorage(Object sender, EventArgs e)
at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler1 h, TArgs e)
at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List1 list, TArgs e, Boolean important)
at CMS.Base.SimpleHandler2.RaiseExecute(TArgs e)
at CMS.Base.SimpleHandler2.RaiseExecute(TArgs e)
at CMS.Base.SimpleHandler`2.StartEvent(TArgs e)
at CMS.DataEngine.CMSApplication.PreInit()
at CMS.DataEngine.CMSHttpApplication.InitApplication()
at Global..cctor()I have the following keys set in web.config:@add key=@CMSExternalStorageName@ value=@amazon@ /@
@add key=@CMSAmazonBucketName@ value=@...@ /@
@add key=@CMSAmazonAccessKeyID@ value=@...@ /@
@add key=@CMSAmazonAccessKey@ value=@...@ /@
@add key=@CMSAmazonPublicAccess@ value=@true@ /@
@add key=@CMSAmazonEndPoint@ value=@http://d17zmv3wr28ha1.cloudfront.net/@ /@
I verified the bucket name for the key CMSAmazonBucketName exists on Amazon S3. Does anyone have any ideas what else I can do? Thanks.
↧
Multiple instances of custom web part on same page conflicts
Hi,
I have created a custom web part that produces a PDF from user entered input fields on click of a button.
I am having a problem with multiple of this web part on the same page, where regardless of which web parts button is clicked, only the first part's PDF is generated, IE the code behind runs for the first instance of the web part regardless of the trigger. When debugging, the properties are that of the first part rather than the part clicked.This is complicated by the fact that the display of the web part acts similar to static HTML, where the content administrator user can enter some HTML to display, so the button that triggers the form submit is just some piece of user editable HTML.I have had a lot of problems getting the PDF generation code to run on submit, because the submission is not a page control. Does anyone have any suggestions about a @right@ way to do this?
↧
run code on every page load
Hi,(Version 8.0)I have a piece of code that I'd like to run on every page load.I could create a custom RequestEvents handler ... but there are several items requested for every page load, so it'll run MANY times per page load.I could create a webpart and add it to the master file. But if somebody creates a new master file for a new section of the website, they might forget to add that webpart to it.What other options are there to run a piece of code on every page load?thank you, Rita.
↧
↧
Web Services/API's for Order/Product update
In Kentico9 is there any Web Services/API's available for Order/Product update to call from external system.
↧
Custom Kentico Navigation Menu for MVC project
Dear,We are implementing our project by using Kentico 10 as a back-end, and MVC 5 as Front-end. We configured the project as per Kentico advice in this article.
We created the structure in the back-end with the help of page types and pages in the front-end, we used Kentico API to communicate with back-end and retrieve data. We are now on the face of building site menu. The menu should always reflect the structure created in Kentico. Moreover, the admin user should have the ability to hide (no delete) a node from being rendered in menu.
Therefore, I would like to ask you:
- What is the best way to read structure displayed in Pages module by my code?
- How should I put the custom configuration I want to add?I really appreciate your kind replay.
↧
Dynamically Resolve Controls (inline widgets) in CMSUniVuew
Hi,I have a CMSUniView that I use to render a navigation menu.However, I'm struggling to resolve inline widgets for same. I followed the documentation on how to dynamically resolve controls but as I'm inside a repeater it's throwing an exception saying the placeholder with id @plcPlaceholder@ doesn't exist in the context (which I guess is down to the repeater creating multiple placeholders with the same ID).Is there any way around this?Thanks in advance
↧
Inline Widgets in Kentico Repeater
I have a repeater that evaluates the content field from a page. This content may have inline widgets in it:Now, normally I would wrap Eval("Content") in a placeholder with EnableViewState="false" and then resolve it dynamically in code behind but the problem is that the repeater repeats the ID for the placeholder rendering it invalid.Is there anyway around this?@cms:CMSUniView ID="MainNavMenu" runat="server" @
@HeaderTemplate@
@ul@
@li@
@/HeaderTemplate@
@ItemTemplate@
@a href="@%# Eval("Link") %@"
title="@%# HTMLHelper.HTMLEncode( Convert.ToString(Eval("DocumentName"))) %@" @
@%# HTMLHelper.HTMLEncode( Convert.ToString(Eval("DocumentName"))) %@
@/a@
@%# Eval("Content") %@
@/ItemTemplate@
@SeparatorTemplate@
@/li@
@li@
@/SeparatorTemplate@
@FooterTemplate@
@/li@
@/ul@
@/FooterTemplate@
@/cms:CMSUniView@
↧
↧
Fast Deletion of 100 000's document Site
Hey guys,I have an upcomming K7 database split to do in 2 months and I was wondering if there was a faster way to delete a site than just clicking on the red X.You have to know that the web site is actually 100 000's document.I know, nobody needs to tell me that it's way beyond K7 document count recommendation, but for now I have to deal with ;)So?thanks
↧
How do I disable products in Kentico 10?
I am performing CRUD operations for products of e-commerce site in kentico 10.I can add and update products using below APISKUInfoProvider.SetSKUInfo(updateProduct);
Also there is an API for deleting productSKUInfoProvider.DeleteSKUInfo(updateProduct);
But I do not wish to delete the product from database,rather just disable them so that they do not show up to the end users and still stay in the database .This are the SKU Objects for the product :var sku = new SKUInfo
{
//SKUName = Convert.ToString(dr["SHORT_DESCRIPTION"]).Trim('"') + " (" + Convert.ToString(dr["MANUFACTURER_PART_NUMBER"]) + ")",
SKUName = Convert.ToString(dr["MANUFACTURER_PART_NUMBER"]),
SKUDescription = Convert.ToString(dr["TECHNICAL_SPECIFICATIONS"]).Trim('"'),
SKUShortDescription = Convert.ToString(dr["SHORT_DESCRIPTION"]).Trim('"'),
SKUPrice = ValidationHelper.GetDouble(dr["RESELLER_BUY_INC"], 0),
SKURetailPrice = ValidationHelper.GetDouble(dr["RRP_INC"], 0),
SKUEnabled = true,
SKUSiteID = siteId,
SKUProductType = SKUProductTypeEnum.Product,
SKUManufacturerID = manufacturer.ManufacturerID,
SKUDepartmentID = department.DepartmentID,
SKUHeight = 100,
SKUWidth = 100,
SKUAvailableItems = 1,
SKUSellOnlyAvailable = true
};
I tried to set SKUEnabled as false but still user can see the product.So, is there any property to disable products ?
↧
Kentico 9 tranformation page/file URL
In my custom page type, you can select an uploaded file. That's fine, but in my ascx tranformation, i'm having a hard time getting the URL. The field is 'Process'.Here's what i currently have.@%# IfEmpty(Eval("Process"),"N/A","@a href=" + Eval("Process") +" target='blank' class='icon download'@Download@/a@")%@
When rendered, the html is this:@a href="214b6876-cb39-4a58-813f-19dcb7c788e4" target="blank" class="icon download"@Download@/a@
I'm missing something.
↧
Error: Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'CMS_Attachment' because
So I have 2 Smart Search indices. Both of them are based on page types. Both have a search results page with filters (multiple drop-downs and a keyword). One is called Collections and one is called Projects.So when I do a keyword search on the Projects, I get this error message:Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'CMS_Attachment' because it is not full-text indexedIf I do a keyword search on Collections, it works fine. Using the drop-down filters on both works fine as well, it's just a keyword search on Projects that breaks.I have compared settings between the web part configurations and smart search index settings; both are virtually identical, except the drop-down filters are specific for each index. Both use the same DB. I have run the site locally and found where it breaks:Line 1479 - DataSet results = SearchHelper.Search(parameters);I have compared the parameters argument between the two searches and other than the index, page types, and path, there isn't anything apparently wrong with the Projects one.Please help, because I have run out ideas.
↧
↧
Get EditableImage URL to set visibility from code behind
Hi,I have created web part using web user control .ascx. It contains grid of CMSEditableImages.
I want to show/hide these images by add check for ImageUrl.
I am trying following.Control c = RecFindControl(this.Parent, Image1.ID.ToLower());
CMS.DocumentEngine.Web.UI.CMSEditableImage i= (CMS.DocumentEngine.Web.UI.CMSEditableImage)c;
System.Web.UI.WebControls.Image a = i.ImageControl;But ImageControl always returns null. From ImageControl I want to get ImageUrl.Using RecFindControl method provided here.
https://devnet.kentico.com/articles/enhancing-the-findcontrol-methodKindly help me into this.Thanks in advance,
Manmath.
↧
Header and Footer disappear automatically
Hi,We build website on kentico 9.0 version. Now we are facing issue that many times header and footer automatically disappears. Unable to find reason.If I checked in and checked out home or other page template then it appears.Don't know why this issue is occurring. How can we fix this issue.Thanks.
↧
Setting runAllManagedModulesForAllRequests="true" in web.config stops loading images
HelloWhen configuring my robot.txt, I see I should add
runAllManagedModulesForAllRequests=@true@ to my web.config. When doing that, the problem is, I can't see any of my images anymore, they are not found.I can direct to my robot.txt-file, but not to my images.Is there a way to get the both ways?Kind regardsKenny
↧
Kentico 9 media library files are 0KB after upload
I think this is a server setting issue, but when image are uploaded, the file length ends up being 0kb. I don't get any errors in the event log. I can see the file written to the server, it just has no data. I don't know where to look for a fix.
↧
↧
Modifying built-in form controls for form module
I'd like to modify the HTML output when certain form controls are selected in Forms-@Fields. I'm trying to take advantage of some HTML5 features; for instance, when an editor adds a Email field, I'd like an @input type=@email@ /@ tag on the page, instead of the @input type=@text@ /@ we get now. I'll likely work this into a module at some point. Any suggestions?
↧
Getting an exception in 8.2 MVC site when requesting children of TreeNode
Creating a new 8.2 site from 8.1 code and running into an issue when trying to get children of a parent TreeNode.[Exception: [TreeNode.Site]: Site is not specified or specified site does not exist.]
CMS.DocumentEngine.TreeNode.get_Site() +125
CMS.DocumentEngine.TreeNode.get_NodeSiteName() +8
CMS.DocumentEngine.TreeNode.RegisterConnectedDocuments(DocumentRepository repository) +25
CMS.DocumentEngine.TreeNode.get_ConnectedDocuments() +119
CMS.DocumentEngine.TreeNode.get_Children() +13
↧
installation kentico
hi
I installed kentico 8.2 and in the web.cong file I put my connection string all the infos of my database. But I have this error message:
The database version '7.0' does not match the project version '8.2', please check your connection string.Help please
↧