views

How to bind to two page created by views

yaoweizhen's picture
public
yaoweizhen - Thu, 2008-07-24 12:24

I created two page by views, one for chinese, another for english. There isn't transtion tab in view, so how to switch language between two pages?


Drupal Web Developer | Future US - GuitarWorld, MaximumPC, Mac|Life, Edge, Official Xbox Magazine

markekramer's picture
public
group: Bay Area
markekramer - Fri, 2008-07-18 22:46
Employment type: 
Full time
Telecommute: 
Not allowed

Future US is a leading publisher of cutting-edge special interest magazines and websites in the games, technology, and music sectors. Future US is one of the fastest growing media companies in the US.

Recently selected as one of the top ten Best Medium Sized Companies to Work for in America, Future has a unique and dynamic philosophy that encourages creativity, innovation, growth and balance. We offer an utterly cool office environment full of fun, talented people that love what they do, and are passionate about media and technology.


When to use Legacy views and Views panes

public
group: Panels
thamas@drupal.org - Thu, 2008-07-17 14:33

It is not clear to a new panels 2 user when to use legacy views and when to use views pane, what is the difference, how to use them etc. I think there should be something about these in the panels 2 tutorilas.

It seems to me that views panes offer more options - but I'm not sure.

Would someone who is experienced write a tutorial about it?

Thank you very much!

(I do not wanna be too brash, but I had a support request: http://drupal.org/node/282897 - maybe a detailed answer to this could be the illustration the answer of the above questions...)

Trouble creating a custom sort function for a CCK type

ultimike@drupal.org's picture
public
ultimike@drupal.org - Tue, 2008-07-08 19:56

Hello,

I'm trying to figure out the best way to use the Views (v1.x) API to create a custom sort function for a CCK type.

Here's what I have:

CCK fields:

  • title (string)
  • rating_a (int)
  • rating_b (int)
  • rating_c (int)
  • rating_d (int)

I need to develop a way to sort the view by the average of a variable number of the "rating" CCK fields.

For example, if the user wants to sort the nodes only by "rating_a" and "rating_c", then the "order by" clause would look something like this:


Making views pager work in panels

public
group: Panels
cangeceiro - Wed, 2008-06-25 20:28

So what im try to accomplish is this....

I have a panel page that needs a calendar picker for picking dates and a taxonomy drop down form. I built a view that takes url arguments for the date. in the format of calendar/%y/%m/%d. then when a user clicks the calendar picker it returns to the panel but appending the dates as args (ie calendar/2008/6/25/ ).

using the following code I am able to make my view accept these arguments

Argument Code

$args[0] = arg(1);
$args[1] = arg(2);
$args[2] = arg(3);

$view->is_cacheable = 0;
return $args;

Footer code:

June Meeting Wrap-Up

ultimike@drupal.org's picture
public
group: Florida
ultimike@drupal.org - Sat, 2008-06-21 20:48

The Florida Drupal User's Group met this past Saturday - about 17 people were in attendance. The group broke down as follows:

  • new to Drupal: 6
  • less than 1 year: 7
  • more than one year: 4

Thanks to Jay and MindComet for letting us use their facilities! If you have a need for Interactive Marketing, please check them out.


Generalizing node context

joachim's picture
public
joachim - Tue, 2008-05-27 17:30

Been sitting on this idea for a while: curious to see what people think.
In a nutshell, the idea is to combine and generalize the various flags for a node that are available in node.tpl.php, and open them up to modules.

For example, instead of the $is_front, $page, $sticky, and $teaser booleans, you'd have an array with entries present if the flag is true. Something like this, for example:

  $context = array(
    'teaser' => array(),
    'sticky' => array(),
    'page' => array(),
    );

Core would take care of shoving those keys in; other modules would given a chance to add their own to a node.

That's the plan. Here's why I think it's cool:


Views: list one node per user

public
sterwa - Mon, 2008-05-26 18:36

Hi,
How can I set up a view with one (latest) blog entry per user, sorted by node submission type. Can't seem to figure out how to set up the whole "one node per user" thing...
Thanks!

To Panel or not to panel- that is the question

public
group: Bay Area
activelyOUT - Sat, 2008-05-17 16:37

Hi everyone.

I wanted to know people's experience with Panel module and Panel 2 module.

I see you can use Panel 2 to theme input pages.

I am developing a site just using good ol' fashioned tpl.php files, views, and css.

What are the advantages to using Panels?
How much flexibility do you have to customize the panel?
What are the performance implications? It looks like a large module or set of modules.
Has anyone migrated their site to use panels?

Suggested Topic for Social

rhache@drupal.org's picture
public
rhache@drupal.org - Sat, 2008-05-17 06:06

Hi Everyone,

Other than the new theme I just proposed, I also would really like to learn more about Views Arguments.

This was of great interest to me when I was the Views argument session at the DrupalCamp Vancouver. However, I cannot wrap my head around it and I thought it would be a good subject to tackle if it's of interest to anyone else. I've got several applications that we can use as examples that would help several of my sites if that helps to get us going.

Please don't hesitate to comment if you have any other topics that you would like to tackle.

See you later!


Syndicate content