The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




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)