Hey there, I just purchased PulseCMS and am running into some problems making the header/ footer editable for clients.
I can’t figure out how to make the header/ footer editable from the admin panel. I was originally thinking I could turn them into blocks but that didn’t quite work. I have contact information in the header that I want clients to be able to edit if they need to, but it could be any information really.
Also, this is a bigger problem then it seems because if the client updates their contact information, then it should update everywhere on the site.
Is there a way to set this up in Pulse? Any help would be appreciated.
Hi @Escendrix,
Assuming you are using Pulse 4 you can embed blocks anywhere in your site by either placing the block shortcode in a page, block or blog post. Your short code will look something like this
{{block:my-block-name}}
and will be replaced by the block content when the page is rendered.
You can only use shortcodes like this when adding blocks within Pulse (to pages, blocks or posts). Typically this part of the template is rendered using the following PHP call;
<?php echo $parsedown->text($content); ?>
If you want to pull in content blocks (or galleries) from outside of this main content region then you’ll need to do it using the old (Pulse 3) way;
I have a similar problem. My client wants to edit the header, too, but each page should be editable individually; in other words: not the same header for all pages.
So my question is: Is there any possibility for multiple content areas, like
or whatever? Otherwise, I guess I would have to put code from the layout.php file into the backend stuff (pages), but I fear that would be quite confusing and inelegant.
Yes, this could be the solution, I will try it out, thank you.
On the other hand, one template for each page is a bit circumstantial if you have dozens of pages, in my opinion; multiple content renderings would make the system more flexible. I find such flexibility in concrete5 that I often use, but that is database-driven and an overkill in some cases. What I like with Pulse is its slimness and easy handling, and too many features would make it too fat, I guess.
Most of my clients don’t touch the pages section of Pulse as the raw layout code scares them. They typically stick editing blocks and only ever tend to dip into the pages section to adjust things like page titles etc.
It would be good to see Pulse introduce something a bit more client friendly for pages (sub templates, layout builder, etc) so that simple structural changes could be made (add a sidebar, another column etc) without having to chop the code about.