Automatically applying a template (theme) in Silverlight 2 (RC0)
Is there a way to automatically apply a theme/template/style to all controls of the targettype, so I don't have to specify Template=..., Style=... on all controls? ...
Is there a way to automatically apply a theme/template/style to all controls of the targettype, so I don't have to specify Template=..., Style=... on all controls? ...
I have an application that gets rolled out in multiple countries. There will be a setting in the web.config file, that defines the country. The country will not be in the URL. Some of the the views change depending on the country. My first attempt is to use a folder inside the views folder that contains views, if they differ from the d...
Since the old version was apparently way too hard for people to understand, here's the HTML, CSS, and JavaScript combined: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>test title</t...
Anyone have any ideas on how I might embed a region into a view .tpl.php file? I accomplish it easily enough in a node .tpl.php by adding something like this to theme_preproces_node(): $vars['promos'] = theme('blocks', 'promos'); No problem at all. However, there obviously isn't a theme_preprocess_view() function, and I get memory e...
A colleague made a small module to retrieve twitter search results based on user configurable search terms and display them in a block. He is doing the searching with javascript to keep that traffic on the client side, something like: $.getJSON('http://search.twitter.com' etc.. Then when the json results are returned inserting them int...
I need to change the layout of the Search Block in Drupal. It’s currently ordered Search Button > ‘Search this site’ > Search Input but the designs I have want it to be Search Input > ‘Search this site’ > Search Button How do I go around changing the order in Drupal? I can change the search-block-form.tpl.php so the submit button i...
I 'm using zen as the basic theme to make a new theme for my site. The problem is i want background images for header and footer that are not getting displayed until i specify a height and width for them.Moreover, the height and width specified in the CSS inside the #header and #footer have to match the exact dimension of the original im...
Hi guys, im here with a nasty question. Drupal handle comments giving the user the choice to display thems just in 4 ways: Flat list - collapsed, Flat list - expanded, Threaded list - collapsed, and Threaded list - expanded. Im using the last one, whom provide a markup like: <div class="comment"> <!-- comment's content --> </div> ...
(Note: I originally posted this on drupal.org before remembering that I never get a response over there. So, sorry for the cross-posting) Hello, is there a way (built-in or otherwise) to add preprocessing functions for particular cck node types? I am looking to do some preprocessing of a field within my cck node type. Currently I can ei...
Hi Guys, I'm developing a WinForm app that has an MDI with a menu strip and some menus. The app has to be themable so the user can choose their own background colour, font colour and font. I'm having a bit of a problem theming the menu that is currently dropped down. I've been using the backcolor property and set it for both the menu ...
We've created a custom theme for a WPF application. The styles in this theme use various bindings. On startup of the application a lot of Exceptions like this occur: System.ArgumentException occurred, Message="The requested value \"RecordFixToBottomPrompt\" could not be found.", Source="mscorlib", at StackTrace: bei System.Enum.Parse(Ty...
I'd like to style some components differently in the admin. How could I generate a unique id/class on the body element so I could style admin elements separately? ...
I have an Author content_type that I'm switching out for username in articles. The problem is that a story can have multiple authors, and the following code in template.php will only generate the first author. How can I get this to output to be readable as "By John Smith, Jane Doe and Mary Poppins | Feb 19, 2010"? function mytheme_date(...
I am trying to add drop down menus to a drupal theme which uses text sliding door CSS rounding. The current version uses a primary links injection of the span into the a tags, which works fine. But doesn't support drop down menus. Working code: <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?> I...
I am developing an application using jQueryUI. I am also using the Themeroller. I want to have as many of my styles as possible defined using the theme, so that if I need to change some styles, I simply have to create a new custom theme (or download an existing theme). I am trying to use the "selectable" interaction in jQueryUI. It is w...
it doesn't seem that jquery ui themes does anything to multiselect listboxes. does anyone know the reason why or have any way of having multiselect listboxes match the theme of other ui elements when using jquery ui theming css? ...
I've been reading about Drupal theming and preprocess functions and noticed they listed engineName_engine_preprocess & engineName_engine_preprocess_hook in the order of preprocess functions but I'm not entirely sure what the engine layer is? I understand about the core, includes, modules and themes. Many thanks ...
The basic idea is to create a page that gives the user the ability to choose a skin or theme from a menu. When the user selects the desired skin/theme, it should be applied to the page, just like the jquery ui theme roller page. So, to be more precise, what I am trying to know is how to apply dynamically the style to a page - how to lo...
What I want I have several OG groups in which content can be published. I would like to display which OG groups a node has been published for when viewing the node page. Like in "This page is published for: Department A, Department B." The code snipped below shows the data I have in the $node object in node.tpl.php. This data is gener...
Hi, I can apply a custom theme to a certain content type in Drupal by copying the node.tpl.php file and placing the name of my content type right after the "node" in the file name and appending an hyphen. Ok, the new name is: node-page_two_columns_images.tpl.php. But that won't give me much flexibility if I am not able to edit the way e...