• Resolved jimmerd

    (@jimmerd)


    I’m trying to figure out the page template structure. When I go to the boats page and click on one of the entries, it takes me to a page that uses THAT page (and not some single-post template) as the template.
    When I go to the main guide/ page and click on a single, it take the main guide page as a page template.
    This strikes me as odd.
    Is there a way to make a page template (connections-single.php) that overrides that?
    Or am I doing something wrong?
    My real problem is that I want to be able to FEATURE one entry at the top of the category pages, even if I have to do it manually (ie in blocks) but I don’t want that featured entry following it into subsequent single entry pages.
    THANKS!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Steven

    (@shazahm1hotmailcom)

    RE: When I go to the boats page and click on one of the entries, it takes me to a page that uses THAT page (and not some single-post template) as the template.
    When I go to the main guide/ page and click on a single, it take the main guide page as a page template. … This strikes me as odd.

    This actually is not odd, this is because you never leave the page in which the shortcode is added on. When you click a Connections link, the shortcode “receives” the link and determines what to display based on what was clicked.

    This very similar to other very popular plugins which have an “account” shortcode which displays info/actions and such for a user account (ex. purchase history, subscription details, etc.). Clicking links displays the same page, but different content.

    Generally, this means the shortcode is loading one if its own templates within the page/post template. Connections works in the same way.

    Here’s a link to developer doc which give a little more detail:

    RE: My real problem is that I want to be able to FEATURE one entry at the top of the category pages, even if I have to do it manually (ie in blocks) but I don’t want that featured entry following it into subsequent single entry pages.

    I recommend the Custom Entry Order addon, here’s the link:

    You can assign “featured” entries an order of 1 and then assign them to a “Featured” category. You can then use CSS to make style changes to better highlight that entry.

    I see you’ve made your own template for you directory… you could even use the “Featured” category as a “trigger” to display the entry with a completely different layout if you want.

    I hope this helps!

    Thread Starter jimmerd

    (@jimmerd)

    Thanks!
    The template override info is what I need.

    And I did get the custom-entry-order addon. The problem I had with it was that I wanted one inn featured on the LODGING page and another featured on the FOOD page. Both inns are in both categories and they both float to the top. I couldn’t figure out a workaround.

    But the template override will let me get there.

    Thanks again.
    Jim

    Plugin Author Steven

    (@shazahm1hotmailcom)

    Ok, sounds like you are good to go. If you have any further questions, don’t hesitate to to open a new thread to ask. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page becomes page template’ is closed to new replies.