You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a kind of shared issue between the addons server and Elk, but I'm filling in here because if there is anything to fix I feel it should start here.
No I don't think you can use that. What you linked is in the front matter for that page view, its not "related" to the category at all, well past listing the items in that specific category. Categories are defined by the the front matter of the posts with the category: blabla tag
I think you can also define categories by creating directory's with a _post directory inside. So instead of everything being inside the root directory _posts, we could have a BBC directory with a _post directory inside of that and then add all the bbc addons there. Something to consider to help organize things.
Anyway back to the question! There are probably two ways to do what you want. One is to define variables in the main _config.yaml file ... like bbc: "BBC Code Extensions" Then you could access that in any page with site.bbc
The other (and really the same) way that should work is to make use of the pretty_cat.html file (Which should have the descriptive names improved, its similar to adding site variables, just easier to update).
So using that, updating the package.json template from "{{ category[0] }}" : [ to
This is a kind of shared issue between the addons server and Elk, but I'm filling in here because if there is anything to fix I feel it should start here.
In the server page in Elk, the category "title" is picked as the category... "shortname" (?) ucwords'ed:
https://github.com/elkarte/Elkarte/blob/development/sources/admin/PackageServers.controller.php#L180
and the name comes from the json at:
http://addons.elkarte.net/package.json
if I'm not wrong, generated with the template:
https://github.com/elkarte/addons/blob/gh-pages/package.json
Lurking here around, I noticed we have what I'd call a "full name" for the categories as well:
https://github.com/elkarte/addons/blob/gh-pages/categories/enhancement.html#L3 (the title parameter)
Do you think it would be possible to use that "full name" parameter as category name in the package manager page?
/me hopes something in this issue does make some sense... lol
ETA: for completeness sake, I was asked where the name comes from and noticed this possibility for improvement.
The text was updated successfully, but these errors were encountered: