I'm building a one page website, but I'm having trouble navigating through the page. I can't figure out how to add an attribute ID to a block or other elements on the page. In same cases there is already an ID, but in most cases not. So when I set up the menu, I don't know where to link the item to. For example: I have a block entitled "news" halfway the page and a menu item "news". How do I link this menu item to the title of the block?
I use the "One-page navigation" module, but I can't find any functionality there to help me out. I am a beginner with Backdrop CMS, although I have build some websites with Drupal 7. Help would be much appreciated.
Hi Alex, welcome to the Backdrop Forum! As far as I know, there isn't a standard solution to create attribute IDs for Backdrop elements. So, depending on your elements, there are different options, or workarounds. For example:
I'm sure there are more workarounds.
If I were to build a one-page website, I'd use a custom layout template and put my IDs in the HTML. (This will hopefully be easier in the future, if Backdrop allows to add custom IDs in flexible layout templates.)