I've created a view with an argument that takes the user id from the url. I'm changing the layout of both blog and blog/* (argument is the user id). It does not seem to work since I'm still seeing the default view for a blog of a particular user. However, the blog that lists all blog posts of the users are displaying the expected output which is based from the function i've mentioned in the subject.

Comments

irakli’s picture

Status: Active » Fixed

When you are invoking View via custompage you typically want to retrieve the argument with arg() function in the tpl.php and pass it along to custompage_view_tile() function. In such scenario Views get "arguments" from function parameters, not - URL. This pattern can be very useful when you layout several views on the same page, since you will be able to "route" arguments to specific views according to your custom logic and avoid naming clashes.

Does this answer your question?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.