Is there any way of customizing inputView when editing a WKWebView? It doesn't have the set inputView as UITextView has, but an alternative may be to just load a custom inputViewController (custom keyboard) for the whole app. I haven't found a way to force use a inputViewController for a specific time/place in the app. Is there a way to do this?
Related
I'm new using ghost, it's possible create this using ghost?
If you are asking if there is an easy way to create a dropdown menu from the ghost backend i am afraid there is none.
You can find a navigation.hbs in the standard theme (Casper) partials folder that you could style as you wish.
Or you can search for a theme that has dropdowns implemented.
The Situation: I've got a mid-sized chunk of html/javascript that contains an authentication script/input (it's a text input, radio control, and a combo box and a few buttons). What it is is less important than the concept that it's a mass of static client side code that the marketing department can pretty easily accidentally the whole thing.
The Desire: I want the users to be able to add it as a whole to a page, but not be able to modify it. When something needs to change, I want to change it in one place and have it be changed on all the pages.
What I've Tried: Widget with a default text. It works, but feels wrong. Users can edit it, and if they do when I fix it one place it doesn't propagate to all the instances. I'm a bit of a Kentico noob, but it seems like there should be a better way to do this.
Also note: I'm using portal engine if that makes a difference.
A widget is the proper usage. What you make your widget inherit from is the key in this case. I'd suggest creating a new widget based on a static HTML webpart. This way you can set the static HTML markup and hide the property from the content editor on the front end. You can do this by going to the Properties tab of the widget and setting the visibility of the field on the form. Don't delete the field, just hide it. It should be a checkbox that says hide on public form or editing form.
** Edit **
As I read through my answer and comments, I realized I meant to say clone the static HTML webpart and set its default text to your javascript. Then create a widget based on that cloned webpart. The text will reside in the web part and will allow you to update it in one place later, if needed.
I will not do it this way because you will be not able to make changes in the future. You can better create a new webpart this can be an empty webpart and then create a custom layout. In this layout you can put you're code. In this way you can always change you're code in the future and then it will be changed on all the places where the widget is placed.
I'd use a new widget based on the Static HTML webpart (make the field read only or hide it as Brenden mentioned), but store the data in a new custom setting.
no coding needed (only a macro to read the custom setting)
able to edit the script on the fly on any instance in the settings module. If you have multiple of these settings you won't need to go through all kinds of widgets to adjust their default setting but find them on a central place.
Cheers!
David
In this case I think it makes sense to create a custom web part to store all your code in it and use it that way. If you want to achieve it without creating a custom web part, you have to store the code in some non-web part and not widget specific object. I like the suggestion of creating a custom setting. You can then access this custom setting via a macro. This macro can be used as a default property of a newly created web part (inherited e.g. from the static text web part, you'd use the text property). You may as well create a widget out of it. Another approach is to use Kentico localization keys as a workaround. you can create a key in the Localization application and access it again, via a macro, e.g. {?customkey.myhtml?}. The approach with a custom setting however sounds cleaner to me.
This syntax should be working to access a custom setting value via macro:
{%Settings.CustomSettings.xxx%}
{%Settings.CustomSettings["xxx"]%}
{%Settings.CustomSettings.GetValue("xxx")%}
How is it possible to select an additional layout in a custom module?
I created a second layout in /modules/custom_module/tmpl/default2, but I cannot select this layout. At advanced settings 'alternative layout' it is only possible to select default.
Thanks a lot. I found the problem. When the layout is called with an _ it is not possible to see the layouts in modules alternative layout. This means layout-new will be found and layout_new won't be found. This is also true by Joomla's core modules. I dont know why, iam using Joomla 3.3.3?!
Alternative layouts are search for in your template. If you want to have two layout options in the module itself you would need to do something similar to the login module where the sublayouts are called. This would probably be a good topic for http://joomla.stackexchange.com.
i am trying to write my own application and using the ext,net.
i am trying to add the calendar of ext.net from the ext.examples.net (remote data )
how can i , when creating a new event, 1st i want to add more fields than the class event contains.
and i want to customize the pop up window when editing , or creating a new event. so i would be able to add all the custom fields that i want and resave in database.
or if it is possible to change all the form that goes pop up, for the add, edit , new events.
any way to d3o that?
REGARDS
You can do that by extending Ext.Net.DateField control.
For changing control rendering and adding custom fields to control you have to inherit from Ext.Net.DateField class and write own ExtJs extenstion for ExtJs DateField.
For changing Events you have to extend Ext.Net.DateFieldListeners and add them to your new control. Of course, you have to add appropriate code to ExtJs control extension.
To do that you can look through Ext.NET source code.
But this is not easy.
More easy in some ways is to just override css and add extraparameters to DirectEvent or DirectMethods. If you want to add some properties to instance of control you can use CustomConfig property. And if some logic of your control is working not as much as you want you can override it by ExtJs Ext.override method.
I'm doing an MonoTouch application and I would like to apply a theme. (So I don't have to have go around and apply a custom color and style to each view background and button.)
Is there any easy way to do this? So should I be setting the color manually, and use a helper class to determine which color?
e.g.
_myButton.Color = ThemeHelper.GetButtonColor();
You may want to take a look at UIAppearance in iOS 5+. It allows devs to set styles for UI elements globally as in the following example:
UIButton.Appearance.BackgroundColor = UIColor.Blue;
For more info, here's a good blog post: http://tirania.org/monomac/archive/2011/Oct-14.html