Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Another option is to use the locale.module to enable transations, then provide a "translated" string, which includes the necessary HTML. The first solution (hack the code) is quicker, but this solution is better in the long run, especially when you need to update the code.
I believe the links referred to are the links created at the end of a node. Unfortunately, they do not include any CSS class or id identifiers, so CSS is out.
yes, the container div is class="links", but that would style every link in the container (ex. "printer friendly", "e-mail me", "add child page", "add new comment", etc.) in the exact same way. There is no way to select a link individually.
Come to think of it, it would be nice if an option were available to specify a CSS class or id in hook_link(), but that is not an option as of yet (as far as I know).
Comments
You probably will have to
You probably will have to hack the code. Shouldn't be too hard, though.
What we need to know to answer your question better:
1. What version of Drupal are you using?
2. What module(s) is creating the links in question?
4.63 and with node module
4.63 and with node module
unless I'm mistaken, these
unless I'm mistaken, these links do not come from the node module, even though they are shown when a node is shown.
I believe the "print" like comes from the print module, which can be modified around line 149.
I'm not sure which module is adding the "email" link.
On further review, however, I think a better option would be for you to use the translating capabilities of Drupal, rather than editing the code.
Another page on the issue is here: http://drupal.org/node/24593
Another option is to use the
Another option is to use the locale.module to enable transations, then provide a "translated" string, which includes the necessary HTML. The first solution (hack the code) is quicker, but this solution is better in the long run, especially when you need to update the code.
http://drupal.org/node/11130
how do i add image?
i tried...it didn't link to the page..instead..it printed the entire command
why not use CSS? set the
why not use CSS? set the icon as the background image and indent the text a bit.
I believe the links referred
I believe the links referred to are the links created at the end of a node. Unfortunately, they do not include any CSS class or id identifiers, so CSS is out.
oh... oh well
oh... oh well
Isn't it ...
Isn't it
<div class="links">?yes, the container div is
yes, the container div is
class="links", but that would style every link in the container (ex. "printer friendly", "e-mail me", "add child page", "add new comment", etc.) in the exact same way. There is no way to select a link individually.Come to think of it, it would be nice if an option were available to specify a CSS class or id in
hook_link(), but that is not an option as of yet (as far as I know).Great idea!
+1 for adding a CSS class or id in
hook_link().The ability to individually style links, add images according to themes, etc. would be a nice presentation option.
This should be a formal feature request and not just mentioned in a forum posting.
two posiblities.
http://drupal.org/project/print
http://drupal.org/project/emailpage
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
hm..
how do i add to print.module to show a .gif file next to printer friendly version?
can someone show me how to change from plain txt to html? tks