How do you create a menu with link to a url not on your server?
Hi,
On Sat, 2006-02-25 at 15:42 -0700, Carl Parrish wrote:
How do you create a menu with link to a url not on your server?
This depends on which version of Drupal. If you are using 4.6 then you the start menu system can't do it.
However if you are using 4.7, then this will not a problem.
Gordon.
Hi all, A visitor to my site was asking if Drupal could do something with its vocabulary. He was showing me a LiveJournal feature of using Tags. These would correspond, from my observations to Vocabularies and vocabulary terms. Anyway, on this site, there is a display, where a menu on Drupal might be, or a block on Drupal. And the display lists the Tags (vocab terms in Drupal) with a link on each one. By clicking on a link from among these Tags (aka Vocabulary terms in Drupal) one can see articles, stories, etc. which have those tags in the entry (aka in the node in drupal). 1) Can this be done in Drupal, and how? I know it can, and have looked through a number of Taxonomy modules, along with a few other modules that caught my attention. I'm just not sure which one I might want to use and the descriptions don't seem clear enough as to which module might actually do this. Any suggestions?
2) Here's a related example, the user has setup links for each of her "Interests" at: http://drupal.org/user/24967 I guess Interests would be a custom field on the Profile page. The interests link to users that have the same interests. Can this be done in Drupal and what modules might do this?
3) I thought a wiki might even be of use in these areas. I had actually used such in creating a web site to collect information and allow for searches either for persons, or any other key word, using a phpwiki. I thus tried the wiki module on my Drupal site but don't see a difference now. I'm not seeing any link to my wiki in Drupal. Has anyone used this module?
Thanks, Bruce
++++++++++++++++++++++++++++++++++++++++++++++++++++ Bruce Whealton - Webmaster/Designer/publisher/Writer http://trianglewebservices.com/ Word Salad Poetry Magazine - join us online at: http://wordsalad.net/ Street Exposure - Street Newspaper http://wordsalad.net/StreetExposure/ ++++++++++++++++++++++++++++++++++++++++++++++++++++ --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments.
On Sunday 26 February 2006 10:09 am, Bruce Whealton wrote:
Hi all, A visitor to my site was asking if Drupal could do something with its vocabulary. He was showing me a LiveJournal feature of using Tags. These would correspond, from my observations to Vocabularies and vocabulary terms. Anyway, on this site, there is a display, where a menu on Drupal might be, or a block on Drupal. And the display lists the Tags (vocab terms in Drupal) with a link on each one. By clicking on a link from among these Tags (aka Vocabulary terms in Drupal) one can see articles, stories, etc. which have those tags in the entry (aka in the node in drupal). 1) Can this be done in Drupal, and how? I know it can, and have looked through a number of Taxonomy modules, along with a few other modules that caught my attention. I'm just not sure which one I might want to use and the descriptions don't seem clear enough as to which module might actually do this. Any suggestions?
It might help to have a link to the site for a visual clue, but I think the Taxonomy Menu module will get you what you want: http://drupal.org/project/taxonomy_menu
- Here's a related example, the user has setup links for each of her
"Interests" at: http://drupal.org/user/24967 I guess Interests would be a custom field on the Profile page. The interests link to users that have the same interests. Can this be done in Drupal and what modules might do this?
I actually don't know how they did that. I would like to know myself, but I haven't had the time to really put some thought and research into it. My suspicion is that it uses the profile module and some custom programming.
- I thought a wiki might even be of use in these areas. I had actually
used such in creating a web site to collect information and allow for searches either for persons, or any other key word, using a phpwiki. I thus tried the wiki module on my Drupal site but don't see a difference now. I'm not seeing any link to my wiki in Drupal. Has anyone used this module?
Check out this and following links: http://wiki.bryght.com/wiki/drupalwikirecipe
On 2/26/06, Jason Flatt drupal@oadae.net wrote:
On Sunday 26 February 2006 10:09 am, Bruce Whealton wrote:
Hi all, A visitor to my site was asking if Drupal could do something with its vocabulary. He was showing me a LiveJournal feature of using Tags. These would correspond, from my observations to Vocabularies and vocabulary terms. Anyway, on this site, there is a display, where a menu on Drupal might be, or a block on Drupal. And the display lists the Tags (vocab terms in Drupal) with a link on each one. By clicking on a link from among these Tags (aka Vocabulary terms in Drupal) one can see articles, stories, etc. which have those tags in the entry (aka in the node in drupal). 1) Can this be done in Drupal, and how? I know it can, and have looked through a number of Taxonomy modules, along with a few other modules that caught my attention. I'm just not sure which one I might want to use and the descriptions don't seem clear enough as to which module might actually do this. Any suggestions?
It might help to have a link to the site for a visual clue, but I think the Taxonomy Menu module will get you what you want: http://drupal.org/project/taxonomy_menu
I agree an example link would be useful. I have implemented this by using menu module and adding menu items into my menu that point to "taxonomy/term/10"
- Here's a related example, the user has setup links for each of her
"Interests" at: http://drupal.org/user/24967 I guess Interests would be a custom field on the Profile page. The interests link to users that have the same interests. Can this be done in Drupal and what modules might do this?
I actually don't know how they did that. I would like to know myself, but I haven't had the time to really put some thought and research into it. My suspicion is that it uses the profile module and some custom programming.
I don't think any custom coding is involved. It's just the profile module and some checkbox fields. If a user selects/saves a checkbox then it becomes a link to a pagenated list of all other users who have selected that checkbox.
Greg
On Sunday 26 February 2006 11:34 am, Greg Knaddison wrote:
On 2/26/06, Jason Flatt drupal@oadae.net wrote:
On Sunday 26 February 2006 10:09 am, Bruce Whealton wrote:
- Here's a related example, the user has setup links for each of
her "Interests" at: http://drupal.org/user/24967 I guess Interests would be a custom field on the Profile page. The interests link to users that have the same interests. Can this be done in Drupal and what modules might do this?
I actually don't know how they did that. I would like to know myself, but I haven't had the time to really put some thought and research into it. My suspicion is that it uses the profile module and some custom programming.
I don't think any custom coding is involved. It's just the profile module and some checkbox fields. If a user selects/saves a checkbox then it becomes a link to a pagenated list of all other users who have selected that checkbox.
Greg
I will have to investigate this further. Thanks.
Hi all, I had seen some documentation that went beyond the more basic documentation but I'm not seeing it now. I'm looking for more advanced topics like changing a sites look slightly, like if a theme was nice but the colors were not quite right, or if other things needed to be changed on the page look and feel, layout and navigation, etc. Can someoen tell me where to find the documentation that I might want to read?
Also, are there other themes out there that are not on the page drupal.org/project/themes That I might want to look at? Thanks Bruce
++++++++++++++++++++++++++++++++++++++++++++++++++++ Bruce Whealton - Webmaster/Designer/publisher/Writer http://trianglewebservices.com/ Word Salad Poetry Magazine - join us online at: http://wordsalad.net/ Street Exposure - Street Newspaper http://wordsalad.net/StreetExposure/ ++++++++++++++++++++++++++++++++++++++++++++++++++++ --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.
Hi Bruce,
In general, to change site colors, all you should need to edit is the style.css file in your theme directory (yourdomain.com/themes/ yourtheme). Each theme is styled differently, so there are no blanket tags I can suggest, but in general the tag names are rather intuitive (e.g., .node). By revealing codes on your displayed pages, you should be able to find the appropriate css tag in the style.css file and make the appropriate changes.
For more involved changes, the handbook has a couple of areas -- the "theme developers guide" and the "theme snippets" under the "php snippets" area.
I hope this helps!
Laura
Laura Scott President laura@pingv.com
pingVision, LLC 4450 Arapahoe Ave, Suite 100 Boulder, CO 80303 www.pingv.com 303.415.2559
On Mar 1, 2006, at 11:04 AM, Bruce Whealton wrote:
Hi all, I had seen some documentation that went beyond the more basic documentation but I'm not seeing it now. I'm looking for more advanced topics like changing a sites look slightly, like if a theme was nice but the colors were not quite right, or if other things needed to be changed on the page look and feel, layout and navigation, etc. Can someoen tell me where to find the documentation that I might want to read?
Also, are there other themes out there that are not on the page drupal.org/project/themes That I might want to look at? Thanks Bruce
++++++++++++++++++++++++++++++++++++++++++++++++++++ Bruce Whealton - Webmaster/Designer/publisher/Writer http://trianglewebservices.com/ Word Salad Poetry Magazine - join us online at: http://wordsalad.net/ Street Exposure - Street Newspaper http://wordsalad.net/StreetExposure/ ++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -- [ Drupal support list | http://lists.drupal.org/ ]
Laura, What are "theme snippets" and "php snippets?" And here is a page describing how to edit the user profile layout and display. It's called Customizing the User Layout http://drupal.org/node/44481 While it gives and example of a profile_profile.tpl.php the description of how it works and what it's doing seems too limited for me to figure out the different ways one can edit the profile display. I'm feeling somewhat ignorant, but I do know how to work with php somewhat. Here's one thing that stands out, the fact that the profile_profile.tpl.php file doesn't already exist. So what is controlling the display of profiles now before one were to follow these directions to customize the user profile layout?
Then there is a theme that displays the drupal image in the background of the wallpaper. Is the best way to change that going to be creating another image with the same name and extension but with a different image/picture, something more fitting my site? Or is it better practice to edit the code? Thanks, Bruce Laura Scott laura@pingv.com wrote: Hi Bruce,
In general, to change site colors, all you should need to edit is the style.css file in your theme directory (yourdomain.com/themes/yourtheme). Each theme is styled differently, so there are no blanket tags I can suggest, but in general the tag names are rather intuitive (e.g., .node). By revealing codes on your displayed pages, you should be able to find the appropriate css tag in the style.css file and make the appropriate changes.
For more involved changes, the handbook has a couple of areas -- the "theme developers guide" and the "theme snippets" under the "php snippets" area.
I hope this helps!
Laura
Laura Scott President laura@pingv.com
pingVision, LLC 4450 Arapahoe Ave, Suite 100 Boulder, CO 80303 www.pingv.com 303.415.2559
On Mar 1, 2006, at 11:04 AM, Bruce Whealton wrote:
Hi all, ?I had seen some documentation that went beyond the more basic documentation but I'm not seeing it now.?I'm looking for more advanced topics like changing a sites look slightly, like if a theme was nice but the colors were not quite right, or if other things needed to be changed on the page look and feel, layout and navigation, etc.?Can someoen tell me where to find the documentation that I might want to read? ?lt;/DIV> Also, are there other themes out there that are not on the page drupal.org/project/themes That I might want to look at? Thanks Bruce
++++++++++++++++++++++++++++++++++++++++++++++++++++ Bruce Whealton - Webmaster/Designer/publisher/Writer http://trianglewebservices.com/ Word Salad Poetry Magazine - join us online at: http://wordsalad.net/ Street Exposure - Street Newspaper http://wordsalad.net/StreetExposure/ ++++++++++++++++++++++++++++++++++++++++++++++++++++
--------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. --?lt;/SPAN> [ Drupal support list | http://lists.drupal.org/ ]
On 3/3/06, Bruce Whealton brucewhealton@yahoo.com wrote:
What are "theme snippets" and "php snippets?" And here is a pagedescribing how to edit the user profile layout and display.
Bruce, a quick search for {theme snippets drupal} gave me this page which has the theme snippets and php snippets (both for pages and blocks).
ignorant, but I do know how to work with php somewhat. Here's one thing that stands out, the fact that the profile_profile.tpl.php file doesn't already exist. So what is controlling the display of profiles now before one were to follow these directions to customize the user profile layout?
I'm not really familiar with those instructions - maybe someone else can assist.
Then there is a theme that displays the drupal image in the background of the wallpaper. Is the best way to change that going to be creating another image with the same name and extension but with a different image/picture, something more fitting my site? Or is it better practice to edit the code?
I think it depends on what suits you. I have previous removed that image from the "code" (I think it's in the css file, actually) because I didn't want any image on my site. If you want a background image, but not the default one, you could just replace the current image with your custom image.
Regards, Greg
Gordon Heydon wrote:
Hi,
On Sat, 2006-02-25 at 15:42 -0700, Carl Parrish wrote:
How do you create a menu with link to a url not on your server?
This depends on which version of Drupal. If you are using 4.6 then you the start menu system can't do it.
However if you are using 4.7, then this will not a problem.
Gordon.
Are there any modules that will allow me to do this in 4.6? (when will 4.7 be released btw?). Does this mean there is no way to make sure that a menu item goes to a https page?
Carl Parrish wrote:
Gordon Heydon wrote:
Hi,
On Sat, 2006-02-25 at 15:42 -0700, Carl Parrish wrote:
How do you create a menu with link to a url not on your server?
This depends on which version of Drupal. If you are using 4.6 then you the start menu system can't do it.
However if you are using 4.7, then this will not a problem.
Gordon.
Are there any modules that will allow me to do this in 4.6? (when will 4.7 be released btw?). Does this mean there is no way to make sure that a menu item goes to a https page?
Could you not create a node with a php redirect? Just thinking off the top of my head.
Tod
Menu items are setup as blocks. Why not create a custom block that has an html link outside of the site. One would just link using the html anchor link, i.e. <a href="http://someurl.com/">My link</a> Bruce
Carl Parrish lists@pcl-consulting.com wrote: Gordon Heydon wrote:
Hi,
On Sat, 2006-02-25 at 15:42 -0700, Carl Parrish wrote:
How do you create a menu with link to a url not on your server?
This depends on which version of Drupal. If you are using 4.6 then you the start menu system can't do it.
However if you are using 4.7, then this will not a problem.
Gordon.
Are there any modules that will allow me to do this in 4.6? (when will 4.7 be released btw?). Does this mean there is no way to make sure that a menu item goes to a https page?
Gordon Heydon wrote:
Hi,
On Sat, 2006-02-25 at 15:42 -0700, Carl Parrish wrote:
How do you create a menu with link to a url not on your server?
This depends on which version of Drupal. If you are using 4.6 then you the start menu system can't do it.
However if you are using 4.7, then this will not a problem.
Gordon.
Here is my dirty hack. I'm not posting a patch because it seems like this has already been solved in 4.7 and well its pretty bad. I'm posting to the mailing list because 1) perhaps someone who knows this stuff better than I do will see something stupid I did and can point it out to me before my system gets owned or something 2) just in case someone else needs a dirty hack for 4.6
Okay this is what I did, in common.inc I created a function called external_l() /** * External Link * Dirty hack to allow me to do outside links from menus * */ function external_l($text, $path){ return '<a href="'.$path .'">' . $text .'</a>'; }
Then in menu.inc starting at line 607 I made the following changes to theme_menu_item_link()
607 function theme_menu_item_link($item, $link_item) { 608 if(substr($link_item['path'], 0, 4) == 'http'){ 609 $my_link = external_l($item['title'], $link_item['path']); 610 }else{ 611 $my_link = l($item['title'], $link_item['path'], array_key_exists('description', $item) ? array('title' => $item['description']) : array()); 612 } 613 return $my_link; 614 }
l() handles a *lot* more than external_l() currently does, perhaps I'll get around to looking some of those functions up and deciding if I need them or not. But for now it does what I need.