This forum is for assistance with theme development.

Adding titles to pages

Hi all,

Currently on my homepage I have a title right at the top of my page called introduction, which was created when I assigned content as frontpage. <h2 class="title">Introduction</h2> I'm editing this to change the font and color using CSS with a class of .h2.
This is all working fine.

The problem is that on other pages that have been created, about, contact, articles.. etc, there is not any sort of title being outputted, even though I am stating one when creating the content.

Removing "Home" Link on Content Pages

Hi All,

I would like to remove the "home" link that appears on all of my pages, above my content. I would like to do this because I already have a homepage link in my navigation, so I don't need another one at the top of my page.

I believe this can be done with editing something in the template.php file, but I'm not sure how.

Thanks,

Jon

Flash frontend

Hello,

Drupal as a backend is fine. I can upload/modify stuff using the current view.
I'm looking for a flash front-end, to provide an eye-candy view to the final user.

Any example somewhere?
Any hint?

thanks in advance,

-c.

display gallery2 user album on user page

I am attempting to develop a personal portfolio site in which users submit their work, including anything from flash movies to images, etc, into their albums, and it is then viewable on their user page. I have been able to get the user albums for each user using "gallery2", but all i can manage is to place a ling to the users gallery on their user page, rather than display images from the gallery itself.

I know that the following code in my template.php creates the link:

      <?php
		global $user;
		$galleryprofile=gallery_view_user($user);
		print $galleryprofile['Gallery2']['gallery_view_user_album']['value'];
		?>

I have tried playing around with this code to make it display the content of the page/node (or whatever) it links to but have had no success.

the following is what my user profile looks like (follow the link):
http://farm3.static.flickr.com/2340/1497822682_1ad35469d8_b.jpg

PS. once I have got the user pages sorted out, I want to create a browse page, which has different cegories which can be searched/browsed, and all the images are displayed ther no matter what not the albums, then when you click on the image, it will take you to that image and you can comment on it or rate it, and from there there is a link to the user which uploaded/created the image. (but first I want to sort out the userpage bit)

A Primary Category on top, and sub categories under?

Hi I'm looking to set up a category system similar to what the consumerist does, where they assign each article a primary category (in this case "Health Risks) to each article that is printed on top of an article title, but they also have a separate list of topics (big pharma, diabetes, drugs) associated with each article echoed underneath.

Can someone please explain $content for me?

I'm a graphic designer, and I've been working at learning Drupal theming for the past few years now. I'm no PHP expert, but I've spent quite a while teaching myself PHP and PHPTemplate. Despite this, I still have yet to understand the rhyme or reason behind the $content call in a PHPTemplate theme. I feel like I'm missing something very fundamental. Am I?

This $content call seems, to me, to be something of a magical pill, which you can just plop into a .tpl.php and have it output... well... stuff. Sometimes it's handy, but sometimes it's downright annoying because it undoes any fine-grain modification of how a node appears by just dumping out the entire node the default way Drupal does it. I suppose this could be why Drupal sites all look the same?

Why, for example, does $content always output both the copy (as in the text) of the page, AND the comments attached to it? Should I not be able to decide where in the node I wish to place comments? What if I want them in another column? As far as I can tell, there's no equivalent $comments that only outputs the comments of the current node.

Pages

Subscribe with RSS Subscribe to RSS - Theme development