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

Get page output html

$
0
0
When a user fills in an e-mailadress and clicks a button, a PDF of the current page should be send to this e-mailaddress. The current page output also depends on sessions, so it's not a static page.I already have a service which can create the pdf by sending the html.Is there a way to get the output html at the moment of the button click ( in a user control )?Or are there any other solutions?

Get fieldvalues from items in custom macro

$
0
0
Hello, We're creating a custom breadcrumb function where we need field values from the items we want to display. Underneath you can see our code to receive the link @ title:Item is of type TreeNode. @@div class='pull-left item'@@a href='@ + item.RelativeURL + @'@@ + item.GetValue(Constants.Title) + @@/a@@/div@@; Our problem is as following: The GetValue function to receive the Title does not always answer correctly. In most cases it returns NULL.Anyone has an idea what is going wrong?

Why does the newsletter subscription send multiple confirmation emails?

$
0
0
This is a follow up to my previous questions. I am trying to understand this process. The CustomSubscriptionForm webpart allows a user to subscribe to multiple newsletters via one form. Why then, does the back end process send multiple confirmations for a single action? Is this intended? If so, why? Also is it possible to access this process and make modifications. The code for the aforementioned webpart does not appear to do the actual mailing so I am confused at to how I may adjust the process to meet the needs of my client.Thank you.

Custom Table Data Import Web Part

$
0
0
Hello, I downloaded web part - Custom Table Data Import. When I select import Excel file, it tells me that the import was successful, but no data is being entered in my custom table. If I manually enter some data into the table and then upload Excel file and click @overwrite@ button, it removes the data from the table, but no rows from Excel file get inserted.

Updating Media Library Files

$
0
0
I need to update an existing media library file after I run it through an image optimizer. I can't find any API methods that let me update the existing file, without just creating a new one. I can't just write an image to the disk because I'm using azure blog storage, so the files aren't stored locally. Does anyone know any methods of update a media library file using the Kentico API?Thanks, Jon

Can I inject a JS Object on the server-side?

$
0
0
I'm developing a single page app hosted by Kentico. It persists data to a custom table.I would like to inject a JSON representation of the a custom table into the page markup, to alleviate the need for additional XHR calls to get the custom table data.I've done this in the past by writing repeater transformations to wrap column values within a JS array like @@Is there a server-side api that will automatically output custom table into JSON format?

Kentico 9 Hierarchical Menu Root Path Value

$
0
0
I am new to Kentico, so please bear with me! What I am trying to do is create a hierarchical menu that has at least 3 levels. So far I have been able to display everything underneath the page I set my content path to, but how am I able to include that value at the root of the menu? In the example below you can see that I am on the @Academics@ page. What I want to do is have a menu list on the left of the page displaying what you see below, but I always want to be able to include @Academics@ as the root of the list. My content path is current set to @/{0}/{1}/{2}/%@ If I set the path up one level I see @Academics@, but I also see all of the other pages that are at that same level and that's not what I want.Home / Programs @ Courses / Academics (WANT SET TO ROOT OF BELOW LIST) Academic Departments AccountingBusinessChemical Dependency CounselingCredit ProgramsAnother question I had @once the previous issue is fixed.@ Is it possible to when I'm under the @Academics@ page to only see the list expanded like this: Academics Academic DepartmentsCredit Programs...but after I click on @Academic Departments@ to have the list expanded like this: Academics Academic Departments AccountingBusinessChemical Dependency CounselingCredit ProgramsI apologize for all the questions, but I have only just started using the product at work and certain things wasn't sure what to search for. I appreciate everything!!!

Related files to a page

$
0
0
HiFor a specific customer we need to show related documents of a certain page. I know you can add them as attachments, but our customer wants to select multiple files which relate to a certain page from the media library (because some files are reused on other pages). Also when you use the standard attachments, you'll need to upload the files all the documents you want them on. Also when a certain documents relates to several pages you will need to change the attachment for all those pages.The attachment datasource is not something we could use because our files would come from the media library.Do you recommend we should use the default attachments feature or is there an other solution? Maybe something like related pages? ===@@@ Related files or something like that?Kind regards, D.

Kentico & CMSForm: Load a different form after page load?

$
0
0
Using Kentico 7, I have a cms form on the aspx page like so:@cms:CMSForm runat="server" ID="cmsFormCreate" FormMode="Insert" ShowOkButton="false" ParentNodeID='@%# documentsFolderNodeID %@' /@ On the backend, I'm setting the form's parent node id (so I have a base location to save to which I will change later.I get the form/document name by callingCMS.SettingsProvider.DataClassInfoProvider.GetClasses("*", "className LIKE '%MyDocument.%'", "", Integer.MaxValue).Tables(0).Rows That returns a dataset which I negotiate for the document name, class id (if I ever need it) and so forth.I want to change the form that is loaded on postback. That is to say that I have several document types in the CMS Site Manager and I want to swap between them. I want to display one on page load (this works fine). However, when I fire the mechanism to change the form which is displayed (dropdown list OnSelectedIndexChanged), it fails to load the new form.Private Sub PopulateCMSForm(ByRef targetForm As CMS.FormControls.CMSForm, sourceDDL As ListItem) targetForm.FormName = sourceDDL.Value 'targetForm.LoadForm() 'same results with or without this End Sub I have verified that the form I expect shows up correctly by hard coding the form name (Document type code name) and the form will display just fine the first time the page loads.How do I manage to change the empty/blank document type that the CMS Form object is loading on post-back?

Get a document URL of a specific page

$
0
0
How can you get a url of a specific page that is NOT your current document. I know how to get a url for the specific page that I am on, but I want to basically pick and choose which page I want to get the link for.Thanks!

EventAttendeeInfoProvider.GetEventAttendeesCount Kentico 9 example

$
0
0
I am working on a site that has been upgraded to version 9.01 and the API example on the site that shows the changes is not working. EventAttendeeInfoProvider.GetEventAttendeesCount() is not supported.http://devnet.kentico.com/documentation/api-changes/kentico-9/9639Any help would be greatly appreciated. The method is below./// @summary@ /// Displays registration section depending on situation /// @/summary@ protected void DisplayRegistration() { //External Link, so simply display the link if (mEventExternalLink.Trim() != @@) { lblError.Text = @@br/@Click @a href='@ + mEventExternalLink + @'@here@/a@ to Register for this event.@; lblError.Visible = true; mErrorOccurs = true; } else { DateTime now = DateTime.Now; // Display registration form if opened if ((mOpenFrom == DataHelper.DATETIME_NOT_SELECTED || mOpenFrom @ now) @@ (mOpenTo == DataHelper.DATETIME_NOT_SELECTED || now @= mOpenTo) @@ (now @= mEventDate)) { int actualCount = EventAttendeeInfoProvider.GetEventAttendeesCount(EventNode.OriginalNodeID); // Display registration form if mCapacity is not full if (actualCount == 0 || mCapacity == 0 || actualCount @ mCapacity || mAllowRegistrationOverCapacity) { // User Logged in and CAN Register lblError.Text += @@br/@@a href='@ + RegisterPageURL + @?EventNodeID=@ + EventNode.NodeID.ToString() + @'@@img src='http://devnet.kentico.com/img/button_register_now.gif' border='0' /@@/a@@; lblError.Visible = true; } else { // All Seats Taken (FULL) lblError.Text = this.FullCapacityText; lblError.Visible = true; mErrorOccurs = true; } } else { // Event in the past lblError.Text = this.NotOpenedText; lblError.Visible = true; mErrorOccurs = true; } } } Thanks, Chirs

Access the custom fields of the product from a SKUInfo object within ShoppingCart

$
0
0
We have custom fields and non-custom fields on a product page and thousands of products (approx. 250,000+ products). Information about a product contains things like warehouse and just attribute type information. When I look at an item in the shopping cart, I cannot access any of those custom fields. I have tried the obvious ShoppingCart.CartItems[0].GetValue("Warehouse") which returns null. I also tried ShoppingCart.CartItems[0].SKU.GetValue("Warehouse") which also returns null.When I go to the Pages application and then to the product page, then to the form tab I can see all the SKU fields and my custom fields displayed.

Kentico forms disable the data capture and just send the notification

$
0
0
Is it possible to disable the data storage and just have the data sent with the notification email? I'm hoping to avoid writing custom code that will just send the form data as an email.Some of what is being collected is confidential and there are worries about it being stored in the DB. I know, don't ask.

Forums list + search box

$
0
0
I have some functionality to implement and I don't know what buildin functionality can I use (if I can use any at all).My requirements are: - text field to search forums (forums means topics, not posts) - search should search only in forums topic, teasers or tags (if there is a way to add them on the forum) - search results should show only topics, not posts and if user didn't specified search text, then we should display all forums (topics) - forums list has custom templateQuestion is which (build-in) web parts should I use and which search index should I use? I realize that I may need to clone web part to implement custom template or create custom search index.

CSS stylesheet changes are not reflecting

$
0
0
Hi,I'm updating CSS stylesheet in production environment but it fails to load the latest styles when I run the application. And I don't see my new style blocks in browser developer tools. But I can see my latest changes in my stylesheet inside Kentico.Any idea why Kentico is not giving latest stylesheet to the browser.Thanks

MaxMind's new free GeoLite2 database is a MMDB file

$
0
0
My team is currently on Kentico 8.2, and we get geographic data by using MaxMind's free GeoLite database. However, we’ve learned that the GeoLite data is no longer maintained. MaxMind has released a new free database format, GeoLite2, which seems to be the one that they're regularly maintaining.For example, we have a Mexico IP address that is incorrectly listed as a United States IP in the GeoLite database. We submitted a data correction to MaxMind, and they updated the GeoLite2 database, not the GeoLite one. We determined this by looking up the IP in both GeoLite and GeoLite2; in GeoLite, it was still incorrect, but in GeoLite2 it was correctly listed as a Mexico IP.I would think, then, that it would make sense for us to use the GeoLite2 database moving forward. But there’s a problem: while the binary file for GeoLite is a DAT, the binary file for GeoLite2 is a MMDB, which is a MaxMind-created format.In the relevant Kentico 8.2 documentation found here, https://docs.kentico.com/display/K82/Using+geolocation+for+contacts, the instructions all indicate using a DAT file. There’s nothing that references or affirms that using a MMDB file, or any other format, is acceptable.Is there a solution to this? Does anyone have any suggestions?

Update Macro Signatures after Upgrade Kentico (V.80 to V8.1)

$
0
0
Hi:Is it neccesary to update the macro signatures after a Kentico upgrade (from version 8.0 to 8.1), even if in Event log does not appear any error related to MacroResolver?Thanks

First chance exception of type 'System.IO.FileLoadException' occurred

$
0
0
I am using Kentico in my project. Client asked to upgrade the version of kentico from 7 to 9. I downloaded the nuget package and updated all the references of CMS i.e. Kentico to that of version 9.But since doing that when I execute the project, I am getting an exception. Could not load file or assembly 'CMS.DataEngine, Version=9.0.0.0, Culture=neutral, PublicKeyToken=834b12a258f213f9' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"CMS.DataEngine, Version=9.0.0.0, Culture=neutral, PublicKeyToken=834b12a258f213f9CMS.DataEngine is already added to the references. I have already tried all the solutions to this type of exception from other questions that were posted earlier but no progress.

Implement smart search on custom module tables search in kentico 9

$
0
0
Hi, Anyone can share your opinion regarding smart search. We have created different custom modules and we have different table for each module. Now need to implement the smart search in a page to fetch the details from that particular table from the custom module table.Thanks

Sign Out button not showing

$
0
0
I have a site based on the default intranet site. Some users requested the ability to log out, I checked the root document and the sign out button web part is in the header but it’s not showing on the site. It is set up to use windows authentication, would this be why the button doesn’t show?http://i.imgur.com/gUcywG0.pnghttp://i.imgur.com/lL5xwE4.pnghttp://i.imgur.com/C1cGD74.pnghttp://i.imgur.com/AKo9OkL.pngThanks very much
Viewing all 11911 articles
Browse latest View live