Closed jamestagal closed 2 years ago
Hi @jamestagal ,
This is related to the change that I made to address your issue: https://github.com/jamestagal/edtechdesigner/issues/18
Let me know if my note there doesn't guide the way. ;-)
Cheers, Roberto
Hi @roobyz
Ok thanks. Maybe I don't understand the intricacies of what is in these change but It was concerned because I was incrementally adding/incorporating each and every commit from those you made on the 18th, and adding all worked except the featured.svelte
file changes and cards_projs.svelte
So what would be the best way forward?
Cheers, Ben
Hi @jamestagal ,
I recommend you:
Cheers, Roberto
BTW... I am incorporating the sort function into the template that we discussed. And updating the project sort functionality so that it is easy to set the sort approach by date or name using parameters. Hopefully this will make it easier for you going forward. I like to implement generic approaches that work broadly. ;-)
yes thanks @roobyz that sounds great. :)
Just to clarify step 2, from above. when you mean 'overwrite' do you mean replace? are you saying to copy the content of each of those new files and paste into my custom layout/*.svelte files ? The way I was doing this from your first set of commits from the 18th was to:
Maybe I could be doing this a better way or more efficiently. Pls let me know :)
great question... yes, replace the file... because then when you open the file using the "source control" feature of VSCode, you will automatically get the side by side comparison. You can then copy over any changes from the left pane (your version) to the right pane and edit in place. And then if you don't want to accept any of the changes you can revert the whole file from the object explorer to get back to where your started. Total win-win! ;-)
ok thanks for explaining because when i opened the 'source control" I was only seeing the older version of the files in the Theme folder not the side by side comparison of my files. I thought if I replace my files with the new ones I wouldn't be able to see the changes I had made to my files and would lose them forever!!! Maybe I need to find a Youtube video on how to do this properly :)
the beauty of it is that with git, you can always revert to where you were... instant undo. ;-)
Hi @roobyz
This time I tried the command plenti theme update comdendium
and got the following message.
Could not find URL for theme, fix theme_config in plenti.json
But the url is correct in my theme_config file.
{
"build": "public",
"baseurl": "/",
"theme": "compendium",
"theme_config": {
"compendium": {
"url": "https://github.com/plenti-themes/compendium",
"commit": "cbc6ceed503735ad364937cca5a66a24c49987bc"
}
},
That's strange because it worked the last time I did it!
UPDATE: Hi @jimafisk I am still getting this message about not being able to find the URL for the theme when trying to update the theme. Do you have any ideas here? I have started and stopped running the local server but the issue persists. Would updating the Plenti binary make any difference? Cheers, Ben
hi @jamestagal ,
I just pushed the generic sorting changes. Please try again now. Wondering if there was some issue on Jim's site. If it doesn't work again we may need to check with him.
The latest update includes an updated version of jim's sort function and subsequent changes. You need to set your function parameters as desired for example sortByDate(allPosts, "modified", "oldest")
, where:
var sortDate = typeof sortDate != "undefined" ? order : "created";
var order = typeof order != "undefined" ? order : "newest";
Also, I updated the project sorting to cover your use-case and mine. I updated content/index.json
to include a new key which you should put into the "themes" section, about line 17. See the new file for reference if needed:
"projsSort": "Date",
"projsSortValues": "Date, Name",
Also, I included a TLDR boolean in the cards_proj.svelte
file, which you may want to set to false
. Let me know if you prefer a flag in the content/index.json
file.
Cheers, Roberto
@jamestagal - It looks like you're misspelling the theme name in your update command. Above you mentioned running:
plenti theme update comdendium
but it should be:
plenti theme update compendium
Note the "d" in your command is actually a "p." Hope that helps!
Hi @jimafisk Yes it was staring me in the face!! What an oversight! Thanks for picking that up.
Best regards, Ben
Hi @roobyz and @jimafisk
I have successfully been able to update the theme with the latest commits and incorporated change to my modified files.
Thank you very much for this work, I really appreciated your time and effort.
Best regards, Ben
Hi @roobyz When using your changes from the featured.svelte file commit you made on 18th Jan, caused an error.
The error was :
The code I am using is linked here:
I am not sure what is the cause of this error. Pls have a look when you can.
Best regards, Ben