Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 27, 2012, 06:27:59 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
155556
Posts in
21715
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
Random Image placement
Pages: [
1
]
Go Down
Author
Topic: Random Image placement (Read 900 times)
Chrissy
Offline
Posts: 13
Random Image placement
«
on:
January 30, 2008, 12:59:24 AM »
Hello, I posted this in the HELP section but thought this would be better here... sorry for the double post.
For my question...
I have installed the Random Image module and have it working great by inserting RandomImage('/media/pics'); into a code section BUT I actually would like it to appear on the right side of my content area where I have a table set up. I only need this on one page so thats why im using a table to create 2 columns with text on the left and the Random Image on the right. Any ideas on what to do about getting it to show up there huh
Thank you!
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7973
Re: Random Image placement
«
Reply #1 on:
January 30, 2008, 07:51:13 AM »
Hello,
if you only need this on one page, make a copy of the template. The only difference should be that one is with random imag and one is without random image. Then change name and dir in info.php and install the copy of the template. Now simply set for pages where random image should appear the template of the one with random image and on all other pages the template without random image.
Matthias
Logged
Chrissy
Offline
Posts: 13
Re: Random Image placement
«
Reply #2 on:
January 30, 2008, 08:34:32 PM »
Thanks so much, your suggestion worked perfectly!
I've used Joomla a few times before and so I didn't think of making another template since from my experience you can only have one template in Joomla but this is great that WebsiteBaker can do this.
Cheers,
Chrissy
Logged
sparkdigital
Offline
Posts: 348
Re: Random Image placement
«
Reply #3 on:
February 20, 2008, 08:13:56 AM »
Hi,
I've done something similar to what you're asking:
> add a content block to your template page
> go to 'manage sections' of the page where you would like the random image to appear
> add a 'code' block to that page
> in 'modify page' simply paste the random image code <?php RandomImage(MEDIA_DIRECTORY .'/random');>
> save the page.
This way there's no need for extra templates that need updating when you make any changes etc.
Hope this helps!
Konrad
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...