Code Monkey home page Code Monkey logo

Comments (8)

Lunga001 avatar Lunga001 commented on July 17, 2024

Hi @conroyke56
Maybe you can have a look at and not sure if you got to this point

Click [Customize] and change the two instance of the text $portal_url/+plone+senaite.core.static/images/favicon.ico to point to the favicon in the custom folder, $portal_url/portal_skins/custom/favicon.ico and save

also note if you haven't already default branches are 2.x

from senaite.core.

conroyke56 avatar conroyke56 commented on July 17, 2024

default branches are 2.x

Yes, this is a new install, using docker.
currently on 2.6.0 for all.

Click [Customize] and change the two instance of the text $portal_url/+plone+senaite.core.static/images/favicon.ico to point to the favicon in the custom folder, $portal_url/portal_skins/custom/favicon.ico and save

that is exactly what i am trying to modify.
When I hit customise, i get the error, so no ability to modify it.

I have looked at plone documentation, and there's nothing helpful.

https://4.docs.plone.org/manage/troubleshooting/exceptions.html#badrequest-the-id-xxx-is-invalid-it-is-already-in-use

solution: "Not really sure why this happens."
Try portal_catalog rebuild as a fix.

catalog rebuild did not help.

from senaite.core.

Lunga001 avatar Lunga001 commented on July 17, 2024

Maybe try on a new site or instance, even new container. It works for me

from senaite.core.

conroyke56 avatar conroyke56 commented on July 17, 2024

are you running all 2.6?
can you first try changing the plone.links.favicon (senaite.impress.interfaces.ISenaiteImpressLayer)

<tal:favicon define="portal_url view/site_url">
    <link rel="shortcut icon" type="image/x-icon" tal:attributes="href string:$portal_url/portal_skins/custom/favicon.ico" />
    <link rel="apple-touch-icon" tal:attributes="href string:$portal_url/portal_skins/custom/favicon.ico" />
</tal:favicon>

then going back and seeing if you can customise the core? thats the only modification i have made within zope.
Changing it back made no difference, i still get the error.

from senaite.core.

Lunga001 avatar Lunga001 commented on July 17, 2024

Our (senaite.impress.interfaces.ISenaiteImpressLayer)
image
and our (senaite.core.interfaces.ISenaiteCore)

<tal:favicon define="portal_url view/site_url">
    <link rel="shortcut icon" type="image/x-icon" tal:attributes="href string:$portal_url/++plone++bika.ui.static/assets/icons/favicon.png" />
    <link rel="apple-touch-icon" tal:attributes="href string:$portal_url/++plone++bika.ui.static/assets/icons/favicon.png" />
</tal:favicon>

from senaite.core.

conroyke56 avatar conroyke56 commented on July 17, 2024

Just wound up a new instance. And same error for me.

Just to be clear. When you hit customise on the core, you can modify that code?

from senaite.core.

Lunga001 avatar Lunga001 commented on July 17, 2024

Yes, I have created a new site and this also saves

<tal:favicon define="portal_url view/site_url">
    <link rel="shortcut icon" type="image/x-icon" tal:attributes="href string:$portal_url/++plone++bika.ui.static/assets/icons/analysisservice.png" />
    <link rel="apple-touch-icon" tal:attributes="href string:$portal_url/++plone++bika.ui.static/assets/icons/analysisservice.png" />
</tal:favicon>

image

from senaite.core.

conroyke56 avatar conroyke56 commented on July 17, 2024

I've been experimenting further to understand the issue better, and it seems the solution might be simpler than I initially thought, although I could be overlooking something obvious. I initiated another instance and discovered I could modify the favicon without any problems.

However, the issue arises when I attempt to make changes to the favicon using Impress. After making changes there, I'm unable to go back and make any further modifications to the favicon for the core system.

Below are the screenshots illustrating what I'm trying to achieve:

This is what I aim to modify:
list

Here, I go into the system to modify the core favicon:
senaite core interfaces ISenaiteCore

After saving these changes and then trying to modify it again via Impress, I encounter the following error:
error impress

I suspect this issue might be related to the process of saving changes, which seems to leave the code in a modified state. as per the first screenshot. Is there a way to commit the changes, other than hitting save?

from senaite.core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.