ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

ShowMe | Display Layouts, Pages, and Page's content

August 12, 2010 1:14am

Subscribe [9]
  • #1 / Aug 12, 2010 1:14am

    Loic Sharma

    114 posts

    AS OF 1.1.0, SHOWME IS NOT NEEDED AS MOJOMOTOR NOW CAN EMBED LAYOUTS!

    ShowMe’s purpose is to allow developers to create MojoMotor templates with much more ease by allowing layouts to show other layouts, pages, and page’s content. And the best part? ShowMe’s free!

    Let me give you two scenarios of where ShowMe shines.

    Scenario 1

    You need to have many different layouts, but each of these layouts will have the exact same header and footer. The person who hired you might need to edit the header and footer occasionally. Before, he’d would have to edit every single layout to change the header and footer.. but no more! With ShowMe, you can easily have a global header and footer layout, and load them onto your layouts.

    Scenario 2

    You wish to have an Archived Articles page, where you store all the content of your old articles, all in one. You don’t want to copy and paste all of your old article’s content onto the new Archived Articles page… so instead, you can use ShowMe to display the content of the pages!

    Installation

    First, you need to download ShowMe. Once downloaded, upload the show folder to:

    MojoMotor/system/mojomotor/third_party/

    And that’s it!

    Syntax

    To load a layout, you can do:

    {mojo:show:layout name="header"}

    To load a full page (page’s layout + content), you use:

    {mojo:show:page name="my_article"}

    And lastly, to load just a page’s content, you can do:

    {mojo:show:page_content name="my_article"}

    Download link doesn’t work? Use the mirror.

  • #2 / Aug 12, 2010 5:08pm

    Looks very similar to the MojoAddons Pieces addon.

  • #3 / Aug 12, 2010 5:43pm

    Loic Sharma

    114 posts

    I did get the original idea from it, but ShowMe allows you to also insert pages and page’s content. It’s also free 😉

  • #4 / Aug 17, 2010 6:03am

    Robzor

    86 posts

    Looks great Maverfax, really excited to play around with Mojo, although it seems like this/Pieces’ functionality should’ve been part of the core in the first place!

    Thanks!

  • #5 / Aug 17, 2010 10:23am

    Loic Sharma

    114 posts

    Looks great Maverfax, really excited to play around with Mojo, although it seems like this/Pieces’ functionality should’ve been part of the core in the first place!

    Thanks 😊

    Well, I agree - this should definitely be part of the core - which is why I made it free. I seriously doubt the MojoMotor team is going to leave out such a crucial feature, and that’s why I made it free.

  • #6 / Aug 17, 2010 12:21pm

    Agreed. I doubt it’ll be long before this gets put into the core.

  • #7 / Aug 17, 2010 12:32pm

    Loic Sharma

    114 posts

    Yeah, so… MojoMotor team! Add this in the core plox! :D

  • #8 / Aug 25, 2010 4:46pm

    FromOrk

    1 posts

    Could be me…but it seems the download link http://mojohacks.com/plugins/show/showme.zip doesn’t work..

  • #9 / Aug 25, 2010 6:07pm

    Loic Sharma

    114 posts

    There’s a mirror: http://filebeam.com/5a64d05759def58762362311cc21dbdb

    Let me fix that one though..

  • #10 / Aug 25, 2010 7:35pm

    Nick Hamze

    14 posts

  • #11 / Sep 11, 2010 7:34pm

    jschutt

    452 posts

    Loic has written a walkthrough on how to use the ShowMe add-on for The Motorist!  You can check it out here: http://motori.st/article/read/showme_da_money

  • #12 / Sep 26, 2010 3:44pm

    Curtis Blackwell

    47 posts

    @Loic,

    I’m using ShowMe on a site (Thanks for sharing it with us and for free!) for a header, footer, and sidebar. The header and footer were easy to take care of. However, I want my sidebar to be editable… on every page on which it’s displayed.


    Right now, I have both a layout and page called, each called sidebar. The layout uses ShowMe to call the page:

    <div class="mojo_page_region" id="sidebar">
        <!-- MojoMotor will replace this content dynamically with the contents of the Page Region -->{mojo:page:page_region id="sidebar"}
    </div>

    So I can edit the sidebar if I go to the page, which is great. Now I just want to be able to edit it on every page so that my client doesn’t have to either type in the URL or use the admin section to get to it (and just because it’s more convenient), especially since the sidebar layout doesn’t do a good job of showing how it’ll look in context on the actual pages; the sidebar layout doesn’t reference the CSS, otherwise it’d be an extra http request on all other pages.

    Have you heard of anyone trying to do this?

    Here’s the site.

  • #13 / Sep 26, 2010 5:17pm

    Loic Sharma

    114 posts

    Have you tried using a global region? It sounds like that’s exactly what you’re looking for.

  • #14 / Sep 26, 2010 7:26pm

    jschutt

    452 posts

    Are you wanting it to be the same on every page, or different?

  • #15 / Oct 01, 2010 4:58pm

    Curtis Blackwell

    47 posts

    @Loic,

    I think I left out the part about me needing the sidebar to show up in two different layouts. It needs to be shown and updated in both the main_layout and the contact layout.

    I tried embedding {mojo:show:page_content name="sidebar"} inside a global region, and it doesn’t work. It just shows that code in the sidebar.

    @Jesse,

    I want it to be the same on every page.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases