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

Problem including blocks in layouts #195

Open
fabr000 opened this issue Oct 6, 2024 · 1 comment
Open

Problem including blocks in layouts #195

fabr000 opened this issue Oct 6, 2024 · 1 comment

Comments

@fabr000
Copy link

fabr000 commented Oct 6, 2024

Hi Hans,
First of all, thank you so much for building and maintaining PHPageBuilder. It’s been an excellent tool for developing my website, and I truly appreciate the hard work you've put into making it so accessible.

I’ve come across an issue where I’m unable to edit blocks that are linked via a slug (e.g. [block slug="header"]) in my layouts in the PHPageBuilder admin interface. The block appears on the front-end, but I’m unable to customize it unless I manually edit the block’s view.html or .php file directly.

Is there currently a way to enable editing for slugged blocks within the builder, or is this something that could be added in a future update?

Best regards,

Fabian

@fabr000
Copy link
Author

fabr000 commented Oct 8, 2024

@HansSchouten do you have any advice for me?

below is a code snippet of te layouts view.php:


<div id="overlayer"></div>
  <div class="loader">
    <div class="spinner-border text-primary" role="status">
      <span class="sr-only">Loading...</span>
    </div>
  </div>


<div class="site-wrap">

[block slug="navbar" id="p1"]
[block slug="blog_article" id="p2"]
[block slug="portfolio" id="p3"]

<?= $body ?>

[block slug="footer" id="p4"]

</div> <!-- .site-wrap -->```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant