Hello,
How would I go about doing the following?
1) Have two new form input boxes within all news catagories (site news, web news, etc...) that will allow an external web address to be submitted to a given link name?
example: The first input would be an external weblink box. The second would be to rename the link to the source name such as Source: Google.com and read more would link to the url that was input.
Although new to Drupal, I cannot figure out how to link to external sources in workflow like manner. I did install the weblinks module, but this doesn't do as needed.
2) Have the read more link moved to a desireable location. The read more link is in a bad area to be found in crowded with all the other links. I did see one other post on it, but I am not a programmer and the post had contraditory statements as to how to achieve this.
This is for a news, review site. The function of inputing an url from within a news catagory and having the output placed as a name (Source:whatever) seems to be simple items compared to the complexity of Drupal. So far, working fine on localhost, but the above function is needed.
Any suggestions?
Thanks
Comments
?
No ideas?
This problem has been discussed often,
A lot of usability postings deal with this, but untill today no real solution was put forward. You mentioned that you are not a coder, but you could help on moving these kind of issues forward too!
What you could do is: search the *issues* for an existing issue (i am quite, but not 100% sure there is a feature request delaing with this)
and add your thoughts to that issue. Including proposed UI chages as screenshots tend to help too.
If there is no issue, you could add one.
But take into considderation, that, the current code limits this use. It is at this moment very hard to theme any of the bottom links. I suggested somewhere that we should use key'd arrays that return the links. So for example
[?
array("readmore"=>array("url"=>"/node/XX/vieuw/", "text"=>"read more"));
?].
That way a theme can decide what to do with the links, where to print them, or maybe replace them with icons etc
[Ber | webschuur.com]
Thank you!
Thank you Ben.
"A lot of usability postings deal with this, but untill today no real solution was put forward."
Until today? Is your code the answer? It appears logical.
"You mentioned that you are not a coder, but you could help on moving these kind of issues forward too! What you could do is: search the *issues* for an existing issue (i am quite, but not 100% sure there is a feature request delaing with this) and add your thoughts to that issue. Including proposed UI chages as screenshots tend to help too."
Do you search "issues" differently than searching the site? I used the search box at the top of the site.
"If there is no issue, you could add one. But take into considderation, that, the current code limits this use. It is at this moment very hard to theme any of the bottom links. I suggested somewhere that we should use key'd arrays that return the links."
I would say this is more than usability issues. This is "workflow" issues as well. I can post screenshots of a working cms that allows for this functionality if it would help.
already exists
i'm pretty sure that $node->readmore (or similar) exists if there is more to read. the theme can do whatever it pleases with this.
this is added by node_prepare(). In your theme, do a print_r($node) and see what properties are available.
Hi weitz
I tried as suggested and looked throught the xtemplate.theme. Couldn't find anything close. Tried the print_r($node) and it crashed the theme.
Parse error: parse error, unexpected T_FUNCTION in /var/www/html/themes/xtemplate/xtemplate.theme on line 54
That is what the readmore does now. Even after replacing the xtemplate.theme with the original.
Update: I wouldn't suggest anyone try the above. I ended up having to restore the database.