-
Notifications
You must be signed in to change notification settings - Fork 0
Handle tags on cards #41
Comments
Hello Julien, I can easily identify the tags by inspecting the page online. But in the archives I'm having a hard time to manage and identify the content, because all the files are html.twig and they have a different infrastructure that I'm used to work. Should I use some application to convert them to pure html so I can edit and visualise in Chrome? When I would be able to edit the tags in the cards, do you want me to edit manually (writing in the html) or find some way to generate them automatically with JS? |
Allo Ana, in Symfony project we are generally using a templating system named twig (the templace extension is So currently in
So the tags are hardcoded in the template. You will have to change it to something like:
But for that you must define a variable Instead of passing only the It is really not possible to edit that as pure HTML inside Chrome as the HTML output must be dynamically created depending on the list of tags for the specific nomenclature. When you say:
Can you explain a bit more maybe you can help us more on this side ! THANKS ! On my side I have created a |
Allô Julien, Merci pour la reponse rapide.
It was just a crazy idea that I had... Specially because I worked in the past with string manipulation and text mining. I used libraries to generate words synonyms and frequency word clouds from texts. I don't know if it is possible with JS (but i could do some research). For now, I'm gonna start with React. Bonne journée |
Yes I have checked your portfolio :) All is possible with JS frontend backend you can do all, just your imagination is the limit 😄 Very interessed by the react part, I am still working on api-platform during my few lunch and night and i will share with you what I have tomorrow or Sunday. For the moment I've got quite the same look and feel, and I just want to add the nomenclature part to see how it look like. With React you dont need anymore jquery so you can imagine load the nomenclature more 'naturally'. |
Allô Julien, As far as I know I will need to code this with php? Or could I code with JQuery or ES6 and add in a script in show.html.twig? Where's the content for the cards? Is there any material that describes all the cards and tags associated to each card? I will have to hardcode this in an array (or object) or is there any away to get them from a database? Merci, |
Allo I am late about my api-platform work sorry ! Regarding this task, good question about the content. The classic way in Symfony is the following:
Actually there is no way to do this task via JS because the data is not available in an API. Some docs:
It is really an MVC model
Let me know if it is better ! |
Allo Julien, ça va? I created the entity The next step is to code the for each in Merci, |
Then it will be probably needed to add a reference into Then yes a migration ! Then modify the And you can start right now by putting your code in a specific branch. Follow this : run then then do you first commit / push on the branch
One day we need to put this in the README 😄 Once it is pushed we will be able to see / review it. The process is to create a PR on top of the branch this is the next step ! THANKS ! |
Allo Julien, I relationated Have a nice weekend, |
OK we can check that once the PR is created. Yes if you can document the gitflow process it can be really helpful 🙏 you can include the edit of Thanks ! |
Allô Jullien, ça va bien? Thanks |
Hello :) testing code in PHP is ... just run it and see if it crash ! Symfony come with a good debug environment (the little bar at the bottom)and you have error message printed direclty in the browser : if you want to print thing you can use
|
Hello Julien, |
OK lol this is probably because the php file is broken somewhere :D we can check that tomorrow if you want ! see you ! |
@analuspi Hello do you have closed the pull request associated ? |
Allô Julien, I deleted the branch (I shouldn't have submitted without testing). I found that the main error it was in php code from the twig template, but i was having problems to fix the name of the entity too (because I'm not used with php and Symfony). |
We can use something like select2 but she should be able to add new tag |
Manage tags on cards
Be able to assign tags.
Show tags in the card index page.
Actually we see a fixed list here:
![image](https://user-images.githubusercontent.com/4988590/64633224-cf848800-d3c8-11e9-8152-4f2e849782c2.png)
(Gospel Chant Religieux)
we want to manage tag info in a Nomenclature.
tasks:
The text was updated successfully, but these errors were encountered: