D7 Ubercart questions Quantity field on teaser page.

I am trying to find a way to show the quantity field on the products teaser page ie fakelink.net/products All i have found is outdated info and people trying to remove the quantity field from the teaser page. I have went into views but all i see for options are show quantity purchased which is s static number. I would like a one page check out for people so they can select the product enter the number and click checkout all on the same page.

newbie: trouble generating custom html tags for my content type

Hi

I am new to drupal. I have been building web sites using html, css, javascript, and ajax for over 10 years. I have read the book "Pro drupal 7" development very carefully but can not figure how to implement the following

When a user logs in I need to generate the following

 <img src="http://152.27.120.126:8080/graphs/usageDataGraphics.bdc?userEmailAddress=xx@yyy.com&graphName=Usage&timeUnit=YEAR&widthPx=600&heightPx=450" /> 

and display it on the user home page. This is fairly easy to do with ajax and dhtml.

I thought it would be a good idea to create a content type so that the admin could create a node/widget and configure the parts of the URL for example the width, height, ...

my naive assumption is that I should implement a content type, this would allow the admin to configure the graph parameters, then add the block hooks so that they could position the newly created content.

I implemented the hook_install, hook_node_info() and hook_form() am able to create nodes of my type "aed"
I thought the node_view() hook would be where I generated the img tag. Bellow is my sample code. It does not work correctly, the generated html is in the wrong place on the page

<?php
function aed_view($node, $view_mode) {

switch($view_mode) {
case 'full':
_aed_load_graph_impl($node);
break;
}

Deprecating input formats

I've worked on a several Drupal projects where I have eventually needed to deprecate some of the input formats which were set up when the project was initially launched.

For example, the Image Assist module is an has done yeoman's work over the years in helping users insert images inline into their content. It still has more than 19,000 sites that report using it. However, there is no Drupal 7 port of Image Assist and no indication that anyone is planning to develop one. For that matter, my own interwiki module was originally written at a time when WYSIWYG editors for Drupal did not exist, and I think most people who are using it would be better served if they could just disable it and use a WYSIWYG editor to create hyperlinks within their text. To do so, however, they would need a way to fix all of their existing content that relies on it to filter their content and turn [[phrases like this]] into actual hyperlinks.

I think there would be some value, therefore, in having an "input format deprecator" module whose purpose would be to iterate over the content in a Drupal website and apply input format/filter transformations to all of the content, so that the input format or filter can then be turned off.

Split page content (node) into tabs?

Hi,,

Is it possible to split a page content into tabs? I know about QuickTabs but this is not good for my purpose, as I want to have a multiple pages with tabs. Use case scenario is a Product page which has several tabs (Details, Reviews, Options). Is there such solution for D7?

thanks in advance:)
wyktor

Hard code block in template

I have a block that I want to hardcode on the page. I want it to be a block so content authors can edit it. I want it hard coded because there will never be a situation where the block should not be on the page. How can I manually render a block in the php template?

zen theming problem

I've a problem with my main menu and css. Look at http://weltjugendtag.donbosco.at/drupal - There are still the dots from the unordered list. I'am using a Zen-subtheme and in navigation.css I said .navigation-menu ul { list-style-type:none !important; } and the menu on the side has this class. But it doesn't work because the line in html-reset.css (ul { list-style-type: disc; }) is stronger. What can I do?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x