-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review lib/index.js for any remaining hard-coded strings #242
Comments
@kilemensi Going through this, and it most of the hard-coded titles are section titles and slugs. |
Correct @kelvinkipruto. Can we move them to their respective sections in the NetlifyCMS? |
@kilemensi how do you propose we do this? I was thinking of a different collection say |
Give me a real example of what you've found @kelvinkipruto and lets discuss it. |
Making any headway on this @kelvinkipruto ? |
@kilemensi, I have run into a few issues here. The major one of them is related to hidden fields in Netlify CMS. It looks like they don't appear in the .md file as described here and also some open issues regarding it like this. An example in our case would be here where the hidden fields are not added to the .md file. |
Hey @kelvinkipruto. Before I spend some time looking into that, how're hidden fields related to this current issue? |
@kilemensi We need to move the hard-coded slugs and titles to the cms as hidden fields. |
Do we? Did you try #246 (comment)? i.e. as long as you include Can you share an example where that doesn't work @kelvinkipruto ? |
@kilemensi Yes I have tried it. In this case the slug returned will be |
I've update #246 to handle this case using |
@kilemensi Let me have a look |
And @kelvinkipruto ? |
Now we have full integration with CMSes, it's time to review and remove all remaining hard-coded strings in code. Specifically, we should comb through
lib/index.js
.The text was updated successfully, but these errors were encountered: