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

Kentico Email Widget using custom contact fields

$
0
0
Hi,I'm creating an email template using Kentico's email marketing module. In which I have an email widget that retrieves and fills in holiday detail parameters based on some custom contact field values therefore making this dynamic for each user.How can I pass custom contact fields in to the widgets from the recipient? The recipient object only contains set values.Contacts for this email campaign are collected from a form submission that passes in the required values.@div style=@display:none;@@ {% holidayDate = Recipient.GetValue(@holidayDate@); #%} {% holidayId = Recipient.GetValue(@holidayId@); %} {% ItineraryData = customNamespace.GetItineraryItem(holidayId, holidayDate) #%} @/div@ @h2 class=@price@@{% ItineraryData.GetValue(@Price@) #%}@/div@ Something like the above is what I am trying to achieve but I can't seem to work out how to get these custom fields to use in the email widget.Thanks, Luke

Kentico Email Widget using custom contact fields

$
0
0
I'm creating an email template using Kentico's email marketing module. In which I have an email widget that retrieves and fills in holiday detail parameters based on some custom contact field values therefore making this dynamic for each user.How can I pass custom contact fields in to the widgets from the recipient? The recipient object only contains set values.Contacts for this email campaign are collected from a form submission that passes in the required values.@div style="display:none;"@ {% holidayDate = Recipient.GetValue("holidayDate"); #%} {% holidayId = Recipient.GetValue("holidayId"); %} {% ItineraryData = customNamespace.GetItineraryItem(holidayId, holidayDate) #%} @/div@ @h2 class="price"@{% ItineraryData.GetValue("Price") #%}@/div@ Something like the above is what I am trying to achieve but I can't seem to work out how to get these custom fields to use in the email widget.Thanks, Luke

How do I modify and deploy Edit.aspx in Kentico 7?

$
0
0
We are on kentico 7 and for some reason, none of my edits to Edit.aspx are showing up locally or on our dev server. Usually, I just modify a .aspx or .cs file on my local machine and they appear on my local server when I launch the site. Is there a special way to modify/deploy this file? The file full path is: site\CMSModules\Content\CMSDesk\Edit\Edit.aspx.

How do I modify and deploy Edit.aspx in Kentico 7?

$
0
0
We are on kentico 7 and for some reason, none of my edits to Edit.aspx are showing up locally or on our dev server. Usually, I just modify a .aspx or .cs file on my local machine and they appear on my local server when I launch the site. Is there a special way to modify/deploy this file? The file full path is: site\CMSModules\Content\CMSDesk\Edit\Edit.aspx.

Is partial caching with widgets possible?

$
0
0
I'm trying to optimize a site by using partial caching. On the home page there are several widgets that are taking longer to load. I wanted to apply partial caching to these widgets. However, when I go to edit a widget in the widget application there's no options to edit partial caching in the system properties tab like there is for the web parts. I understand that widgets are based off of their web part, but I'm not sure it inherits the partial caching as there's not way to define it on a widget level. There doesn't seem to be any documentation for caching widgets. When describing partial caching the documentation only ever mentions being able to cache web parts this way, never widgets. Is it possible to using partial caching on widgets and if so how? Do I simply put a default PartialCacheMinutes value in the web part?Partial caching is enabled in the settings for the site.

How can we connect angulardart application inside Kentico CMS?

$
0
0
I have a requirement to connect Angulardart application inside Kentico CMS . Any documentation or suggestions please . I am new to Angulardart , so need to understand how the appcomponent can be bootstrapped inside cms .

Multichannel website

$
0
0
Hi, I have a requirement of developing multichannel website. There are 2 channels channel1 and channel2. If users select channel1, they will be shown homepage of channel1 and its associated navigation and content page and same goes with channel2. Both the channels follow similar content tree structure and will have two different home page as well. My idea is to follow this structure.Master Page -- root level--Channel 1 (folder)-level1----Home Page - level2----News and Events (folder) - level2---- etc..-level 2--Channel 2 (folder)-level1----Home Page - level2----News and Events (folder) - level2---- etc..-level 2There will be sharing of content from channel1 to channel2 but not vice versa. Each channel will search respective areas in sitewide search. However, in advanced search there will be option to search both the channels. Channel1 should not see channel2 folder in cms and vice versa, each channels will have their own content editor and publisher. Depending upon the users and they permission type they will be shown the homepage. Each channel will have respective page templates but thinking to use same page types. Will my structure suits this requirements? Sharing of content can be done either by checkbox filed in standard content page for channel1 or creating separate shared repo folder.looking for advice and suggestions. Thanks

Kentico - Fetch profile photo of user when logging in

$
0
0
I have used a login form that has option to login from social media account like Facebook, LinkedIn etc. Now when the user selects the Facebook Login option i want to bring the profile photo of the user. Can i fetch the profile photo from social media account ? Is it possible ?Thanks in advance. Any help will be greatly appreciated.

Ordering documents instead of nodes

$
0
0
Hi guys,We are using K9 with 16 cultures. We are wondering if it is possible to define order of documents in tree view independently by culture instead of impacting all the cultures at one time?thanks

Special characters in email field

$
0
0
Hello guys,I have a problem with email field in my online form. Some customers in Germany have email domains with Germans letters, for example with letter @ß@: @groß.com... But this kind of email addresses is not valid in Kentico email field. How I can change it to allow letters: ß, ü, ä...

Kentico URL Selector Form Control Anchor Tab

$
0
0
Is it possible to activate the Anchor tab of the URL Selector (Form control)? By default only the Content, Media, Attachments, and Web tabs are available as possible options. Looking at Properties of the URL selector (Form control), there seems to be a Boolean (Yes/No) property called Dialogs_Anchor_Hide that is by default set to not "Display field in the editing form" with a value of No. Link objects added using an Editable Text WSYWIG have the Anchor tab available, is possible to activate the same for this form control? If so how?Setting Dialogs_Anchor_Hide to Yes and display to true/checked, adds another set of configuration options when adding the form control to a given type, but it doesn't seem to pull from anything other than the default Configuration property options/object.Or is there another selector from control that Anchor available?Thank you for any help you can provide!

Tag Text instead of Tag id in tag cloud

$
0
0
How can i get a URL tagname=@tagtext@ rather then tagid=44, is there a macro or i need to modify the web part?

show images via transformation

$
0
0
Hi, guys I've created a custom table with a field which I have saved the path of a picture which is related to each record. how could I show the details of the records throgh the repeater with custom query web part transformation, which shows the picture that I have saved path of it in that record.

Possible reasons for occurrences of page return is not display the content(blank page)

$
0
0
Hi, I have a problem with the result page after submit form. Instead of display the content user put in the form, it is display the blank page.I did not know what the error was because it was not written in @event log@ on CMS. So, how can i detemine when to return a blank page or does anyone know what causes can lead to a blank page? I have tried some case and only know one error return a blank page when the page has not applied the page template on CMS. I hope people can give me suggestions to find the reasons that can cause this error to be able to create the best solution.Thanks!!

Resend passcode when multi factor authentication is enabled

$
0
0
When multi factor authentication is enabled, after verifying authenticated username and password then the user has to provide passcode to login. In the passcode page I want resend passcode link and have to generate the passcode is it possible?

Problem facing with autoplay of video in iframe

$
0
0
Hi GuysI have an iframe of vimeo video URL and i appended autoplay=1 in querystring paramater.It was playing automatically when page loads in Firefox, but not automatically playing in chrome.Any ideas to fix this browser dependent issue ?ThanksNaresh Ede

How to display sub itemes for each orderitem in invoce

$
0
0
HII want to know is it possible to display OrderItem Sub itemes in invoice?Scenario : Say we sell online ticket that user can buy.tickets have types and each type have it's own set of codes that is defined via a customtable(ex: customtable_ticketcode). for each type of ticket customer add to his shoppingcart we must pick a number of codes from customtable_ticketcode table based on number of units ordered by customer and display code(s) right below orderitem(ticket) in invoice.A : one way is overriding GetShoppingCartResolverInternal method such as below :protected override MacroResolver GetShoppingCartResolverInternal(ShoppingCartInfo cart, bool specialMacros) { MacroResolver resolver = base.GetShoppingCartResolverInternal(cart, specialMacros); DataTable dt = null; if (!OrderHasBarcode(cart)) { // is cart created from an existing order if (cart.Order != null @@ cart.Order.OrderIsPaid) { InfoDataSet@OrderItemInfo@ ds = OrderItemInfoProvider.GetOrderItems(cart.Order.OrderID); if (!DataHelper.DataSourceIsEmpty(ds)) { foreach (OrderItemInfo oii in ds) { DataSet barCodes = GetNewTicketBarcodes(oii, cart); if (!DataHelper.DataSourceIsEmpty(barCodes)) { if (dt == null) { DataColumn[] columns = new DataColumn[barCodes.Tables[0].Columns.Count]; barCodes.Tables[0].Columns.CopyTo(columns, 0); dt = GetDataTable(columns); } foreach (DataRow dr in barCodes.Tables[0].Rows) { int itemId = ValidationHelper.GetInteger(dr[@ItemID@], 0); CustomTableItem barcode = TicketBarcodeProvider.GetItem(itemId, TicketBarcodeTableClass.ClassName); barcode.SetValue(@APTicketTypeOrderID@, cart.Order.OrderID); barcode.SetValue(@APTicketTypeOrderItemID@, oii.OrderItemID); barcode.SetValue(@APTicketTypeStatus@, @USED@); barcode.Update(); dt.Rows.Add(dr.ItemArray); } } } if (dt != null) { resolver.SetNamedSourceData(@BarcodeTable@, dt.Rows); } } } } else { DataSet ds = GetTicketBarcodes(cart); resolver.SetNamedSourceData(@BarcodeTable@, ds.Tables[0].Rows); } return resolver; } in this way we can not display Codes that belong to OrderItem right below it by using ApplyTransformation.it display all codes below each order item. NOTE : inside ContentTable item transformation we call BarcodeTable.ApplyTransformation(@ecommerce.transformations.barcode_Table@).inside barcode_Table transformation we don't have access to OrderItemID to specifiy that only display bacodes for this orderitem.B : Display all codes right after all cart itemes displayed.(not the case)Is there any other toimplement this?

Setting a url pattern for all new instances of a specific page type in Kentico?

$
0
0
I've got a custom page type (olliEvent) that end users use to make new events in our Kentico 9 CMS. Because of the way our site is built, the url path that would be generated from the site tree would be incorrect. I need to automatically set a custom url path each time the end user creates a new olliEvent page. These pages have exclusive use of the olliEvent page type and a olliEvent page template, so we can set parameters on those if we need to.The file tree is: /subsites/olli/class-listing/(pageName)I'd like for the url to be: /olli/class-listing/(pageName)I can think of two ways to approach this:1) Exclude the "subsites" folder when creating urls based on the file tree. Is there a way to do this?2) Make some sort of macro type url that is set at the page type or page template level. Is this possible? Thanks! Todd

E-mail Marketing Unsubscribe Link does not work in Kentico 11

$
0
0
I have setup an Unsubscribe Page for an e-mail marketing campaign in Kentico 11. The e-mail template substitutes in the unsubscribe link using {% UnsubscriptionLink %}. The e-mail campaign sets the unsubscribe link as ~/Newsletter-Unsubscribe.aspx (which is the correct relative url). Setting the Base Url does not have any impact.No matter what I try, the unsubscribe link goes through a Redirect handler. For example (I removed the real email address and the domain from the link for this post)CMSModules/Newsletters/CMSPages/Redirect.ashx?linkguid=d77618e3-8059-464d-b078-0f0d9579ec01@email=test%40test.com@hash=e31d749c5c7617422d1f1d3c7b4e825b26726167a332fc363330482c670a1c48The link does not unsubscribe the user. It redirects the user to the home page. It looks like I'm following the documentation correctly. Any help would be greatly appreciated.

Adding comma separator to integer field in form

$
0
0
Using K10 and created a custom form with some tables and values that will be input by end user. The values are integer data type, but would like to be able to add comma separator (basic masking) at every 3rd digit: 1,000 and 1,000,000 on the form as the user types it in vs 1000 and 1000000. Would even be able to accpe adding the comma after user tabs/moves to next field.Found this formatting note earlier: string.Format(@${0:#,##0.00}@, Eval
Viewing all 11898 articles
Browse latest View live