Hi,
i need to have a glossary of this type
https://docs.backdropcms.org/glossary
to reproduce with backdrop that i can do other technique .
How can i do that ?
Thanks
Hi,
i need to have a glossary of this type
https://docs.backdropcms.org/glossary
to reproduce with backdrop that i can do other technique .
How can i do that ?
Thanks
Hi philippeg,
maybe not exactly the same, but you can achieve a glossary with views.
The "glossary mode" settings are hidden a bit beneath the "more" links in views UI, so it's not obvious how to get the desired result.
Here's an example view as an external download (as a starting point, no file upload here in the forum for security reasons).
You should be able to import the raw json via admin/config/development/configuration/single into your Backdrop. Then further elaborate the view on admin/structure/views/view/glossary_test .
Hope this helps!
humm when i tru to import i have this msg
"The configuration provided could not be parsed. "
"The "glossary mode" settings are hidden a bit beneath the "more" links in views UI, so it's not obvious how to get the desired result." no sure i understand what you mean ..
Hi philippeg,
it's important that you import the json in a clean (raw) way, otherwise it can't get parsed. For instance, if you browser "colorizes" the output, switch to raw display. Depends on your Browser, though.
"The "glossary mode" settings are hidden a bit beneath the "more" links in views UI ... no sure i understand what you mean ..
Here's a screenshot of the opened "Contextual filter" dialog when editing the view:
Are you familiar with Views? Have you created or edited some before?
Maybe it also helps, if I describe the view a bit better...
All (or most of) the magic happens in contextual filters.
You basically create a view with a page and an attachment.
The page display has a contextual filter on the Title field, "When the filter value is NOT available" provide a default value "Fixed value" - "a".
In the same dialog expand "More" and turn on "Glossary mode", with a "Character limit" of "1".
Then add a display of type attachment. That also has a contextual filter on Title, but override it for that display. Set to "Display a summary" ... "Display items inline". Attach that display to the page display.
Also use "Glossary mode" for the attachment.
Does that help, or is it too abstract?
so the import has worked and i can use and change the glossary view.
Thanks to you
Vielen Dank für Ihre Hilfe
so the import has worked and i can use and change the glossary view.
Thanks to you
Vielen Dank für Ihre Hilfe
Je vous en prie, glad that it worked for you. :-)
Hello,
I tried to reproduce (not to import) and I am close to.
But there is one step I miss: having the alphabetical list showing on top.
At this point, I think I need the following
e.g. view with path glossary-a (contextual filter: fixed value = a); and header as follow
A | B | C |...
with link on A = /glossary-a
This sounds to be a lot of work to accomplish...
Would it be possible to at least have only one view that would filter based on the link from the header?
Thanks!
Maybe it also helps, if I describe the view a bit better...
All (or most of) the magic happens in contextual filters.
You basically create a view with a page and an attachment.
The page display has a contextual filter on the Title field, "When the filter value is NOT available" provide a default value "Fixed value" - "a".
In the same dialog expand "More" and turn on "Glossary mode", with a "Character limit" of "1".
Then add a display of type attachment. That also has a contextual filter on Title, but override it for that display. Set to "Display a summary" ... "Display items inline". Attach that display to the page display.
Also use "Glossary mode" for the attachment.
Does that help, or is it too abstract?