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 7438225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:31:11+00:00 2026-05-29T10:31:11+00:00

I’m using diazo for theming, and I have a problem with all popups. I’m

  • 0

I’m using diazo for theming, and I have a problem with all popups.
I’m using Plone 4.1.3.

I’ve read a lot that to prevent theming popups, you have to include this rule :

<theme href="index.html" css:if-content="#visual-portal-wrapper" />

That’s already the case. Maybe this rule works for some popups but not for the login_form one, nor the select_default_page, nor the contact-info one.

Why ? Just because all this 3 templates has #visual-portal-wrapper in.

So, I’ve tried with some rules like that :

<notheme if-path="select_default_page" />
<notheme if-path="contact-info" />
<notheme if-path="login" />

But, it’s not really efficient, if I forgot one template in this rule, I need to add it, and if someone go to /contact-info (without the popup) the page is unstyled (of course, but it’s not good…).

I’ve tried to look on the side of the URL, I saw that there is a “ajax_load” query string, but it’s not present on the contact-info.

I’ve also tried to look at the HTML added in the main_template, the “pb_ajax” class, but that didn’t work too…

So, is there a way to identify a template in a popup ?

Edit :

Here is the template : http://pastealacon.com/29662

and here is the rule.xml : http://pastealacon.com/29663

  • 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-29T10:31:12+00:00Added an answer on May 29, 2026 at 10:31 am

    You need to make sure that your template includes the id=”content” div tag.

    When popups are loaded via AJAX, a filter is employed that strips away everything that’s not needed for the popup (all the chrome of the design). That filter, defined in popupforms.js is:

    var common_content_filter = '#content>*:not(div.configlet),dl.portalMessage.error,dl.portalMessage.info';
    

    The key part here is “#content>*”. It means we’re filtering out everything except what’s inside the id=”content” div. But, if that div is missing, there will be no match, and all the html returned appears in the popup. A mess.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a text area in my form which accepts all possible characters from
I have thousands of HTML files to process using Groovy/Java and I need to
I have some data like this: 1 2 3 4 5 9 2 6
I'm new to using the Perl treebuilder module for HTML parsing and can't figure

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.