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

Accepted answer

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?

Comments

indigoxela's picture

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 ..

indigoxela's picture

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:

views edit contextual filter

Are you familiar with Views? Have you created or edited some before?

"Are you familiar with Views? Have you created or edited some before?" yes, don't pretend i know all of it,  we can't avoid using view in drupal familly; under drupal 7 you have from scratch a glossary view ..i will work on the others options you just describe ..

Thanks

indigoxela's picture

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

 

indigoxela's picture

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. :-)