2016-08-20, 06:41:00
Just a simple approach to modify the default Edit Page menu
You need: https://github.com/bigin/ItemManager_2.0/tree/master and https://github.com/bigin/ImExtraFields plugin
2. Create a new ItemManager category (name it as you want)
3. Create a new Chunk field for this category
4. Go to "edit field" menu:
5. Enter your text and the following javascript code under the "Default value" in the chunk field and save:
6. Let's select any page you like and go to the edit page menu > page options, there select your category and voilà ... the text should append over the top the page title.
You need: https://github.com/bigin/ItemManager_2.0/tree/master and https://github.com/bigin/ImExtraFields plugin
2. Create a new ItemManager category (name it as you want)
3. Create a new Chunk field for this category
4. Go to "edit field" menu:
5. Enter your text and the following javascript code under the "Default value" in the chunk field and save:
Code:
<div id="info-panel">
<h5>Page infos: <a href="#" style="font-size: 10px">Link 1</a> | <a href="#" style="font-size: 10px;">Link 2</a></h5>
<p>Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a</p>
</div>
<script>
$(function() {
$('#imcat').on('change', function() {
$('#info-panel').remove();
});
$('#edit_window').prepend($('#info-panel'));
});
</script>
6. Let's select any page you like and go to the edit page menu > page options, there select your category and voilà ... the text should append over the top the page title.