By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,967 Members | 843 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,967 IT Pros & Developers. It's quick & easy.

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

P: n/a
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_one_slot"
tal:define="sectionlevel "
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.getPortalObject()
python: here.meta_type != 'Plone Site'"
python:here.getSectionFromURL()!='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:condition="python:here.getSectionFromUR L()!='section-index'
and here.getSectionFromURL()!='section-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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.