473,804 Members | 2,007 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hiding a column at the root of a plone site ...

Hello,

We would like to hide the left column for the main/home page of our
plone sites dynamically using a tal: expression. I figured out that I
need to customize the main_template file something like this:

<td id="portal-column-one"
metal:define-slot="column_on e_slot"
tal:define="sec tionlevel "
tal:condition=" <if home/main page of plone site hide this column>">

What I haven't figured out, is how to identify that the current page is
the home page/at the root of the plone site. I found some examples on
the various lists and google, but have not been able to make them work.

python:here == here.portal_url .getPortalObjec t()
python: here.meta_type != 'Plone Site'"
python:here.get SectionFromURL( )!='section-index' <works as long as the
main page is index and not front-page>

The below seems to work, but it seems like a hacky way to do
things.tal:cond ition="python:h ere.getSectionF romURL()!='sect ion-index'
and here.getSection FromURL()!='sec tion-front-page'">

What it comes down to, I think, is wanting to check if we are at the
root (top) of the plone site or not.

Thanks much for any help.
paul ertz

Feb 23 '06 #1
1 1630
Paul Ertz wrote:
Hello,

We would like to hide the left column for the main/home page of our
plone sites dynamically using a tal: expression.


Then please post on a Zope/Plone related mailing-list.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom. gro'.split('@')])"
Feb 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2408
by: Leo | last post by:
I have the following problem: When looking at a document, we would like to see what the review state of that document is. I set out to make a custom document_view page template based on the default page template, together with some code from the folder_contents page template. I got the following code from folder_contents:
0
1281
by: Ann | last post by:
Hi all, Is it possible to have flash banners in headers and in the pages of a plone site..I have downloaded CMFFlashMovie 0.3.2. I can upload(add flashcontent) on a page by itself on the plone site. But i want to integrate it with the other pages. For eg: in the "AboutUs" page i want a Flash movie to play at the left most side..And I want a flash banner in the header..I have been searching on how to do this, but i haven't come across...
1
1288
by: miumiun | last post by:
I'm conducting some research about CMS systems and I have limited the choices to several that fit my needs. Many of them have live demos, so I can try and see, but I didn't find such for Plone. Is there one? I also didn't see one very important feature - personalization. I'm not sure if I am using the correct term but I my company we call personalization the ability of the site to show different content depending to the user who has...
0
1268
by: krzychu | last post by:
Hallo, I have an existing plone site called "info", I've added some scripts to it. I would like to have that plone site into a separate ZODB database(separate ..fs file). There is a MountFolder product (1.2 - the latest release), by mean of this you can create MountFolder which data is stored in separate ZODB database.
0
1416
by: sub | last post by:
I'm using plone primary as a news system for my school. Now I want to integrate external sources into my plone site. The page is http://www.vucaarhusamtvucwin.dk/hold.asp?v1=randers&v2=randers&v3=a&v4=a which shows the various courses my school offers. This site i updated from a database. And i want to integrate it into my plone site. The links oni should thus not "link away" from my plone site but only show the informationen.
3
1317
by: wheel | last post by:
I'm not sure if this is the right venue for Plone questions, if not, could someone ref me to a better one? The discussion groups on the plone site are mailing lists and I'd rather not subscribe quite yet. Does plone support distinct sets of users? That is, on a public website running plone, can it be configured such that when a user logs in they are allowed access to a subgroup's main page, get the subgroup's newsletter as well as the...
11
1486
by: kbperry | last post by:
Hi everyone, I am currently a student, and for our HCI class project we are redeveloping our CS website. I attend a very large university (around 30,000 students), and the CS site will need to be updated by many people that don't have technical skills (like clerical staff). The biggest problem with the current site is that not enough people have access to update it. Since I love python, these seemed like viable solutions.
0
1755
by: Chris Calloway | last post by:
Triangle (NC) Zope and Python Users Group (TriZPUG) is proud to open registration for our fourth annual ultra-low cost Plone and Python training camps, BootCampArama 2008: http://trizpug.org/boot-camp/2008/ Registration is now open for: PyCamp: Python Boot Camp, August 4 - 8
1
1309
by: Ken Seehart | last post by:
I want a new python based CMS. ... One that won't keep me up all night .... I've been fooling around with zope and plone, and I like plone for some things, such as a repository for online project documentation. However for general-purpose web development it is too monolithic. Is there anything out there with the following properties? 0. Web page being developed is a typical small business home page (i.e. not a newspaper or a blog)....
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10361
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10103
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9179
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7644
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3839
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.