Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3483064
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:37:49+00:00 2026-05-18T10:37:49+00:00

I have a Plone (4.0.1) site which requires changes in layout depending on the

  • 0

I have a Plone (4.0.1) site which requires changes in layout depending on the folder. Imagine a structure like:

University > Faculty A > Institute A1 > Person A11
                                      > Person A12
                       > Institute A2 > Person A21
...

Now if I put all needed resources (custom css file, images, etc.) into the ZODB, pages for person A11 would automatically pick up a fac-image.gif located in the Faculty A folder.

However, to avoid confusion, I do not want to expose fac-image.gif to the users. (This is all part of the framework which they’re not supposed to touch anyway.)

If I register a resource, I can access stuff with ++resource++theme.images/path, but no acquisition from parents is taking place, so ++resource++theme.images/facultyA/instituteA1/fac-image.gif won’t find the image. Even worse, I have a separate directory structure to maintain now.

What I’m currently doing is hand-rolling a “best effort” traversal process through a file system directory view that will try to go down the path, just stay where it is if the subdirectory doesn’t exist (i.e. the resource tree doesn’t have a subdirectory for person A11; instead of yelling 404 I stay at institute A1), and then try to acquire back up. Some trickery is involved for portal_factory and views, and I’m pretty sure I’ve missed more.

So: that surely isn’t the way one is supposed to do it, but what is?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T10:37:50+00:00Added an answer on May 18, 2026 at 10:37 am

    You can inspirate you from collective.phantasy that implements this use case for plone3 (change l&f for a folder container).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table which is full of arbitrarily formatted phone numbers, like this
I have a traditional web site which serves users from desktop computer browsers. I
I have a site which is akin to SVN, but without the version control..
I have a navtree on a plone site, already using this configuration: navigation =
I have a folder called myfolder , that has some items inside, like: item1
I have a snippet to create a 'Like' button for our news site: <iframe
I have a SQL statement that looks like: SELECT [Phone] FROM [Table] WHERE (
I have a website form that requires a US phone number input for follow
We have a site developed in PHP. It is working just fine. We have
I have been using the 'Web Site Administration Tool' that you can bring up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.