Hi,

I installed Drupal 23 days ago. And till now, I tried Panel, views, filefield, imagefield, Flash, linkimagefield, Arcade etc modules. But not found what I really needed.

I want to make online game website.
There will be many menus like Action games, Puzzle games, Arcade games, etc.
When anyone click on "Puzzle Games" menu, then a page will open with 100x70 px images(say 30 images on a page) on it and each image will be linked to a page(game page).

My aim is:
How can I make a page with many hyperlinked images on it? And also I can set how many Images should reside on a page. If that page contains maximum number of images then the previous game-images should go to next page?

Please give some hint, so that I can move forward.

For example: http://www.oyunlar1.com/

Thanks.

Comments

matt_harrold’s picture

Assuming you have a content type called Game with a thumbnail image (CCK) called field_thumbnail ... you can use Views to do exactly what you want using the Grid view type on a Page display.

Refer to the Views module instructions for exactly how to go about this. Keep an eye out for the "Grid" view, limit your view to 30, use the pager.

Slovak’s picture

Would you then add a Page display and define a URL for that view? Or is there a better way to have example.com/games/puzzles ? What if the same view will be used on three pages (games/puzzles, games/arcade, and games/action)? Do I need to create three page displays, then changing the settings for URL? Or can this be automated all in one page display with some type of variable, that is automatically filled in based on terms within a specified taxonomy group?

BTW, I am not creating a game site (no worries OP). I have a similar issue on a different site and still learning Drupal + Views.

matt_harrold’s picture

Yes, add a Page display, give the path "games".

Views can take arguments, so if you have a vocabulary with terms like 'puzzles, action, arcade' and you've tagged all your games .. you can tell your "games" view to read that argument.

The exact steps are a little complicated to explain here ... but the general idea is to add "Taxonomy Term" as an argument to your view, tick a few check boxes to convert term name to term ID ... viola! games/puzzles will filter Games to only those tagged with the puzzles term.

Just to complicate matters ... if you use Panels 3 to override the taxonomy/term pages, and change your "Games view" to be a Content Pane ... you can have thumbnails of games on the taxonomy/term/X pages. This can be advantageous as node views already have links to the taxonomy/term pages you've tagged.

new2drupal99’s picture

Many thanks to matt_harrold. Your suggestion really helped me.

I made a page with 6 by 5 (6 columns and 5 rows) hyperlinked images with Views, pager, and grid.

Right now I am facing a problem with my page. If the browser window is resized then the images are not wraping, and due to small size of resized browser window Images(contents) is croped.

I searched wrap like options in views, but couldn't find.

Any hint?

Thanks again matt_harrold.

apreel1’s picture

I think some new game sites, such as yapcağın site should be spectacular. You're site has a very simple example of an image. I would like to this site in such games http://www.evrenoyun.com

bil76’s picture

see here for games http://www.tolcu.com or search www.tolcu.eu