Pricing Blog

Help forum

  • enginhear-1427358248692088993

    enginhear

    5

    18 hours ago

    localstoage vs variable
    Hello,

    I have a repeated element based on a localstorage. It works perfectly: when the localstorage is updated with a new element, it updates on the page without refresh.
    But if I change the value of one of its setting it seems less responsive and I have to refresh the page to see it, even if it updated instantly in the localstorage.
    To check, I changed the repeat element to be base on a variable and the problem is resolved. I find this behavior surprising because updating the localstorage works in one case but not the other.

    To make things clearer here is a picture to illustrate. the localstorage contains "image_url" and "favorite". if the user generates a new image, the localstorage is updated and the new image is shown on the page. But if I click on the icon to change "favorite", it is updated in the localstorage but not on the page (or if I click one time the view changes, but if I click again it does not).

    So I am wondering: is there a difference between updating the localstorage and a variable? Is this a normal behavior?
  • enginhear-1427347736965025995

    enginhear

    5

    18 hours ago

    Renaming divs
    Hello,
    Is there any way to rename divs?
    Should I simply rename the tag? If so, I want to be sure it won't cause any problem.
    It would be really useful to quickly find elements that are initially hidden
  • lassead-1425920724752924802

    Lasse

    32

    4 days ago

    Why no classes on components?
    I often miss the classes section on components to be able to set conditional stylings. Are there any particular reason why they're not available on components?
  • mxi012-1425796531583193228

    𝓜𝓪𝔁𝓲

    4

    5 days ago

    Client access to Nordcraft - EDIT MODE
    Hey are there plans to support some editing mode for clients?

    I’m moving away from webflow due to performance and lack of customizability issues. (I need SSR for my Pages)

    For our customers it is always pleasing that they have full access to their pages to (on the fly) change some things.

    Obvious Problem: for each customer im inviting im paying 34 USD - AND they have access to viewing other client projects and can obviously completely destroy their website.

    A simple edit mode for just images & text would be highly appreciated.

    Solution 2:

    If there would be an API access to the pages we could als build this by ourselves and integrate this into our backend. This would also solve these kind of issues.


    Is there anything planned on the long / mid run? Would be definitely a huge + for Nordcraft in terms of broad awareness. (Ppl would get to know Nordcraft more because more end users would directly access Nordcraft and get a glimpse of the great product) - not just devs.
  • mxi012-1425794613490483292

    𝓜𝓪𝔁𝓲

    1

    5 days ago

    Nordcraft Translations
    Hey y’all has anyone build fully translatable pages in Nordcraft before? I’m NOT talking about duplicating or using a JSON as variable.

    I mean using an external API to get Key and Values for translation fields.

    What we tested: generate a unique hash based on the text and use this as identifier to send Strings to our backend via Custom Actions and get the translation JSON for each page SLUG on request and ServerSide rehash each text field to get the corresponding value from the JSON.

    PROBLEM: to get an unique & safe hash we have to scramble base62 strings and different ServerSide function nodes together. This uses (obviously a lot of calculation time) on moderate sites we see a spike in response times from 60ms to almost 400 - 800 ms (without the external api request) just calculating the individual hashes.


    Furthermore we have still problems translating inline elements such as <b> as we cannot inject the whole html element just text.

    Does anyone here have an idea how to solve this?

    Alternative would be to manually tag each field and create translations manually. Then we could (sort of) combine different translation keys together to an key group on our backend.

    Example:

    Is (this ist bold) the right (this is again normal text) way?

    Translation Group xy: Key „Is, Key „the right, Key „way?

    We then would use DEEPL API with context to translate these three parts.

    Any thoughts & help appreciated
  • basfenix-1425794309008916523

    Bas Fenix

    1
    2

    5 days ago

    new theme 2.0 ?
    When I create a new project or open existing one i see this on themes page (see scrshot)
    then when i click Migrate button it's goes to empty theme page, only a Font can be set. this does not match the documentation scrshot. Also the link above migrate button is not linking to correct resource I get 404 ? Im a bit confsued now since on old project i clicked migrate but now I dont have styles to manage. pls advise!
  • ssssadsadasd-1425127346540773468

    ssssadsadasd

    11

    6 days ago

    know if refreh_token exists in the frontend?
    whe I do "get http-only cookie -> refresh_token" I get back "{{ cookies.refresh_token }}" in the frontend whether the refresh_token exists or not. how can I know from the frontend whether there is actually a refresh_token in the cookies or not? thanks
  • codenitrr-1422469351319273492

    codenitrr

    7

    14 days ago

    Collaborate with two separate paid accounts?
    Is there a way to collaborate on a private project with two separate paid accounts? So, give someone with an account outside my organization access to one of my projects?
  • nix.nz-1422463039512379474

    Marko

    1
    6

    14 days ago

    I accidently deleted a page :(
    Hiya!

    I made the mistake of accidentally deleting a page I wasn’t meant to. Since it wasn’t on any other branches, I can’t roll it back. It had quite a few hours of work in it, is there any way to retrieve it? I’m guessing probably not, but thought I’d check. Definitely a good lesson learned on my end, haha.
  • digitalsprint_05069-1421613173160808569

    Digital Sprint

    1

    16 days ago

    typeit - chatbot text pagebreak on each response
    Hey all, i'm working on a basic chatbot template, and i'm struggling with the response coming back without a pagebreak. Everytime the api responds, it pagebreaks in my chatbubble and then starts typing.

    I think it has something to do with the fact that I've created a placeholder without text and then I have the typeit workflow kickoff to update this placeholder. Does anyone have any ideas of how I can solve this, or a better way to go about it. I feel like my current route is not the best approach.

    https://lime_roos_tarpals_prominent_lizard.toddle.site/
  • _.__._.__.__._-1420317293010882570

    Ethan

    1
    4

    20 days ago

    Regex Replace
    Hi all, I'm trying to figure out how to perform the following javascript using formulas
    this.value = this.value.replace(/[^0-9+]/g, '')
    But I can't figure out what the correct method is, there is Matches and Replace All, but none of these achieve what I want without getting overly complex. I imagine I must be missing something. Any suggestions?
  • nathandh.-1419650958387839108

    nathandh

    1

    22 days ago

    Formulas vs custom actions
    Silly question probably, but watching the new Speed Run vids (which are awesome, great work @salma), and I’m wondering:

    What’s the difference between formulas and custom actions? Seems like both are reusable logic bits, with or without custom JS.
  • _.__._.__.__._-1419274769529962647

    Ethan

    1
    5

    23 days ago

    Popup Menu Behavior
    Hi All, I am building a popup menu component and want to ensure that the menu is always in-bounds, and does not clip out of the screen. Most apps just work off putting it in the opposite side to whatever quadrant the menu is opened in, however I cannot think of how to do this using formula's, or if there is a much cleaner solution I am missing.

    What would you guys suggest?
  • eusoufog-1419041434882936913

    Fog

    24

    23 days ago

    Probably a skill issue (help needed 🙏)
    I configured Nordbase on Cloudflare Workers using the GitHub example, just for learning and testing purposes.
    However, when I try to log in, the console shows the following error:
    handleAction.ts:437 Missing custom action @toddle/setHttpOnlyCookie

    The response from Supabase is 200, but the login doesn’t work and just keeps loading.
    Sign-up works fine — the account is created, but it seems like the user session gets lost.

    In the Nordcraft editor, everything works fine.
    Did I do something wrong?

    I imagine it’s something simple, but since I’m still learning, I got lost.
  • digitalsprint_05069-1418724497153986711

    Digital Sprint

    8

    24 days ago

    Flex Display Issue
    newbie here, I'm creating a div with an image and text. when I set the parent div as flex: row. I get this issue where the text runs on. But the div block that I have for this text works fine on its own. What is causing this issue?