Hi all,

i am building a multi-user blog website and would like to change the view on the blog module homepage (www.myexample.com/blog).

1. Instead of showing the latest nodes (Teaser lists) the blog homepage should show several custom blocks in the content area (new members, latest entries, Top blogger, archive, categories.....).

2.The single user blogs should not be changed and show the latest nodes of each user.
(www.myexample.com/blog/username)

To get an idea what i am looking for please visit this website: http://www.mobilepokernow.com/blog.
Unfortunately i have not idea how to make these changes in views module.

Any help / advice GREATLY appreciated.

Thanks in advance !!!!

Zendth

Comments

merlinofchaos’s picture

You should be able to accomplish this with the Views module and views_feed, though you can't quite get it exact because the 'feed' item in the blog code floats, and views won't let you do that.

Note: It'll take some work to figure out everything you need to do to do this.

-- Merlin

[Point the finger: Assign Blame!]
[Read my writing: ehalseymiles.com]
[Read my Coding blog: Angry Donuts]

-- Merlin

[Read my writing: ehalseymiles.com]
[Read my Coding blog: Angry Donuts]

rivena’s picture

You can't do this by just changing the block visibility settings to only show on blog pages?

Anisa.

-----------------------------------------------------------
Kindness builds stronger bonds than necessity.

www.animecards.org - 16,000 card scans and counting!
-----------------------------------------------------------

jivyb’s picture

Have you tried using the dashboard module? It creates areas for content in the main area that you can display the content of any drupal block or node in. I use it to display taxonomy-based lists of posts through the taxonomy-block module. At any rate, you could easily display the layout you're looking for with the dashboard.

coreyp_1’s picture

  1. To have a different www.example.com/blog page, you have to override the blog module's presentation (or rather side-step it). To do this, first enable the path module. Now, create a new page. The path module allows you to set an alias for that page. Set the alias as "blog". Now, instead of www.example.com/node/427, you have www.example.com/blog, and you have successfully avoided the default blog page. You can put whatever you want into your new page. If you want custom blocks with php, then set the filter to "php code", and code away!
  2. The blogs are referenced by user id (blog/34). To reference it by username, download and install the pathauto module, and change the settings to your liking.

Hope that helps!

- Corey

zendth’s picture

Hi,

thanks Corey. It is working now!! I didn't expect it would we that easy.

zendth

Hayakawa’s picture

Thank you very much Corey. Do you know how can i change theme and blocks only on this particular page?

coreyp_1’s picture

Blocks can be set to appear on individual pages by changing the configuration options on the admin/block page.

I'm not sure of an "easy" way to change the theme for just this particular page. I'll take a look later when I get back in from work.

- Corey

Hayakawa’s picture

i found an alternative way to do this. read at http://drupal.org/node/46027. shortly it says you can create a page-blog.tpl.php to style blog page.