This forum is for assistance with theme development.

Using args(1) to display node information - problem with using it when displaying multiple nodesea

Hi all,

I've just jumped into patching together code for Drupal and finally figured out how to get the current node id - it's arg(1). It took me ages to figure that out (I searched high and low for it but finally found it). So this allowed me to grab some voting information that I want to display about a node.

I placed the following code in my node.tpl.php file and it works when I am in a node (/node/24 for example) but when I am on the main page (/node) it just outputs zero for each node.

Separate Comment link from Read More link

Is it possible to separate the Comment link from Read More link in a Node?
Actually i want to move the Comment link at the top beside of "Submit by" info and keeping the Read More link at the bottom...
any ideas how to modify the node.tpl.php file?

thank you very much

B7 theme .... banner in (or above) the header

Banners show up nicely in the sidebars for me, but they disappear the moment I try to place them in the header. Has anyone here successfully overcome this problem?

Thanks,

Dyrinda

The #comment anchor when user clicks on "create new comment"

I have a Drupal 4.6 site at http://surfcore.co.uk

When a user clicks to create a new comment, they goto a URL like this:

http://surfcore.co.uk/comment/reply/627#comment

but the page they goto (with our theme at least) doesn't have an anchor with id="comment", so the browser starts scrolled to the top and the user can't immediately see the add comment form

displaying reports

We're having some trouble getting a report to output. When data has been entered into the system, it can't be found on subsequent searches for adding content, and we basically don't get any output that is useful. the HTML generated can't be edited, and all I see is the default entry. What we're shooting for is an ability to edit the rating given, to add more ratings, and to comment on the listing.

I'm totally new to drupal and the prior database person is offsite. Anyone see any glaring errors? If anyone wants to help I'll give them a login.

Seattle Plumbing

 

Report Date:

3/5/2006

Overall A
Price B
Quality A
Responsiveness A
Punctuality A
Professionalism A
Was Work Done?:

yes

display menu items in node or page

Greetings everyone,

I am in the middle of setting up my first Drupal site (heavily customized), and so far it has worked wonders (I am using phptemplate - I am a php developer).

For that site I am using the menu system. The main menu is displayed on the left column. I only display submenus up to the second level (I hide deeper level with css - effectively they are on the generated HTML).

Now I am trying to do the following:

At the bottom of each page (after the content), I would like to display the list of menu items that are directly under the current menu item. (the one the current page is linked from).

For example, let's assume I have this menu structure:

  • a
    • a1
      • a11
      • a12
        • a121
        • a122
        • a123
      • a13
      • a14
    • a2
    • a3
  • b
    • b1
    • b2

When I click on "a12", I land on the page linked from that menu item.
At the bottom of that page, I would like to see:
a121
a122
a123

Or when I click on "a1", I would like to see:
a11
a12
a13
a14

That is, the menu items that are directly under the current menu item.

The reason is that I don't display menu items deeper than the second level of navigation to save some screen space. But I obviously want those links to appear somewhere!

Pages

Subscribe with RSS Subscribe to RSS - Theme development