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

Implementing JavaScript/jQuery to control Repeater with Carousel in Kentico

$
0
0
I wanted to know if I can control or customise the web part repeater with carousel properties using a JavaScript/jQuery ? such as speed or easing or the way the images aligned

If no value then remove space in email notification

$
0
0
Currently i am using one email notification for form where i have around twenty attendees.I used these value to show in email notification.Below is my code:{% AttendeeFirstName %} {% AttendeeLastName %} {% AttendeeFirstName2 %} {% AttendeeLastName2 %} {% AttendeeFirstName3 %} {% AttendeeLastName3 %} {% AttendeeFirstName4 %} {% AttendeeLastName4 %} {% AttendeeFirstName5 %} {% AttendeeLastName5 %} {% AttendeeFirstName6 %} {% AttendeeLastName6 %} {% AttendeeFirstName7 %} {% AttendeeLastName7 %} {% AttendeeFirstName8 %} {% AttendeeLastName8 %} {% AttendeeFirstName9 %} {% AttendeeLastName9 %} {% AttendeeFirstName10 %} {% AttendeeLastName10 %} {% AttendeeFirstName11 %} {% AttendeeLastName11 %} {% AttendeeFirstName12 %} {% AttendeeLastName12 %} {% AttendeeFirstName13 %} {% AttendeeLastName13 %} {% AttendeeFirstName14 %} {% AttendeeLastName14 %} {% AttendeeFirstName15 %} {% AttendeeLastName15 %} {% AttendeeFirstName16 %} {% AttendeeLastName16 %} {% AttendeeFirstName17 %} {% AttendeeLastName17 %} {% AttendeeFirstName18 %} {% AttendeeLastName18 %} {% AttendeeFirstName19 %} {% AttendeeLastName19 %}In the above it is working fine if value is present any of the attendees, But here one issue is if user used some two attendees so two attendees is showing but for other 18 it is showing big blank space then after that whatever field used that is showing. How can i remove this space if no value present for that attendees from email notification. In the below code i used as for loop but not getting the value. {% size = GroupSize;attName="";j=0;for(i=0; i @ size; i++){if(j==0){attName+=AttendeeFirstName+ " "+AttendeeLastName}else if(j@0){ attName+=AttendeeFirstName+j+ " "+AttendeeLastName+j}j+=1;}; attName#%}

HTML button submit to receive an email

$
0
0
Hi,I have a HTML floating form, basically it is contact us form and it is in a template after submitting it i need to send a mail to specific email id, Please let me know is their any way to do it, I don't want to use kentico form.

It is possible to export/import/limit any specific page/document,or specific branch in content tree

$
0
0
I want to export site with specified pages/document is there any why to choose specific page in a content tree during site export. Please suggestThanks

ASPX Page Template not showing in Kentico 9 Administration.

$
0
0
Hi Guys,I have web site running with master page type as portal engine but I want to create aspx master page template to implement functionality in code behind.I have following queries. 1. To create aspx Page template do I need to have aspx master page template because while creating aspx page you need to select Master page for it. 2. I have created ASPX master page template according to this link. https://docs.kentico.com/k9/developing-websites/developing-websites-using-aspx-templates/creating-master-pages-for-aspx-templatesBut I am not able to select Master page template in template type @ASPX@ @ @ASPX + Portal Page@, as Master page template created using Visual Studio is not showing in Kentico administration Page templates.Can you please help into this.Thanks in advance. Manmath

Kentico 10 UnitTests don`t work OneTimeSetUp NullReferenceException

$
0
0
I have a problem running the Kentico UnitTests. I get the following error: NUnit Adapter 3.6.1.0: Test execution started Running selected tests in xxxxxx.dll NUnit3TestExecutor converted 1 of 1 NUnit test cases SetUp failed for test fixture xxxxxx_tests.ContentCreator_test System.NullReferenceException : Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. bei CMS.Tests.TestsCategoryCheck.GetCategoriesFromConfig(String keyName) bei CMS.Tests.TestsCategoryCheck.@.cctor>b__8() bei System.Lazy1.CreateValue() bei System.Lazy1.LazyInitValue() bei System.Lazy`1.get_Value() bei CMS.Tests.TestsCategoryCheck.CheckAllTestsCategories(Type type) bei CMS.Tests.AutomatedTests.InitFixtureBase()How can I fix it ?I installed the Kentico.Library.Tests and wrote this test:using CMS.Membership; using CMS.Tests; using NUnit.Framework; [TestFixture] public class MyUnitTests : UnitTests { [SetUp] public void MyUnitTestSetUp() { // Prepares faked data for the UserInfoProvider Fake@UserInfo, UserInfoProvider@().WithData( new UserInfo { UserID = 123, UserName = "FakeUser", UserNickName = "FakeUser" }); } [Test] public void MyTest() { // Calls a UserInfoProvider method to get user data var users = UserInfoProvider.GetUsers(); } }

Ignore Prefix on the Homepage Page Title

$
0
0
I am setting up the page titles in my Kentico site. I was able to find the location to control the title structure across all pages but I do not want the homepage to follow that structure. This is the structure I am using: {%pagetitle_orelse_name%} | My Site Name HereFor the homepage, I do not want it to follow this structure. I have the "Inherit" boxes unchecked on the homepage and entered in the special title.It is still coming up with the title I entered + "| My Site Name Here"Any ideas?Brian

Any way to make a page template inherit from another page template without the parent existing as a page in Kentico?

$
0
0
I have a generic page template that I wish to reuse for lots of pages, but each page also needs to have its own template within that. The generic page template might include a page banner and breadcrumbs for example.The way I'm currently doing this is having every page be an ad-hoc clone of the generic template, however, this isn't easily managed when changes need to be made to the generic template itself as I then need to make that change on all ad-hoc templates too.I could get around this by creating a new page that uses the generic template at the parent level and then nest all my pages under it, acting as a master page, but I feel like that's polluting the content tree unnecessarily as I already have a master template at the very root.Is there a way to make page templates inherit from other templates without actually creating a physical master page in the content tree?If it were possible to make specific webpart containers not shared to all pages that use the same template that would work too.

request handler

$
0
0
Deleted question. Had my if-statement brackets in the wrong place. Ugh, I need some caffeine!

Check if on Admin Site

$
0
0
Hi,(version 8.0)I have some code in a request handler that I only want to run on the LIVE site, not the ADMIN site. I check @SiteContext.CurrentSiteName@ to make sure it's set to @my_site_name@. And I check CMS.PortalEngine.PortalContent.ViewMode to make sure it's set to @LiveSite@But the code is still running for some admin pages. I printed a message to the event log to test this, and sure enough ViewMode and CurrentSiteName are set to @LiveSite@ and @my_site_name@ on some of the admin pages. Is there anything else I can check to see if I'm on an admin page?Thank you.

Create Page without master template - blank

$
0
0
So the problem is that I need to create content page that will be opened in light-box. If I create it as simple page, it inherits Master layout, and has header and footer content, that we don't need in light-box.

Search Index

$
0
0
Is it possible to stop the indexing of certain parts of an HTML page. i.e If there are comments included within using the HTML Comment Tag

Image map with widgets for popup windows

$
0
0
[Sorry for posting same question multiple times, there were some error when first question was submitted]Hello to everyone.I need to make the following page (example is shown on the image bellow):Of course, this is an image map and creating image map is simple. But the content of the pop-up windows should be edited by the user in the CMS and this pop-up windows should be Kentico widget (fields: headline, text and image). Creating this widget is simple, but how should I make this thing to work in order that the user has possibility to @add@ this widget (from CMS) to the page (on red circle marks on the image)?If would be very helpful even if someone point me to which topic/direction I should go (investigate).(I'm using Kentico 8.2.42)Thanks in advance. Adis

Kentico Site Import

$
0
0
We tried to migrate our site from one server to another server. The migration successfully completed but the navigating to the site admin we go the following error. Also How do we change the URL for the site that has been imported?Could not cast or convert from System.String to CMS.ApplicationDashboard.Internal.UserDashboardSetting. Thanks in Advance.

Eval Syntax error

$
0
0
I can get the following to work: @%# IfEmpty(Eval(@EventWebsite@), @@, @@a href=\@@ + Eval(@EventWebsite@) + @\@ class=\@applybttn\@ target=\@_blank\@@Website link@/a@@) %@I would like to also load the name dynamically too. I have tried many combinations to get the @EventName@ to show up but keep getting syntax errors. @%# IfEmpty(Eval(@EventWebsite@), @@, @@a href=\@@ + Eval(@EventWebsite@) + @\@ class=\@applybttn\@ target=\@_blank\@@{% Eval(@EventName@) %}@/a@@) %@Can someone share what I am doing incorrectly?Thank you

How to programmatically add Bizforms on custom web part

$
0
0
Is there any way to programmatically add a Bizform to a custom web part? I can see how to load the form, but there doesn't seem to be any way to then add it to the Controls.

Web parts not Deleting and moving

$
0
0
Hi,i have different web parts in a page i am trying to move or delete the web parts but it is not deleting and not even moving please help me why it is happening.

display subscription link for blog without login

$
0
0
I have a requirement how do I visible subscription link for all user without login but comment only possible after login.I am usin kentico 10. Please help me.

How to set Custom layout for On-line Form.

$
0
0
Hi,I am creating Online-form based on @Forms@ application in Kentico administration. I have added fields using @Form builder@ and also I have provided layout for my form.I am facing following issues. 1. Form does not follow custom layout added in @Layout field@ 2. Message which is text area field can be minimized and maximized by dragging its right bottom corner. It does not follow width and height given in CSS as mentioned in layout. 3. My form is enclosed in element along with @Submit@ button. But @Submit@ button is always out of this element. It does not follow position given in Layout.Thanks in advance.Best regards, Manmath

Product data spontaneously changes

$
0
0
Using v8.0.19Product data is sometimes changing. Looking at the version history doesn't show a change, but we're seeing the product names and prices occasionally change in the UI. The really weird thing is that if we look at the product fields in the backend, they appear correct and if we simply open and re-save a product, the Name and Price go back to normal for some period of time until they randomly change again (usually days or weeks - hard to see a pattern).This is really frustrating! Customers are able to add mis-priced items (they always seem to change to $0) to their carts and buy them.Is this a known bug or something unique to our environment?
Viewing all 11890 articles
Browse latest View live