Good peoples
thanks for the good tips last week - still working on things now just sorting out the priorities the rest, hopefully will follow
Here is the demo site we are still polishing off
observations and suggestions welcome
question of the day: how do I get the aggregated feed from another site to open on a different windows/tab when clicked? (now it takes away the uzer from our site, which is bad)
thankz
PDM
PS I have to stop flooding the developer with my drupal related questions, else he crashes under the weight of my curiosity and stops working on the scheduled tasks ...So, thanks a lot for the help from this list, and let me know if you are available to help us finish a task, fees can be paid for extra help if necessary
Quoting paola.dimaio@gmail.com:
question of the day: how do I get the aggregated feed from another site to open on a different windows/tab when clicked? (now it takes away the uzer from our site, which is bad)
I've used the following JS script placed just above the ending html body tag of the page.tpl.php file so that I don't have to worry about external tags. A new window is opened if the target _external doesn't exist else the existing window is reused. This prevents the user having "too many" open windows.
<code> <script type="text/javascript"> var lnk, lnks = document.getElementsByTagName('a'); var host = location.hostname; for (var i=0; lnk=lnks[i]; i++) { if (lnk.href.indexOf(host)==-1) { lnk.setAttribute('target', '_external'); } } </script> </code>
Earnie -- http://for-my-kids.com/
thanks for script sending it back with a patch, see if it works for you FYI cheers P
I've made the javacript a bit more Drupal and web friendly (the _external thing is not supported anymore).
$(function() {
$('a[@href^=http]').not('[@href*=location.host)
.addClass('external-link') .click(function() { window.open(this.href, '_blank'); return false; });});
question of the day: how do I get the aggregated feed from another site to open on a different windows/tab when clicked? (now it takes away the uzer from our site, which is bad)
Quoting paola.dimaio@gmail.com:
question of the day: how do I get the aggregated feed from another site to open on a different windows/tab when clicked? (now it takes away the uzer from our site, which is bad)
This is why I used the method of hard coding it in the page.tpl.php file. I actually found the suggestion elsewhere.
Earnie -- http://for-my-kids.com/