Closed (fixed)
Project:
Link
Version:
5.x-1.4
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2007 at 19:43 UTC
Updated:
11 May 2007 at 12:22 UTC
This would save having to enter a title twice for a simple web link content type yet still be able to have a usable link title. Can this be done with the default value php code? Thanks.
Comments
Comment #1
dodorama commentedan alternative to the php code could be automatic node titles module.
This way you can hide the title field and autofill it with the link title
Comment #2
quicksketchThis is a duplicate of link token support: http://drupal.org/node/118255. This feature would allow you to make the title default to many different things, not just the node title.
Comment #3
quicksketchOh yes, this could also probably be done with the PHP code block. However, I'm not sure how to use that field yet :)
I'll leave this open if someone else has the answer.
Comment #4
echoz commentedThis is what I've done, + it might be what the original poster is looking for.
My content type is set to use no title, then using a custom node template, I use the node title field to construct the link, like so:
Comment #5
netentropy commentedCan you show us exactly how that is done and what it looks like?
Comment #6
quicksketchWith the latest development version (soon to be version 1.6) you can combine link.module with token.module to set dynamic titles or URLs. Enable the token module, then configure the settings for your link field. Under the default value you can enter '[title]', which will automatically be replaced with the node title when the node is viewed.
Comment #7
quicksketchComment #8
killes@www.drop.org commented