Arguments

Customized user blog page: Panels, views, and arguments

I've been trying to figure this one out for over a week now so thought I'd come to the Group to see if anyone might be able to offer a solution.

I've attached screenshots of my settings to hopefully make it easier to understand.

Images

I've enabled the built in System Page (blog_user) that allows a User's blog posts to be easily viewed. I chose a Flexible panel and put 3 Views inside, (user_posts, User being viewed, and User Tweets). That part was simple enough and great built-in functionality.

I also added a shot of the View a reference.

The Problem

2 comments · Read more · 2 attachments

NooB Question: Views and Arguments

I've been having the problem all morning where I'm so close to creating my first view but it's just not there yet. Here's what I've done so far.

2 comments · Read more

Passing an Argument from the URL to view block

I am not sure if this is an appropriate discussion topic to post here. If not, my apologies. I saw how others had posted views arguments solutions here and thought if I could get this resolved, it would make a nice addition to the dojo.

I just created a forum help request on D.O at http://drupal.org/node/544884 and was wondering if anyone was familiar with the challenge of passing a URL argument to a view block.

I look forward to any advice you can share.

Thanks
c

1 comment
coldert's picture

Visa delar av innehållet av en Content Type i en View baserat på del av path

Jag har en Content Type (Product Group) som innehåller en väldig massa fält, grupperade i olika sektioner, ex. Overview, Specifications, Sights and sounds, Opinions.

Jag har en view som ska visa denna information beroende på path.

Ex.:

/products/minprodukt/overview

Ska visa fälten overview_image, overview_description och overview_at_a_glance.

I nuläget så har jag en lösning med en switch-sats i template.php, theme_preprocess_node som sätter variabler som jag sedan använder i node-product_group.tpl.php. Switch-satsen jobbar utifrån värdet i $_GET['section'].

9 comments · Read more

create event from calendar clicking on date

I`m trying to make a calendar block with clickable dates. this is for a guest house to make reservations.Clicking on date would take to /node/add/my_event/2009-06-05 or /node/add/my_event/?date=05-05-2009 or similar. I want to pass the date as argument to "create content" form. any guest has access to create this type of node, but the default state is "unpublished" so that only administrator can approve (publish) the node. after that the created event would appear in calendar block and have CSS "has-event" definition (e.g. red color).

5 comments · Read more
jnicola's picture

Got a few questions again for you all

Hey everyone, so I'm making some serious headway on this page, and it's getting closer and closer to being largely complete with all the functionality that I want! Here are some of the issues I am currently facing and would appreciate some advice on.

  • Passing variables (arguments?) in the menu links? For example, I want to link to todays date in the event module for the week view. The working link is: /event/2008/10/12/week/all/17
  • How do I get a menu link to automatically place the month (10 above) and day (12 above)?

    Login to post comments · Read more
    rhache's picture

    Suggested Topic for Social

    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!

    Login to post comments

    Passing Arguments to views inside panel

    Hi There
    I have been using panles 2 beta 2, with views 1.6

    I want to be able to pass the panel page argument to the views inside the panel ,
    I have read all the documentation here, but can't make this happen, any help will be appreciated.

    I have a content type call event (with a date field called date_start)
    I have set up a view called events that accept the date_start as an argument, (it's the second argument , the first is termid, and the third is RSS: RSS Feed Selector)
    the view has argument code that set up the default value

    4 comments · Read more · 1 attachment

    Views and Arguments again

    HI

    I'm about to finish writing a module allows to refine current view results by taxonomy terms, displayed in a separate block. Something like exposed filters does but with links instead of select and number of items after each link. To calculate a number of items that will be returned when user clicks on some term I'm using views_build_view function

    <?php
    views_build_view
    ('items', $default_view, null, false, 0, 0, 0, $exposed_filter_values);
    ?>

    I'm also want to handle arguments here and pass it to the code below as third argument.

    Login to post comments · Read more

    [question]about views arguments and filter

    i want to pass node id into my views
    and the filter of my views will use this node id to show something that i want.
    this could be done in editview ??
    or other better ways could do that?

    Login to post comments
    Syndicate content