Ideas

Pages Editor Link In Admin Footer

Pages Editor Link In Admin Footer

Core

When you need to edit a page from the Page Editor page (that was a mouthful) it is nice to get there quickly. Adding a button for this in the admin footer would be a welcome addition.

Here would be my suggested location and fa icon (fa-external-link-square).

The link should ideally include the ExpandedIds parameter with the parent ids included. This will ensure the Page tree is expanded when you get to the Pages Page.

This could be accomplished via a html content block added to the site footer as well but that isn't ideal.

{% assign tempPage = CurrentPage %}
{% assign parentPageList = tempPage.ParentPage.Id %}

{% for x in (1..10) %} {% comment %} This loop will travel up the parent page tree building a parent Page Id list {% endcomment %}
{% assign tempPage = tempPage.ParentPage %}
{% if tempPage.ParentPage.Id %}
{% capture parentPageList %}{{parentPageList}},{{ tempPage.ParentPage.Id }}{% endcapture %}
{% else %}
{% comment %}If no parents remain exit the for loop {% endcomment %}
{% break %}
{% endif %}
{% endfor %}


{% javascript %}
$(function() {
$('.button-bar').append('<a id="aPagesLink" class="btn pages-link" href="/page/103?Page={{ CurrentPage.Id }}&ExpandedIds={{parentPageList}}&Redirect=false" title="Pages Editor"><i class="fa fa-external-link-square"></i></a>');
});

{% endjavascript %}


Photo of Tony ViscontiSubmitted by Tony Visconti, College Church  ·   ·  Core
Login to add a comment...

Submission Success Tips

Cultivate your ideas for maximum impact with these helpful submission tips that will increase the chances of your brilliant concepts becoming reality.

  • Clear Title: Craft a straightforward and descriptive title that instantly conveys the essence of your idea.
  • Concise Description: Provide an idea description that is succinct, ensuring it effectively communicates the concept without unnecessary verbosity.
  • Provide Additional Details: With a concise description complete, now provide any other details that are needed to better understand the requirements.
  • Thorough Ministry Need Review: Provide a comprehensive overview of the ministry need your idea addresses, emphasizing its significance.
  • Cover the WHY: Clearly articulate the rationale behind your idea, explaining why it's essential and how it aligns with the organization's goals and mission. Oftentimes a clear "why" sheds light into other possible options.