Managing content (that is in header.php) through the dashboard.
Permalink
This is the issue guys.
What I am trying to do is control an area of each page through the dashboard ( I don't want it to be editable through the frontend) but I am failing to see how this is possible.
The area that I am trying to manage is inside the ul tags below.
<div class="my-class">
<ul>
<li><a src="/somewhere.jpg></a></li>
</ul>
</div>
Is there any way that you could shine some light on this? It would be fine if it was to remain the same on each page but the <li></li> contents need to change from page to page. The user will need to have the choice to change these on the dashboard from page to page.
What I am trying to do is control an area of each page through the dashboard ( I don't want it to be editable through the frontend) but I am failing to see how this is possible.
The area that I am trying to manage is inside the ul tags below.
<div class="my-class">
<ul>
<li><a src="/somewhere.jpg></a></li>
</ul>
</div>
Is there any way that you could shine some light on this? It would be fine if it was to remain the same on each page but the <li></li> contents need to change from page to page. The user will need to have the choice to change these on the dashboard from page to page.
Mesuva's approach is probably best but as of 5.4.2 you can now also create a page type, add the blocks you need and then assign that page-type to the new composer interface, which lets you create/edit via the page in the dashboard.
How would you go around doing that? I can't see where I can add the blocks. Thank you kindly for all of your replies.
It's not documented yet as a beta feature but if you go to pages and themes, page types and click the defaults button against the page type you want to use (or a new one) you can add your blocks. You'll also see a composer button. Click that and you'll see an option to include in composer.
Go to composer, and you should be able to create a page using the page type you enabled.
There's lots more but that should get you started.
Hope that helps.
Go to composer, and you should be able to create a page using the page type you enabled.
There's lots more but that should get you started.
Hope that helps.
Create a new attribute though the Dashboard->Pages and Themes->Attributes, and then
select it as a default for the page type so it is ready for editing/changing. A Select attribute type means you can pre-populate a drop down for users to pick from.
There are lots of examples on how to use page attributes in templates, but in essence you do this:
You can edit the properties for a page directly from the sitemap, from within the Dashboard.