Moved Forums

ThemeSnap.com Forums have Moved! Please note that our forums have moved here: New ThemeSnap.com Forums. You will still be able to read forum threads in the forum categories or threads below. However, you will not be able to post new forum topics or replies to existing threads. Please post any new forum posts in our new forum section by registering a new account.

is it possible to add more of featured block?

3 replies [Last post]
pradt
pradt's picture
Offline
Joined: 10/24/2009
Points: 0

is it possible to add more of featured block 2 & 3? i have like 10 categories and i want 10 of those blocks displaying for each category. how to do that? thank you.

Jason
Jason's picture
Offline
Joined: 01/03/2008
Points: 8
You can by adding more hooks

Hi,
You can do this by adding to the front page.tpl by adding the proper hooks and you'd also need to add to your template.php file. You'll see the two front page blocks within the template.php file and also the
within the page.tpl file for the front page.

pradt
pradt's picture
Offline
Joined: 10/24/2009
Points: 0
and how do i select photo

and how do i select photo from node to show in new featured blocks? can this be managed through admin panel like featured block 2 and featured block 3?

Jason
Jason's picture
Offline
Joined: 01/03/2008
Points: 8
If you create two additional custom content types

You'll see that the theme uses custom content types in /admin/content/node-type/story/fields. These are:

Label = imagetheme
Name = field_imagetheme
Type = file

You can see the corresponding PHP hooks in the theme's page.tpl front page file and there's also some theme functions in the template.php file that facilitate in the front page blocks/image display. You'll have to create 2 new additional feature blocks using the same type of variables as the ones already there. It's possible but you'd really need to be familiar with Drupal theming in order to do this.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <strong> <code>
  • Lines and paragraphs break automatically.
  • Each email address will be obfuscated in a human readable fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.