Hello All,
I asked a few months ago about the best Drop down menu to use and got the
answer Nice Menu's. My client and I have noticed that it has some odd
behavior about pausing and not working (especially if the menu line is not
active) and now that I actually use more than the first link now, it occurs
so much that it is an issue.
Is there a way to fix this or a better drop down menu system to use (need a
horizontal menu able to do up to 4 levels of information (I will use menu
block to split it, but still need the functionality). (please send links if
possible)
Thanks,
Holly Ferree, Graphic Designer, BFA
813.786.0852
hferree(a)gmail.com
http://www.designbyholly.com/
Hello Themers!
How do I theme a page based on content type?
I've got a site with a few different custom pages and separate .tpl.php
files for their custom layouts and CSS/XHTML. The "Blog" page is a View
with a list of teasers. How do I create a custom .tpl.php file that only
targets the "page" (and layout) that the individual/full blog entries are
displayed on?
The Theme Developer list these as the candidate files: page-node-#.tpl.php
< page-node.tpl.php < page.tpl.php.
But I don't want to use "page.tpl.php" as its too broad in its reach and I
may decide to add other pages non-blog pages in the future.
I've tried "page-blog.tpl.php" - but it broke my layout. I still have some
unresolved CSS/XHTML issues, so I'm wondering if "page-blog.tpl.php" is the
correct naming convention, but I just have a few bugs in my code to work
out?
A second (less important) question:
Keeping track of all those .tpl.php files is getting confusing! The Views
pages are easy ("page-blog.tpl.php" or "page-work.tpl.php" for example),
but Theme Developer is telling me that for all pages using the "page"
content type, that I have to style them by their ID ("page-node-1.tpl.php"
for the "about" page). Is there any way to name a .tpl.php file for a page
content type in a more semantic/meaningful way?
Such as "page-contact.tpl.php" instead of "page-node-392.tpl.php"
Thanks!
brendan, fresh-off.com
Creative Direction & Consultation: Web | Print | Brand
http://fresh-off.com
hello(a)fresh-off.com
206.328.1067
Hi there Drupal droogs,
I've been using the following code in the node tpl file to create a read
more link in the node teaser:
<?php print "<a href='/" . $node->links["node_read_more"]["href"] . "'
class='readmore' title='" .
$node->links["node_read_more"]["attributes"]["title"] . "..' >" . '<img
src="' . base_path() . path_to_theme() . '/images/read-more.gif"
width="120" height="40" alt="" />' . "</a>"; ?>
Now $node->links["node_read_more"]["href"] works fine at creating the
right URL until I put the site into a sub directory, and then instead of
the links being /themes/?q=node/62 they are /node/62... which is wrong
Does anybody have any ideas what I can do to sort this problem out?
Regards,
Andy
--
----------------------
Andy Walpole
http://www.suburban-glory.com
Work: 05601310400
Mob: 07858756827