문제

I am in the process of fine-tuning a Diazo theme. The server we are developing the site on contains multiple Plone sites, at the root of this server I have a user account which enables me manager access to each sub-site without having to create a user account for myself each time I create a new Plone site.

I am experiencing a problem in which when I log into the site I am developing (running the theme in question) - it executes all the rules fine, but if I make a standard user on this development site and log in.. The rules do not execute. I am basing the 'logged in' rule on the existance of the #user-name element which only appears after a user is logged into the site, I can confirm this element exists on the page both when I log in as the standard user, or my administrator account.

Rules:

<rules css:if-content="#user-name">
 <prepend theme="/html/head" content="/html/head/link"/>
 <append theme="/html/head" content="/html/head/script"/>
 <append theme="/html/head">
  <link href="/eatonbray/++theme++eatonbray/style/editing.css" type="text/css"
   rel="stylesheet" />
 </append>
 <replace css:theme-children="#main-content" css:content="#portal-column-content"/>
 <drop css:content="#portal-column-content" attributes="class"/>
</rules>

Does anyone know why they do not execute for a normal user account, even though the element exists?

도움이 되었습니까?

해결책

Refreshing the correct site is the answer to this, there is nothing wrong with the rules above.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top