Re: ecwebv3
By: Deepend to Deepend on Thu Jun 25 2015 12:09:41
One more question. What would be the best way to create a link on the sidebar that just directly links to an external link. For the moment my external link is currently just an Iframe in a Xjs file so it'll show the
One option would be to create a sidebar module specifically for showing external links. This would be as simple as creating a .html file in your sidebar/ directory and adding your links in there:
<a href="
http://poo.pee/">Poo Pee</a>
<br />
<a href="
http://pee.poo/">Pee Poo</a>
This doesn't need to be a complete HTML document with <html>, <head>, and <body> tags since it will be loaded inside of another one. The name of this file will affect its position in the sidebar.
Another option would be to create a .html file inside of your pages/ directory containing something like this:
<!--Poo Pee-->
<script type="text/javascript">
window.location = "
http://poo.pee/";
</script>
<a href="
http://poo.pee/">Poo Pee</a>
The 'pages' sidebar module would see this file and add it to the list. As with sidebar modules, the name of this file will dictate its position in the list
of links.
If a user loads this page, they should be redirected to the external
site automatically (or, if they have javascript disabled in their browser, they'll still have a link to the external site that they can click on.)
So, those are the "right" ways of doing this using the mechanisms provided by ecweb. Technically you could just modify your 'sidebar/000-pages.ssjs' file and hard-code some links in there, but that could get messy.
---
echicken
electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com