Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help removing image selection from Navbar snippet #581

Open
ShubhamKarala opened this issue Jun 23, 2023 · 1 comment
Open

Help removing image selection from Navbar snippet #581

ShubhamKarala opened this issue Jun 23, 2023 · 1 comment
Labels
Type: Question Further information is requested

Comments

@ShubhamKarala
Copy link

I need help with removing the image selection that is in coderedcms.models.navbar model. Is there a way to modify coderedcms.blocks.content_blocks.NavBaseLinkBlock where it is being imported from?

class NavBaseLinkBlock(BaseBlock):
    display_text = blocks.CharBlock(
        required=False,
        max_length=255,
        label=_("Display text"),
    )
    image = ImageChooserBlock(
        required=False,
        label=_("Image"),
    )

image = ImageChooserBlock(
required=False,
label=_("Image"),
)

@ShubhamKarala ShubhamKarala added the Type: Question Further information is requested label Jun 23, 2023
@vsalvino
Copy link
Contributor

Sorry, the navbar and NavBaseLinkBlock are not customizable. The built-in navbar is really limited, and in practice, we end up building custom navbars for each site.

I'd recommend implementing a custom navbar. In the next release, we are going to provide a pre-built one, which you can follow the example of here: (look in website/models.py and website/templates/website/): https://github.com/coderedcorp/coderedcms/tree/main/coderedcms/project_template/pro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants