Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 13, 2012, 03:50:35 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
149700
Posts in
21103
Topics by
7538
Members
Latest Member:
ionline
WebsiteBaker Community Forum
English
Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
(Moderator:
Argos
)
Hiding a section on a page
Pages: [
1
]
Go Down
Author
Topic: Hiding a section on a page (Read 647 times)
ddombadoh
Offline
Posts: 21
Hiding a section on a page
«
on:
July 05, 2010, 12:03:51 PM »
Hello All
I have been using wb for about 2 months now, and have enjoyed using it.
I have a little problem;
I have a page with 3 sections. At one point in time all the contents of these sections displays, and at another point, some don't need to display. I would like to be able to hide one section at one point in time (this section is a WYSIWYG).
I know I can set the section publish start and end date, but this behavior is as a result of user click. So I want to hide that section using code, and show it again later using code, as per user clicks.
Any help is much appreciated.
Thank you.
Logged
crnogorac081
AddOn Development
Offline
Posts: 1680
Re: Hiding a section on a page
«
Reply #1 on:
July 05, 2010, 02:41:01 PM »
hi, its simple..
go to Manage sections on that page, and set end date to yestrday's date...
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
ddombadoh
Offline
Posts: 21
Re: Hiding a section on a page
«
Reply #2 on:
July 05, 2010, 04:45:44 PM »
Thanks crnogorac081 for your response.
I do not want to permanently hide the section. However I want to hide it upon certain actions taken by the user.
Logged
crnogorac081
AddOn Development
Offline
Posts: 1680
Re: Hiding a section on a page
«
Reply #3 on:
July 06, 2010, 08:14:23 AM »
then on that certan action, run sql query to update section you want to hide and set end date to yestrdays...
And when you want to unhide it, also update that section and remove end date..
try that
cheers
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
pcwacht
AddOn Development
Offline
Posts: 2814
Re: Hiding a section on a page
«
Reply #4 on:
July 06, 2010, 11:05:46 AM »
When I understand you correctly you want to show a section only if a user is allowed to?
If so, should that user be a registered user of your site?
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2094
Re: Hiding a section on a page
«
Reply #5 on:
July 06, 2010, 02:33:01 PM »
if the section is a WYSIWYG section, you could include it using a modified
ShowSection
droplet.
I am not sure what criteria for showing and hiding should be used, but you could add that to the droplet code yourself.
Logged
Professional WebsiteBaker Developer
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...