Oncord Community Logo
    • Recent
    • Popular
    • Register
    • Login
    1. Home
    2. Ben
    3. Topics
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 10
    • Best 1
    • Controversial 0
    • Groups 0

    Topics created by Ben

    • BenB

      Post category titles and posts display logic

      Advanced Coding
      • • Ben
      2
      0
      Votes
      2
      Posts
      690
      Views

      K

      @Ben

      We currently have a tutorial on how to list post-category values. You can check it out here:
      Show Categories for a Post

      This guide will show you how to display all the categories associated with a post. If you only want to display the primary category, you can use the following code:

      \Components\Website\Posts\Categories::getColumn($post['post_category_id'], 'post_category_title')

      To check if there are posts in a category, you can use this code:

      <logic:if test="$post"> <p>West End:</p>
 <data:postrepeater paging="true" pagingrows="6" templatetype="list" postcategory="3" /> </logic:if>```
    • BenB

      Posts not flexing after minor code edit

      Advanced Coding
      • • Ben
      3
      0
      Votes
      3
      Posts
      372
      Views

      BenB

      @kimguevarra Yep, that was it. One little word in the CSS! Thanks for the advice!

    • BenB

      Cascading masonry gallery styling

      Advanced Coding
      • • Ben
      4
      0
      Votes
      4
      Posts
      885
      Views

      BenB

      Thanks Scott ... your answer would help explain the lack of straightforward solutions out there on the web!

      Glad to hear you're looking at implementing it once the standards are established. 🙂

    • BenB

      Under construction settings/code

      Advanced Coding
      • • Ben
      3
      0
      Votes
      3
      Posts
      1147
      Views

      BenB

      @StephenBlignault Thank you for your detailed response; that certainly looks like the type of solution I was after. Hadn't thought of using two design templates, but that makes perfect sense. Appreciate the insight and code!