Closed (works as designed)
Project:
Quotes
Version:
6.x-1.40
Component:
Views
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2010 at 03:37 UTC
Updated:
26 Apr 2010 at 14:42 UTC
I'd like to request the option to customize the h1 header tag in the /quotes view -- the list of all quotes, which is currently titled "Quotes."
In the meantime, what file do I need to edit to change it? The solution isn't obvious by grepping the source code for the string.
Thanks!
Comments
Comment #1
ctmattice1 commentedThe quotes module does not use this tag.
This is a theme issue. In general, you would need to create a template file based off suggestion such as "page-quotes.tpl.php" and add a style to the h1 tag something like
<h1 id="quotes-headings">placing the css you want in your themes css file.Please refer to Drupal 6 theme guide handbook for specifics.
Comment #2
lukechao commentedActually I found the solution! (For anybody searching for the same problem.) Quotes has a menu item in the navigation bar. If you change the menu title, it changes the corresponding h1 tag and page title. It's a little counterintuitive, but it works.
Comment #3
nancydruYes, that is correct. Some time ago someone explained that they were using Quotes to provide testimonials to their company work. It was such a great idea, IMO, that I also did that for a company I did a site for. At the time, I thought that changing the menu item was the best way to allow for using Quotes in alternate ways. Unfortunately, while that was a good technique in D5, it is less so in D6 (and D7). I have since discovered that changing the content type name would probably be better. At some point I will probably change to that implementation (likely in D7 only).
But, Charles in also correct, you can do a lot in
node-quotes.tpl.php(better than the page template). The H1 tag is produced by core for the whole page and is based on the menu item (as you discovered). Each individual quote wil have an H2 tag based on the node.