customization

ckan 2.3 problems with adding the example_template plugin

∥☆過路亽.° 提交于 2019-12-12 03:38:54
问题 I am trying to customize a ckan 2.3 installation with a template. I followed this documentation. When I try to restart the ckan I get a whole bunch of error messages ending with "ImportError: No module named plugin" I have not changed any of the files named in the error-messages. What can I do to get a custom template running? --- UPDATE --- I am importing the template with ckan.plugins = stats text_view image_view recline_view datastore example_theme The ckan is started with paster serve -

Customize Outlook ribbon for a MailItem (via menus or VBA)

倖福魔咒の 提交于 2019-12-12 03:09:24
问题 Outlook has one ribbon displayed when the email index is shown, and a different ribbon when a MailItem is open. I managed to add buttons to the Miscellaneous group in the ribbon for the index, via File -> Options. Can I customize the ribbon for a MailItem via File -> Options? Can I do this via VBA? Can this VBA be executed automatically at launch time? 回答1: I managed to do it via File -> Options. It was very simple, I had to access File -> Options from within the MailItem instead of the main

Use if else in magento homepage content

眉间皱痕 提交于 2019-12-12 02:18:55
问题 I am trying to display a grid view with sale items shown on the homepage filtered by category. I tried to put php if/else block in the homepage content in CMS section of admin, but it doesn't work. Any PHP code in the CMS is being commented automatically! Is there any other way to filter homepage sale/featured products by category? I am using Magento 1.7.x I have added the following code into the homepage which works: {{block type="catalog/product_special" template="catalog/product/list1

matlab making a custom vpasolve

╄→гoц情女王★ 提交于 2019-12-12 01:48:40
问题 LAST EDIT Posted a link to another question with the same problem. Some things should not be done in matlab... maybe someone else will ask this so my conclusion is in the link above. My coding is hard to read for me and I often make mistakes, so I think a function would help. EDIT 2 moved old question to the end of it all and improved it I would like vpasolve to at least automatically add equations or remove them if the unknown is relevant to be calculated. So let's say I have 4 unknowns: r1,

how to match a input value with the regular expression in dynamics crm 2011?

我的未来我决定 提交于 2019-12-12 01:09:24
问题 At the contact form I have a field name as Extension (new_ext). and at the onChnage event I want to do check weather the user has enter the number or anything else. I have the following piece of code. function formatPhone(phonenum) { var ext =phonenum.getEventSource().getValue(); var reg = /^[0-9]$/; if(ext.match(reg)) { alert("Valid"); } else { alert("invalid"); } } It returns me always invalid even if I enter a letter or a number or both. I want to seek your kind suggestions and help

Symfony 1.4 - are forms always in <table>?

空扰寡人 提交于 2019-12-12 01:08:32
问题 I'm using sfDoctrineAllowPlugin. I need form which has Twitter's Bootstrap semantics. I looked into template and I found, that there is only $form , which is a <table> . How can I format it in my way? I don't want to use table, rows and cols. 回答1: There are plenty of render* functions available to display each item in your form. renderRow renderLabel render renderError etc ... But you can also define a decorator (a custom sfWidgetFormSchemaFormatter ) for your form to define the way each item

Datepicker divider color change according to application theme

余生长醉 提交于 2019-12-11 23:55:09
问题 I know this question has already been asked and even answered, but I was unable to figure out much from the solution provided. I was trying to follow this tutorial but I could not figure out exactly what I need to do. I have already downloaded the Android-DatePicker library and changed the image in the drawable folder, but after that I could not perform the steps required. I have this sample activity : import java.util.Calendar; import android.os.Bundle; import android.support.v4.app

How to paint notebook-like lines as TextBox background?

南笙酒味 提交于 2019-12-11 22:14:52
问题 A bit similar to this question. My aim is to evocate a notebook-like look of the textbox. OneNote does something similar, by setting background image of the editing surface. Of course it is not possible to align the lines in OneNote because the text can be freely formatted. I would like to do this with constant font (no formatting) in WPF. How to paint lines in textbox background that will match the lines of text? 回答1: I asked the same question here: Repeat a background brush in WPF It would

How to customize the Delete button shown when swipe a UITableViewCell

核能气质少年 提交于 2019-12-11 20:54:58
问题 I have a table view and enabled the swipe to delete feature by providing an empty implementation of - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath of the table view controller. I can see a red 'Delete' button when I swipe left the table cells. But the button's label is 'Delete' despite that the system locale is not English. I have too problems. 1. I want the Delete button to be localized

Using OpenCart 2.0. How do I display customers email on a category page?

允我心安 提交于 2019-12-11 19:31:19
问题 I'm using OpenCart 2.0 and I'm trying to show a user email on a category page when a user is logged in. The code below I believe works for it to show a users email on the success.tpl. How can I display it on a category page? Thanks for your time. IN: /catalog/controller/product/category.php I HAVE THIS: $this->load->model('account/order'); $order = $this->model_account_order->getOrder($this->session->data['order_id']); if($order) { $this->data['email'] = $order['email']; } THEN IN:/catalog