Posted by BenK2 on May 8, 2008 at 4:54pm
5 followers
Jump to:
| Project: | Tapestry |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi,
Great theme. I am new to Drupal and CMS but getting my head around it...just about. Having created a series of story nodes with teasers I realise I need to change the position of the Read More link. I would like to (a) position it on the same line as the break or reduce the gap with the paragraph and (b) be able to position my own links on the same line as the "read more" link appears on. I have downloaded the Theme Developer module but, I am embarrassed to say, I am none the wiser after exploring all related files and stylesheets,having only worked with basic CSS before... I just cannot see what to change. Any help would be gratefully appreciated
Comments
#1
Unlike many themes, Tapestry does not provide a node.tpl.php file to override the default phptemplate file. This is relevant because it is in this file that the links are displayed. You can gain control over the links by copying the phptemplate engine default node.tpl.php file from themes/engine/phptemplate to the Tapestry theme folder, and then editing this file.
However, the default node.tpl.php file simply displays the links as a single entity using the statement 'print $links'. In order to modify a single link, you'll need to resort to some additional code within the node.tpl.php file, or using a module to do the work for you. Do a search here on drupal.org for 'links' and 'read more link'... you'll find a lot of ways to customize different links, including the read more link. This thread has some interesting info.
There are a number of modules that allow you to control links without coding... the Read More tweek comes to mind, but I'm sure there are others.
#2
#3
I have looked in that location on Drupal and I am not finding a node template.I only have phptemplate.engine which does not appear to include anything about the node. I am sorry if I am missing something simple here.
Thanks,
Steve
#4
It's the D6 part that threw me. The default template files were moved from the phptemplate folder for D6. They're now separated into the individual module folders. So the default node templates can be found in the modules/node folder, the default forum templates are in modules/forum, etc. The instructions are the same... copy the default template into your theme folder, and then edit the copy.
#5
Perfect!
Thanks,
Steve
#6
It makes sense that this would work, but it doesn't seem to. I'm still pulling node.tpl.php from the modules/node directory, not from my themes/tapestry directory (I used comments to confirm this). What do I have to do to get my node.tpl.php recognised inside the theme directory?
If it matters, I'm using a multi-site installation.
#7
Have you cleared the theme registry?
#8
Bookmarking, greetings, Martijn