Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to add additional text under the GetSimple's page edit menu
#1
Just a simple approach to modify the default Edit Page menu

[Image: additional-info.png]


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:
[Image: edit-field1.png]


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>&nbsp;|&nbsp;<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>
[Image: edit-field2.png]


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.
Reply




Users browsing this thread: 1 Guest(s)
Free HDTV Channels Residential Solar Panels