Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to override popup.pt in Plone?
    primarykey
    data
    text
    <p>I was able to modify the original <em>popup.pt</em> and see changes in my instance, but when I try to override it by copying and renaming to <code>archetypes.referencebrowserwidget.browser.popup.pt</code> in my theme/(add-in) <em>overrides</em> folder I am unable to see my changes.</p> <p>I overrode the path_bar class viewlet, following this <a href="http://plone.org/documentation/kb/customizing-main-template-viewlets/overriding-a-class-viewlet" rel="nofollow noreferrer">tutorial</a>. I attempted to follow the same logic for overriding <em>popup.pt</em>, but I was unable to get Plone to see the file in my <code>configure.zcml</code>. </p> <p><strong>configure.zcml</strong>:</p> <pre><code>&lt;configure xmlns="http://namespaces.zope.org/zope" xmlns:i18n="http://namespaces.zope.org/i18n" xmlns:genericsetup="http://namespaces.zope.org/genericsetup" xmlns:browser="http://namespaces.zope.org/browser" xmlns:plone="http://namespaces.plone.org/plone" i18n_domain="mytheme.theme"&gt; &lt;includeDependencies package="." /&gt; &lt;plone:static directory="resources" type="theme" /&gt; &lt;genericsetup:registerProfile name="default" title="mytheme.theme" directory="profiles/default" description="Installs the mytheme.theme package" provides="Products.GenericSetup.interfaces.EXTENSION" /&gt; &lt;browser:viewlet name="plone.path_bar" manager="plone.app.layout.viewlets.interfaces.IAboveContent" class=".customizations.PathBarViewlet" permission="zope2.View" layer=".interfaces.IMyTheme" /&gt; &lt;browser:page name="login_main_template" for="*" permission="zope.Public" template="login_main_template.pt" /&gt; &lt;/configure&gt; </code></pre> <p>While searching for a solution I found this Stackoverflow question - <a href="https://stackoverflow.com/questions/12299522/how-to-customize-the-popup-pt-template-from-archetypes-referencebrowserwidget">How to customize the popup.pt template from archetypes.referencebrowserwidget?</a>. I added/:</p> <pre><code>&lt;include package="z3c.jbot" file="meta.zcml" /&gt; &lt;browser:jbot directory="jbot_templates" layer=".browser.interfaces.IThemeSpecific" /&gt; </code></pre> <p>to my <code>configure.zcml</code> and removed the <code>browser:viewlet</code> from my previous attempt but I was still unable to get Plone to see my overview.</p> <p>Which method do I need to use to override, the class viewlet, the z3c.jbot, or just the standard copy/rename method? I have read thru the Plone documentation multiple times, but still unable to resolve my issue. If I need to post any additional files please let me know.</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload